Home » Infrastructure » Unix » malloc returning NULL if freemem high & swapmem low (MPRAS 3.03 ,x86 platform,2 Pentium III processors,UNIX)
icon14.gif  malloc returning NULL if freemem high & swapmem low [message #336839] Tue, 29 July 2008 03:27 Go to next message
v.ritesh
Messages: 1
Registered: July 2008
Junior Member
Smile 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

Re: malloc returning NULL if freemem high & swapmem low [message #336861 is a reply to message #336839] Tue, 29 July 2008 04:26 Go to previous message
Michel Cadot
Messages: 59161
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
1/ This is not a poll -> deleted
2/ This is not Oracle related -> locked
3/ Don't rate your own question just to emphasize them in list

Topic is locked.
Regards
Michel
Previous Topic: How to find cobol using a specific table
Next Topic: Oracle 9i database installation on Solaris
Goto Forum:
  


Current Time: Mon Sep 22 08:05:47 CDT 2014

Total time taken to generate the page: 0.08897 seconds