OptimizeIt and JProbe will track memory usage in the VM, but does anybody know a good way to track *native* memory usage when running a Java 3D-based app? I refer to the memory usage allocated by the Java 3D binaries (.so or .dll).
Note that a substantial portion of the memory used by a typical Java 3D-based app is from those binaries, not just the VM.
- Mauricio
-----Original Message-----
From: Daniel Selman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 12:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Track down memory leaks
Bob,
For large applications I would strongly recommend the commercial products
OptimizeIt or JProbe.
Sincerely,
Daniel Selman
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Karsten Fries
Sent: Friday, February 22, 2002 2:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Track down memory leaks
Hi,
you can call the System memory methods to determine the memory used by the
VM. If the VM memory drops after the gc your graphics driver software might
be the problem.
If the VM memory stays at the high level it seems that your objects are not
garbage collected at all. Then you have to check for circular references
like
shape.getUserData() == object
and
object.getShape() == shape
and release them by clearing the references.
With JDK1.3.1_02 and Java1.2.1_03 i cannot monitor memory leaks.
I also use the detach meachanism for getting rid of geometry
Cheers,
Karsten
PS: i recently used OptimizeIt to analyse my application concerning memory
usage
and leaks
RWGRAY wrote:
> Does anyone have a suggestion/tool for tracking down "memory leaks".
>
> I build a BracnkGroup with lots of objects. Attach it to my scene.
Later,
> I detach it. After detaching and calling System.gc(), I *never* see the
> memory usage for javaw decrease. (Windows 2000 task manager reports
memory
> usage of tasks.)
>
> Are there ways to track down what is still allocated that is preventing
the
> freeing up of all the memory used by the detached BranchGroup?
>
> What happens if I use a SharedGroup and a Link? If I allocated a
> SharedGroup in a method, and add a Link under the BranchGroup to the
> SharedGroup, then later, detach the BranchGroup, does Java 3D keep the
> SharedGroup around someplace so the memory allocated to the BranchGroup is
> still allocated? Even when there are no longer Links to the SharedGroup?
>
> Are there better ways to measure memory usage other than the tack manager
of
> Windows to determine/track "memory leaks"?
>
> Thanks,
> Bob Gray
>
>
===========================================================================
> 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".
===========================================================================
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".
===========================================================================
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".
