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


In reply to Re: Script slow only when run as scheduled tasks on Windows Server by Anonymous Monk
in thread Script slow only when run as scheduled tasks on Windows Server by Tabla

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.