wood burning stoves 2.0*
The moose likes Java in General and the fly likes Number of Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Number of Objects " Watch "Number of Objects " New topic
Author

Number of Objects

Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 140
Hi,

I have to figure out how many objects are created in JVM at particular point of time during program execution. Can you please suggest how can I achieve this in eclipse?

Thanks.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8414
    
  23

Vaibhav G Garg wrote:I have to figure out how many objects are created in JVM at particular point of time during program execution. Can you please suggest how can I achieve this in eclipse?

I suspect there are several profilers around that can do it for you; although I have to admit, I've never tried.

Any particular reason for needing this? It seems like an odd request.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 140
I am preparing for SCJP exam and there was a similar question in the mock exam. So, just wanted to check the correctness of the question I thought of running it in eclipse.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8414
    
  23

Vaibhav G Garg wrote:I am preparing for SCJP exam and there was a similar question in the mock exam. So, just wanted to check the correctness of the question I thought of running it in eclipse.

Well, If you're using the Sierra/Bates study book, I'm pretty sure they give all the answers in the back (it certainly did when I did the exam). Are you saying you want something to check that their answers are correct?

Winston
Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 140
Hi Winston,

I was giving some online tests and wanted to cross-check the questions for that.

Thanks & Regards,
Vaibhav Garg
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Number of Objects