[python-win32] Pythonservice.exe running at 100%
Mark Hammond
mhammond@skippinet.com.au
Wed, 20 Mar 2002 11:08:02 +1100
[David]
> I have a standalone version of the script that does the same thing. It
> seems to be the run_test module that is in question. This module creates
> a temp file and rewrites data to the file loop number of times. If I use
> the script version of it, loop=1000 takes about 1 second to complete If
> I use the service version of it loop=25 takes about 1 second. In either
> case, if the loop value is large enough (to see it in the task manager),
> the process still pegs the cpu at 100% when it is running.
I guess there are 2 possibilities:
* Something else is also hogging the CPU.
* There is issue when running under the service account.
If you debug your service (ie, yourservice.py --debug) do you see the same
behaviour?
Mark.