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

Performance  RSS feed

 
Ion Gherasim
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to obtain the free memory of the JVM on one time in a programmatically way. Is it any solution for this?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the java.lang.Runtime JavaDocs
There you will find all of the methods related to the JVM's memory.
Bill
 
Ion Gherasim
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tx
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops, should have been: Runtime.getRuntime().freeMemory();
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!