Profiler reports wrong number of instances

Questions about YourKit Java Profiler
Post Reply
svejb
Posts: 8
Joined: Fri May 20, 2005 12:53 pm

Profiler reports wrong number of instances

Post by svejb »

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

Post by svejb »

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.
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

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
svejb
Posts: 8
Joined: Fri May 20, 2005 12:53 pm

Post by svejb »

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
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

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: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

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.
svejb
Posts: 8
Joined: Fri May 20, 2005 12:53 pm

Post by svejb »

Hi Vladimir,

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

Thanks,
Venkatesh
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Bundled help explains "retained size" concept.
Post Reply