malloc returning NULL if freemem high & swapmem low [message #336839] |
Tue, 29 July 2008 03:27 |
v.ritesh
Messages: 1 Registered: July 2008
|
Junior Member |
|
|
Hi All,
Please help me ,I am realy struggling
In my application malloc is returning NULL even though there is sufficient amount of free memory is available but swap memory is low.
Is this possible that, if free memory is high & swap memory is low, malloc will not be able to allocate memory & return NULL ?
Kindly look into the issue as I am not able to start my application in the above mentioned condition.
Note:output of OS level and current kernel patch level 03.03.02.15
Commands I used to measure free memory and swap :
[ app001-0 root:/ ] sar -r 1 10
app001-0 app001-0 4.2 3.3 SDS2 06/03/08
06:56:32 freemem freeswp
06:56:33 513222 10197
06:56:34 513205 10197
06:56:35 513210 10197
06:56:36 513210 10197
06:56:37 513231 10197
06:56:38 513271 10197
06:56:39 513271 10197
06:56:40 513268 10197
06:56:41 513258 10197
06:56:42 513258 10197
Thanks & Regards,
Ritesh
[Updated on: Tue, 29 July 2008 04:24] by Moderator Report message to a moderator
|
|
|
|