My Swing app x NetBeans x RAM usage

Hi,

I have a Swing JDK6 database app running on Windows Terminal Server 2003, with +/- 15 users per time.

There is a user that calls many windows (JInternalFrames, JFrames, JDialog) but I always call dispose() to close the form.

However, this user increases memory usage from morning to afternoon, sometimes at afternoon the process javaw of this user eats more than 120 Mb de RAM.

I would like to know what I would have to look for this problem. When using NetBeans 5.5, there is a Memory Usage Button, and sometimes I need to click it to free some RAM usage from NetBeans. Is there some way to free RAM usage at my program, without to wait for JRE Garbage Collection?

[700 byte] By [Edilmar_Alvesa] at [2007-11-27 9:49:09]
# 1

You may be have to check your code to ensure that it is not just in the Window subclasses you need to dispose.

One method to force garbage collection is System.gc() but I'm not exactly sure if that will solve your problem out right. Checking your code for objects that still linger in memory even though not required be your best bet for now.

ICE

icewalker2ga at 2007-7-13 0:17:49 > top of Java-index,Desktop,Core GUI APIs...