WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
WxListenerSvc.exe - memory usage (Read 1089 times)
TonyF
YaBB Newbies
*
Offline



Posts: 37
WxListenerSvc.exe - memory usage
Aug 10th, 2016 at 11:34am
 
I noted that the WxListenerSvc.exe is using ~ 200MB of memory on our WatchDirectory server.

At first sight this seems rather high - is this as designed?

many thanks,

Tony
Back to top
 

WxListenerSvc.png (6 KB | 87 )
WxListenerSvc.png
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2238
The Netherlands
Re: WxListenerSvc.exe - memory usage
Reply #1 - Aug 10th, 2016 at 3:52pm
 
Hello Tony,

I would not be concerned about it unless you see its memory usage growing.

Also, most likely, this is typical "startup" cost. As you probably can imagine, when a program starts up it needs (during initialization) a lot of extra memory that is freed when the startup code has finished. Windows will typically not reclaim this memory until it is actually needed by a different program.

You can force Windows to reclaim this startup-memory by minimizing/maximizing/minimizing the application a few times. This minimize tells Windows... I am not planning to use this program for a while and Windows will cleanup a bit.

Obviously, you run the ...Svc.exe (Service executable) of the listener. Hard to minimize Wink
Just run the "normal" exe instead and do the minimize/maximize trick explained above to see its actual memory usage.

I am not sure about the Wx programs (I didn't program them), but our other programs perform a special "trick" after starting up causing the same effect without minimize/maximize. The only reason this is implemented is because people (like you) were wondering about the memory use of WatchDirectory.

Note that the "trick" does work (so we get less questions about memory usage), but:
- Microsoft tells developers not to do it (let Windows do the optimization)
- It will slow the program down (a tiny bit), this is just one slowdown after startup.

Let us know what you find.

Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2238
The Netherlands
Re: WxListenerSvc.exe - memory usage
Reply #2 - Aug 10th, 2016 at 6:31pm
 
This got us curious so we did a small test and it seems (we are still looking into it), WxListener is leaking a (very) small amount of memory every time a client refreshes their display.

Any idea how long WxListener has been running (could it be weeks)?
How many tasks on the local computer it is reporting on (WD + WF tasks)?
How many clients (via the web interface and via the Windows program)?

Thanks, Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2238
The Netherlands
Re: WxListenerSvc.exe - memory usage
Reply #3 - Aug 19th, 2016 at 8:37am
 
Hello Tony,

We have fixed this issue in the new 1.9.2 release, see http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1471588571
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1