Finding Heap size Command--Urgent | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Finding Heap size Command--Urgent

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 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 03-05-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 19 September 2014, 8:49 PM EDT
Location: /dev/ph
Posts: 4,809
Thanks: 63
Thanked 425 Times in 394 Posts
What UNIX system are you on?
Sponsored Links
    #3  
Old 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 Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:04 AM.