wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Track of no. of objects at runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Track of no. of objects at runtime" Watch "Track of no. of objects at runtime" New topic
Author

Track of no. of objects at runtime

nitin_k
Greenhorn

Joined: Sep 19, 2001
Posts: 11
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

Joined: Apr 20, 2000
Posts: 3252
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Track of no. of objects at runtime