I have a small application which conects to the database and wrote some 2d
graphics. I track the memory usage, while I opening and close the next
database, and I saw that memory usage is growing although I try to clean
everything:
shutdown the database, close the ResultSet, dispose the JFrames and finally
I System.gc().
1. In the case when my application close/open database file and create gui
again which variables I need to initialized to null ?
2. How to see what variables are not null ?
3. which variables, can in your opinion, cause that memory usage grow? Is it
database stuff, gui stuff (I know that I must dispose JFrames) or what?
Dado - 01 Apr 2005 08:38 GMT
> I have a small application which conects to the database and wrote some 2d
> graphics. I track the memory usage, while I opening and close the next
[quoted text clipped - 8 lines]
> 3. which variables, can in your opinion, cause that memory usage grow? Is
> it database stuff, gui stuff (I know that I must dispose JFrames) or what?
Seems that I was badly describe the problem or my question is not on right
place.