This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set more size of heap

 
tue march
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

can anybody explain how to increase the heap size and where should be it done and what command to use.

Thanks,
Good guy
 
Lionel Badiou
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can specify those params:

where -Xms<size> specifies the initial Java heap size and -Xmx<size> the maximum Java heap size.

I think those values are set to 50m By default. Sometimes, increasing heap size could (lightly) improve JVM launch.

Hope that helps,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic