Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes Can JVM Expand at the run time? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Can JVM Expand at the run time?" Watch "Can JVM Expand at the run time?" New topic
Author

Can JVM Expand at the run time?

Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

Is it possible for the JVM to grow its heap size when it is running some application?


My Blog SCJP 5 SCWCD 5
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2840
    
  11

You can give the JVM an initial heap size with the -Xms parameter, and a maximum heap size with -Xmx. It will automatically grow up to the maximum size as needed.
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

Thanks for the reply Greg.
I was interested in knowing can a JVM grow its size beyond -Xmx size?
Also is there some doc which tells about the default values of these args. especially of -Xmx
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

I found this Link which solved many of my queries.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can JVM Expand at the run time?
 
Similar Threads
Query on JVM
size for data type boolean
main() doubts
WA #2 ..... word association
Java Error While appending to Zip File