Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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

by marto (Archbishop)
on Nov 30, 2011 at 10:21 UTC ( #940810=note: print w/replies, xml ) Need Help??

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

I've experienced much weirdness on poorly configured virtual windows platforms. Our client had outsourced the installation and management of virtual platforms to a well known Outsourcing firm. The application in question was not written in Perl. When running on a normal windows server the application behaved reasonably, once migrated to a virtual platform it performance was unacceptable. At this point the resource utilisation was minimal. After much fruitless investigation on our part our client arranged for another virtual server (built in house, on the same blade platform). We couldn't replicate the problem on the new instance. The company responsible for the virtual servers couldn't track down the problem. Shortly after our client terminated their contract their, apparently because they didn't seem to have any idea what they were doing.

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

Replies are listed 'Best First'.
Re^2: Script slow only when run as scheduled tasks on Windows Server
by Tabla (Initiate) on Nov 30, 2011 at 11:47 UTC
    Hello marto,

    I appreciate your suggestion to look into the machine but since the problem is apparently not related to the machine as such I have little hope here. The difference in performance is observed on a single virtualized machine in both cases.

    I am using the virtual machine and log onto it by remote desktop. Performance for the script is fine when started from the console. The same script on the very same machine (me still logged on) is extremely slow when running scheduled. I have full admin rights on the machine and there is no indication that resources are utilized in a noticeable way when the problem occurs.

      In our case we saw what you are seeing, no indication that the resources are being being taxed at all. I suspect our problem was based in the virtualisation setup, not the windows setup. However as you say, if performance is normal when run from the console this isn't your issue. Perhaps it would be wise to profile your program running from both the command line, and as a service. Comparing the output should narrow down where the performance bottle neck is occuring. See Devel::NYTProf. IIRC Windows has an optimisation setting, which allows you to choose 'Programs' or 'Background Services'. This may also be worth investigating. 'System properties' -> 'Advanced'->'Performance'.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://940810]
Corion sees more yaks to be shaved on the horizon. This "remote-browser" browser extension also installs on Microsoft Edge, but fails there. So I could invest time into making it work there too.
[Corion]: Thus having one WWW::Mechanize that supports four browsers, Safari, FF, Chrome and Edge.
[Corion]: I guess I'll burn that bridge once I get to it ;)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2018-04-19 11:26 GMT
Find Nodes?
    Voting Booth?