Finding Heap size Command--Urgent

Hi Friends,
i need a unix command to check the heap space availability on unix system as I am getting following error:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error occurred during initialization of VM
Could not reserve enough space for object heap

What UNIX system are you on?

Hi,

You can get the system memory available by the command:

#free -m

Also if you want to know the memory available to any particular process, you can use Zero increment to the sbrk() system call. Check the man page for usage...

Happy programming...

Srini

Installers for Linux operating system