Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JVM Size  RSS feed

 
vivek D.K
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me how to set the JVM size ?
Thanks in Advance
Vivek
 
Vladimir Ergovic
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java -Xms256m -Xmx512m ..
first is start heap size
second is max heap size - if you use more memory you will get OutOfMemory exception
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!