WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
Page Index Toggle Pages: 1
Using BAT plugin, cpu uses 50% doing nothing (Read 2491 times)
YaBB Newbies

Posts: 11
Using BAT plugin, cpu uses 50% doing nothing
Oct 3rd, 2006 at 11:32am
Hi Gert.
Using WD pro 4.0.47 and the BAT plugin.
I find the server using 50% CPU on wdRun.exe - always 50% not 49 or 51. This stops the queue from monitoring any new actions.
Is it possible to make it "fail out" if nothing has happened for xx seconds/minutes ?

The WD Task is set to NOT capture output, but not to "Dont wait".

Thanks for any help, this is driving me crazy, it happens 2-3 times every week. (always at the most inconvenient time)

Best regards,
Mark Bjærgager
Back to top

cap_004.jpg (96 KB | )
IP Logged
YaBB Administrator

Posts: 2268
The Netherlands
Re: Using BAT plugin, cpu uses 50% doing nothing
Reply #1 - Oct 3rd, 2006 at 6:26pm

The 4.1 release on the beta forum may very well fix this issue.

Your version...
What is probably happening is that your .bat file is paused or blocked somewhere.
As the option "don't wait for .bat files to complete" is NOT checked by you, WD is waiting for the .bat to quit. The loop where it waits is checking the output of the .bat (even if you didn't select "capture output") and writes it to WD's window. When your .bat is blocked, WD will, in some bizar circumstances, run a very tight loop that will consume all cpu on the current processor (multi processor) or core (multi-core). Not sure how it would run on hyper-threading cpu's, but 50% seems logical.

4.1: when WD detects the strange situation, it will try 20 times (0.5 second interval) to see if the .bat writes anything. If it does WD continues to wait for it (and reset the "20 counter" to zero). If after 20 attempts (10 seconds) there is still no output from the .bat, WD will give up waiting, and the next event will be processed.

Back to top

Gert Rijs - gert (at) gdpsoftware (dot) com
End Alzheimer's:
WWW WWW GdPSoftware  
IP Logged
Page Index Toggle Pages: 1