Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://940791]
[LanX]: but I don't understand the question...
[GotToBTru]: okay, I see what it does
[GotToBTru]: you;ve answered it .. the expression is meant to be evaluated as written, it is not a symbol for a special operation
[LanX]: '&;@' is a parsing error
[GotToBTru]: by itself, yes, but used in sub pre(&;@) not so
[LanX]: &; is interpreted as a function call, but the @ has no meaning
[LanX]: OH
[LanX]: you are talking about signatures?
[GotToBTru]: yes, it turns out I am
[LanX]: http://perldoc. html#Prototypes

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-01-18 21:08 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (164 votes). Check out past polls.