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

[EMAIL PROTECTED] wrote:
I'm developing a 3D environment using Java3D for academical purposes.
This environment performs ( at runtime ):

* a lot of texture loading/updating
* picking behavior
* BranchGroups attaching/detaching

I experience heavy memory leaks (15-20 mb) when I rebuild the environment  at runtime.
Before rebuilding I always call:

"myUniverse.removeAllLocales();"
"System.gc();"

I'm sure there's no circular reference.
I tried also "java -Xincgc" for incremental GC.
The result is that after the third rebuild I got a "java.lang.OutOfMemory" message.
I'm using:

jsdk 1.4.1
j3DOGL 1.3.1 beta1

Anyone can help?
Thank and excuse me if my English is not so good.

Giuseppe Fontana

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".

Reply via email to