mardi 13 janvier 2015

RSS constantly increase in size

Hi all,



I am implementing an app that will use the ForexConnect, using C++ lib for Linux (also compiling same codebase in Mac).

I am using clang and libc++ when compile it (both on Linux and Mac). Version of ForexConnect is 1.3.0.



In current form the app will open connection to the FXCM and subscribe to the session state and responses.

It gets account data and offers from login data and receives table updates for offers.

When it receives this updates - app will constantly grow it RSS memory size. This growth very much depends on the reception rate of the offer updates. Roughly it increases RSS by 4KB on every 3-4 seconds.

When I run app for a day - it increases RSS size from 10.5MB to 48MB - and continue increase... Virtual size of the process also increased...

Same happens when I compile same code on the Mac (using mac version of the libs).



I have checked with valgrind - it does not report any significant leaks that can lead to such behavior (but it shows few anyway in ForexConnect libs).



Also I used supplied example (GetOffers) - I have changed it to run for 3 minutes - I see that RSS also exibit same behaviour...



What is this? Is it a bug or feature?



My intention is to create a daemon that will listen to the offers - but this issue will blow my server if daemon will be left for a long time without restart.




Aucun commentaire:

Enregistrer un commentaire