Giuseppe,
I notice that you already got an answer to the first part of your question.
If you look at the 'stack trace' column of the heavily-used objects, you can
tally this up with one of the earlier 'TRACE' entries, so you can see what was
on the stack when the objects were allocated, and thus hopefully understand why.
E.G. One of my traces has an entry
2 3.54% 9.24% 4020912 27923 81549504 566316 24870 [D
and 'TRACE 24870' reads:
TRACE 24870:
javax.media.j3d.Transform3D.<init>(Transform3D.java:87)
javax.media.j3d.SceneGraphPath.<init>(SceneGraphPath.java:61)
javax.media.j3d.Picking.getSceneGraphPath(Picking.java:362)
javax.media.j3d.Picking.pickAll(Picking.java:38)
javax.media.j3d.Locale.pickAll(Locale.java:574)
rob.kit.KitUtilities.pick(KitUtilities.java:161)
You'll only get the first 4 entries of each stack trace unless you do something
like '-Xrunhprof:heap=sites,depth=6'. Recording deeper stacks takes longer though.
Rob
Giuseppe Fontana wrote:
On Wed, 19 Feb 2003 16:26:40 +0000, Rob Nugent <[EMAIL PROTECTED]> wrote:
Giuseppe,
You could try running your app with 'java -Xrunhprof:heap=sites ...'
When your app terminates, you can inspect the resultant hprof file and look at
the SITES section to see what objects are in your heap. This might give you some
clues.
Rob
Rob,
Thanx for the advice.
I executed my program and examined the sites.
I got:
* 89.85 % sites, whose names are [B , [I, [F
* 10.15% sites, whose names are javax.media.j3d.Shape3DRetained, javax.media.j3d.TriangleArrayRetained, javax.media.j3d.TransformGroupRetained,
javax.media.j3d.GeometryAtom,
javax.vecmath.Point3d,
javax.media.j3d.AppearanceRetained, javax.media.j3d.Texture2DRetained and other Java3D related stuff.
Do you know what are those [B, [I, [F sites?
Otherwise, can you tell me where can I find some docs about site inquiry?
Unfortunately I'm still beginner...
Thanx,
Giuseppe
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
--
Rob Nugent
Sun Microsystems, Southampton, UK
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".