• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can JVM Expand at the run time?

 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible for the JVM to grow its heap size when it is running some application?
 
Greg Charles
Sheriff
Posts: 2985
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this Link which solved many of my queries.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic