>X-Unix-From: [EMAIL PROTECTED] Tue Jul 10 05:29:09 2001
>Delivered-To: [EMAIL PROTECTED]
>X-Accept-Language: en
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>Date: Tue, 10 Jul 2001 14:28:02 +0200
>From: Karsten Fries <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Memory Leak
>To: [EMAIL PROTECTED]
>
>Hi there,
>
>i have some memory leaking problem that i want to drag down, because it
>gets the critical issue for my application.
>It's actually very critical, since the the application will run as an
>applet using the java plugin. And i got an avarage leak of 2 MB
>per page reload, which causes a the netscape/ie memory explosion in the
>task manager after few reloads.
>Especially i hope that some sun people could have close contact with me
>to evaluate the leak.
>
>to summarize my experiences so far:
>
>1) i'm aware of bug 4395735 (Memory leak with jdk 1.3 HotSpot compilers)
>and it seems that this bug could be the reason for my leak;
> still i'm not sure if it's not some other problem. The memory
>leakage also occures, when not using the hotspot VM (in OptimizeIt)
>2) i use OptimizeIt to kick the leak, but the tool shows constant
>virtual machine heap size, while the overall application memory in the
> taskmanager incraesed.
> i really emphased decoupling of the objects to ease the job of the
>garbage collector. it seems that from the virtual machine side
>everything
> is fine, but the garbage collected memory is not freed. Or some
>external memory (of native code) is not freed. That would point to a
> Java3D memory issue in the native dlls. I found the bug 4425216 (GC
>failing to reclaim unrefrenced memory after a LONG time....no
> memory leak) which sounds quite (except for the LONG) the same.
>
>What are the tools to use? Is there memory profiler/monitor for NT4.0
>that is known to be useful for this issue.
>What are the first steps in evaluating a memory leak. Do you follow a
>find-memory-leak-cause-best-practice-rule-set?
>I'm not quite sure if I completely understood the first bug mentioned.
>Do I have to compile my java code with a certain VM target set or do i
>just
>have to use a non-hotspot VM for running the app?
>
>Any help appreciated!!
>
There are several bugs related to memory leak in native library,
the last two is fixed in v1.2.1_02
4473727 - OGL: TextureID & DisplayList not free before ogl context destroy in
applet
4451441 - Resource cleanup is not in the same Renderer thread
4457123 - freeContext called by Renderer doesn't free resources on Windows
opengl version
Thanks.
- Kelvin
-------------------
Java 3D Team
Sun Microsystems Inc.
===========================================================================
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".