Hi All,
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.
Regards & Thanks,
Ritesh
Is your system running on a x86 platform? what processor or h/w? solaris version? output your OS level and current kernel patch level as well. Thx
Also, show what commands you use to measure free memory and swap and their output.
Hi All,
Please find the details asked by you:
Is my system running on a x86 platform? Yes..
� what processor or h/w? 2 Pentium III processors
� MPRAS version? 3.03 (As I am using MPRAS not solaris)
� 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
Hi All,
Please look into the above mentioned issue I am facing as this is very urgent for me.If any further detail required plz let me know
Regards & Thanks,
Ritesh
Not sure if the Solaris specific forum is the best choice for non Solaris related questions ...
Anyway, is your OS supporting the vmstat command ?