Hi,

 

Please ignore if it is not appropriate to post this question here.

 

 

For reasons unknown, my application memory grows from about 200-300 MB
to more than 2 GB.

 

Then it remains constant(it does not grow any more).Normally it can grow
upto 800-900 MB due to caching but not more than that.

 

This happens only in Linux and not other OS. (2.4.21-32.0.1.ELsmp #1 SMP
Tue May 17 17:52:23 EDT 2005 i686 i686 i386 GNU/Linux)

 

Reading upon malloc(), I found that in a multi-threaded environment, it
allocates additional heap sections if it does not find an unlocked heap
segment.

 

Dumping a core and analyzing the readelf output shows around 1200 heap
sections.

 

To make sure that it is not caused by a memory leak, I need to check the
malloc headers and see whether these allocated chunks are IN_USE.

 

I'm familiar with solaris malloc headers and should be able to figure
out if I had the source code for linux malloc. 

 

Can somebody please point me to it or if you can explain the malloc
headers, it would be great?

 

Has anybody faced this kind of problem with linux malloc() ? Any ideas?

 

Any help would be greatly appreciated.

 

Thanks,

Praveen.

 



============================================================================================================================
 
Disclaimer:

This message and the information contained herein is proprietary and 
confidential and subject to the Tech Mahindra policy statement, you may review 
the policy at <a 
href="http://www.techmahindra.com/Disclaimer.html";>http://www.techmahindra.com/Disclaimer.html</a>
 externally and <a 
href="http://tim.techmahindra.com/Disclaimer.html";>http://tim.techmahindra.com/Disclaimer.html</a>
 internally within Tech Mahindra.

============================================================================================================================

[Non-text portions of this message have been removed]

Reply via email to