Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

Finding Heap size Command--Urgent

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-05-2008
Anji Anji is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 10 December 2010, 2:38 AM EST
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old Unix and Linux 03-05-2008
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 28 July 2015, 6:16 PM EDT
Location: /dev/ph
Posts: 4,942
Thanks: 70
Thanked 461 Times in 427 Posts
What UNIX system are you on?
Sponsored Links
    #3  
Old Unix and Linux 05-16-2008
srinivasbt srinivasbt is offline
Registered User
 
Join Date: May 2008
Last Activity: 18 October 2008, 1:22 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
use free -m and/or brk

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
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
find size of heap allocated rupeshkp728 Programming 13 05-06-2011 09:56 PM
Checking heap memory size for java app nthiruvenkatam UNIX for Dummies Questions & Answers 0 07-16-2010 02:45 AM
monitor jvm heap size rein UNIX for Advanced & Expert Users 0 07-21-2005 08:29 AM
heap size for JVM! i2admin Filesystems, Disks and Memory 1 05-09-2002 09:09 AM
heap size! i2admin Filesystems, Disks and Memory 2 05-08-2002 10:20 AM



All times are GMT -4. The time now is 02:51 AM.