• Post Reply Bookmark Topic Watch Topic
  • New Topic

memory usage

 
Sindhu Rani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i know the memory used by a java program??
 
Carey Evans
Ranch Hand
Posts: 225
Debian Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get basic figures from Runtime.totalMemory() and Runtime.freeMemory() in running code, or by running jvisualvm.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!