• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Track of no. of objects at runtime

 
nitin_k
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i keep a track of no. of all the objects in my java application at runtime? and accordingly how proper memory
management measures c'd b taken?
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no good way (you can get some output using debugging flags, but there's no Java API for this). But, if you're asking this question in the context of the assignment then you are really thinking way outside its scope.
Please re-register with a proper name. Thanks.
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic