Memory Leak

Hi

We have created a tango program which has two read bodies for two of its attributes only.
When the client is connected to it,the memory leak keeps increasing linearly. Where does this memory leak occur? How can we stop the memory leak?

Thanks and regard
TGMRT.
Regards,
TCS_GMRT
Can you be more specific? You need to provide the source code if you want us to help. Have you run valgrind on the program to try to determine where the leak is?

Andy
We have just run program which is generated by POGO that contains two attributes (one read only and other read/write ). Still we are facing memory leakage.

Please find an attachment of program.

Thanks and Regards,
TGMRT
Regards,
TCS_GMRT
Hi,

I have downloaded, compiled and ran your Tango class. A strange one! Nothing coded inside the read or write attribute methods!
I have also started a client reading the speed attribute. I have one exception at each reading (because on the server side the
attribute set_value() method is not called) but I do not see any leak. Valgrind also does not report anything.

Where do you notice this memory leak? On the server side, client side?

Regards

Emmanuel
Hello,

we are using tango ver8.1.2 and fedora 19 pre-installed 'system monitor' utility to check memory usage by DS process i.e. server process

We also tried 'TangoTest' example bundled with Tango installation for the same purpose, there also memory usage keeps-on increasing. Within 16 minutes its Memory usage becomes 151.9MB from 41MB initially.


Thanks and Regards,
TGMRT
Regards,
TCS_GMRT
I would be surprised if there is a memory leak in TangoTest. It is installed and running in many places and this is the first time a leak is reported. On the Tango9 virtual box for example I have it running with VmSize = 863876 kb and it does not increase. What is different on your system? I presume you compiled tango 8.1.2 and the TangoTest yourself. But this still does not explain the leak you are seeing. The memory usage you list is very low for a Tango server. Where does this number come from? Can you cat the /proc/pid/status file to get the whole picture.

As Manu said we do not see a leak in your (empty) server. Can you try to run it on the Tango virtual box to see if the problem comes from your installation?

Andy
Thanks for your reply.

Here are the results with cat proc/ pid/status

Step 1: I ran the Tango Test program. Attaching Proc_0.txt and Sysmon_0.png. Sysmon is monitored using the system monitor functionality of Fedora 19.

Step 2: After 10 min. once again I took readings. Pl. refer proc_1.txt and sysmon_1.png

The memory was quite stable in sysmon_1. But proc Vmsize reported increase of 65536 kb.

Step 3: Started the client - ATK panel from jive (1 instance) And noted the results in Proc_2.txt and sysmon_2.png

The memory was increasing in sysmon. Also noticed that proc Vmsize increased.

Step 4: Allowed to run it for 15 min. more. And noted the results in Proc_3.txt and sysmon_3.png

The memory was increasing in sysmon. Also noticed that proc Vmsize increased.

I am doing observations in VM.I will let you know its result also.

Can you provide the pointers as to how do we go ahead about fixing this issue?

Also, I am not clear about your statement in the earlier reply "…..Can you try to run it on the Tango virtual box to see if the problem comes from your installation?" Can you please elaborate on this? I remember, i followed the instructions shipped with the TANGO tools for installation. How do I go ahead about rectifying it?


Thanks and regards
TGMRT

Regards,
TCS_GMRT
Hi,

Sorry to ask you one more thing but because we do not have the problem here we need your inputs.
Is it possible for you to install valgrind on your host?
Then run your device server under valgrind control with the following command line

valgrind -v –log-file=<a file> –leak-check=yes –leak-resolution=high –num-callers=50 TangoTest test

(assuming TangoTest is in your PATH and test is its instance name)
Let it run during few minutes with your clients being active. Stop the device server and send us the file generated by Valgrind

Regards

Emmanuel
Hello,
thanks for your reply.

Here is the attachment of log file as required.

And please let me know if there was anything wrong with tango installation or any other factor affecting to this problem, so that we can correct it.

Thanks and Regards,
TGMRT
Regards,
TCS_GMRT
Hi

Here is the attachment of log file which is generated by running TangoTest for 25 minutes.
I hope it will be helpful.


Thank & Regards,
TGMRT
Regards,
TCS_GMRT
 
Register or login to create to post a reply.