Solved

How do i know in Java How many objects are being used by a class

Posted on 2002-05-15
2
170 Views
Last Modified: 2010-03-31
Hi
 Can u please give me which will tell me that how many object r being by a specific and how much memory is consumed by each object as well that class which i am using ..Please send me the code as soon as possible..

Regards

Rajiv
0
Comment
Question by:rajivnt
2 Comments
 
LVL 1

Accepted Solution

by:
BaneBane earned 200 total points
ID: 7010665
Why don't you use a profiling tool like optimize it or jProbe?

Any way take a look at http://www.javaworld.com/javaworld/javaqa/2001-12/03-qa-1228-memory.html?

there is a nice explanation for your question and a few nice likes.
0
 
LVL 5

Expert Comment

by:vemul
ID: 7888113
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- points to BaneBane

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

vemul
Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now