Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Script slow only when run as scheduled tasks on Windows Server

by Anonymous Monk
on Nov 30, 2011 at 08:19 UTC ( #940791=note: print w/ replies, xml ) Need Help??


in reply to Script slow only when run as scheduled tasks on Windows Server

Any hint why running as scheduled has such a terrible effect on performance?

Seems to me the emulation/virtualization is slowing things down, I have no idea why, probably due to the design or a bug :/

Last time I noticed slower performance than I expected, I was printing/logging lots to STDOUT, which cmd.exe was really slow to show, slower than database access

Running with wperl.exe or redirecting STDOUT to a file  >log.txt sped up the process more than double, maybe you can try that?

Another thing I've seen is if your video driver doesn't load, but the generic one gets loaded, the whole computer screeches to a snails pace -- check the logs, maybe they'll have some things :)

Does your scheduled process launch a child, or do you do your work in the main process?

Maybe all scheduled tasks are throttled, but children they launch aren't -- you could try launching a detached child ( Proc::Background )

IIRC scheduled tasks used to be limited to ~60-90min runtime

You could also try increasing the priority

I doubt this is perl-specific, I think you'll have better luck on a MSDN/WMWare support forum :/

Good luck


Comment on Re: Script slow only when run as scheduled tasks on Windows Server
Download Code
Re^2: Script slow only when run as scheduled tasks on Windows Server
by Tabla (Initiate) on Dec 01, 2011 at 08:07 UTC
    I really appreciate the suggestions but will only be able to check one change per day as a maximum as the retrieved data is used during the day.

    Once I find a cause / solution, I will update the posting.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://940791]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-09-18 05:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls