Fully featured low overhead profiler for Java EE and Java SE platforms.
Performance monitoring and profiling of Jenkins, TeamCity, Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Profiler reports wrong number of instances

Moderators: Vladimir Kondratyev, Anton Katilin

Profiler reports wrong number of instances

Postby svejb » Fri Jul 01, 2005 5:31 pm

Hi there,

Howdy. I was profiling an application and found some discrepency in the profiler memory snapshot reports.

Say Object A has Object B as an instance variable.
Objects for Instance B is 1.
But, Objects for Instance B in Instance A is 19.

This is little misguiding. Any response is greatly appreciated.

I do not know how to attach an image here elase I do have an image of the snapshot which is much more clearer to understand.

Thanks,
Venkatesh
svejb
 
Posts: 8
Joined: Fri May 20, 2005 12:53 pm

Re: Profiler reports wrong number of instances

Postby svejb » Fri Jul 01, 2005 5:32 pm

svejb wrote:Hi there,

Howdy. I was profiling an application and found some discrepency in the profiler memory snapshot reports.

Say Object A has Object B as an instance variable.
Objects for Instance B is 1.
But, Objects for Instance B in Instance A is 19.

This is little misguiding. Any response is greatly appreciated.

I do not know how to attach an image here elase I do have an image of the snapshot which is much more clearer to understand.

Thanks,
Venkatesh


Forgot to mention that I'm using build 616. Profiling an app on Linux x86_64 and yjp client on Windows 2000.
svejb
 
Posts: 8
Joined: Fri May 20, 2005 12:53 pm

Postby Vladimir Kondratyev » Fri Jul 01, 2005 6:12 pm

Please upload ZIPped snapshot file to our FTP server

Here is connection parameters:
ftp://194.24.241.196
user: ftp
empty password

also send step-by-step description how to reproduce the problem to [email protected]

Thank you in advance,
--vladimir
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby svejb » Fri Jul 01, 2005 7:39 pm

I've uploaded the image files and circled the important classes in RED color.

Step by Step Instructions:

I start my server
Start the client which uses 100 threads to concurrently access the server with 6000 requests
I wait until all the requests are complete
Force a GC in the profiler and wait for 10 mins
I then take a memory snapshot

Thanks,
Venkatesh
svejb
 
Posts: 8
Joined: Fri May 20, 2005 12:53 pm

Postby Vladimir Kondratyev » Fri Jul 01, 2005 8:35 pm

I'm sorry but we need snapshot file (not images). First step of your instruction is "start my server ". We do not have your server :)

Please upload zipped snapshot file.
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby Vladimir Kondratyev » Tue Jul 05, 2005 12:40 pm

Here is my comments about your screenshots:

Number (19) which is near to field GFRetrieveAgentImpl.rmdRetrieveDao is not a number of instances of class com.gale.fca.retrieve.agent.RmdRetrieveDao. It's a number of objects that are retained by this feild. It means that Ctrl+Q ("Quick Info" action) will show you the same numbers.
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby svejb » Wed Jul 06, 2005 2:13 pm

Hi Vladimir,

Thankls for your reply. What does it mean by "Number of Objects retained by this field"? Can you please elaborate?

Thanks,
Venkatesh
svejb
 
Posts: 8
Joined: Fri May 20, 2005 12:53 pm

Postby Vladimir Kondratyev » Wed Jul 06, 2005 2:16 pm

Bundled help explains "retained size" concept.
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.