Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JVM heap size usage tracking?  RSS feed

 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I set -Xms128m -Xmx128m for an application server how do I constantly track if I have enough heap size?

I'm using windows. So, using windows' peformance tracker, I'd only get 128mb as the allocated memory.
 
Scott Johnson
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use the -verbosegc JVM option, the JVM will write the heap utilization before and after garbage collection to stderr.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jconsole?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!