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