WatchDirectory Forum
watchDirectory forums >> Wx Remote Control Center >> WxListenerSvc.exe - memory usage

Message started by TonyF on Aug 10th, 2016 at 11:34am

Title: WxListenerSvc.exe - memory usage
Post by TonyF on 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,

WxListenerSvc.png (6 KB | 85 )

Title: Re: WxListenerSvc.exe - memory usage
Post by Gert on 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 ;-)
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.


Title: Re: WxListenerSvc.exe - memory usage
Post by Gert on 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

Title: Re: WxListenerSvc.exe - memory usage
Post by Gert on Aug 19th, 2016 at 8:37am
Hello Tony,

We have fixed this issue in the new 1.9.2 release, see

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.