Solved

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

Posted on 2002-05-15
2
184 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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.

685 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