B
Brandon McCombs
hello,
My java application seems to use more memory than another application
that does something very similar and I'm trying to figure out if the
differences between the apps are causing the different in memory usage
or if it's really something like a memory leak in my app that I need to
fix. The memory difference is about 50 megs and it causes my app to hit
the java heap space limit very easily when running it in Eclipse. My app
dramatically increases in size as I fill in more information in a JTree
however the other app stays at about the same usage.
The question I have is what can I use (profiler, debugger, etc.) to tell
me what variable(s) are the ones that are taking up enormous amounts of
memory? I've tried the Eclipse debugger and I notice that a list model
that I use gets bigger however the actual data stored in it is the right
amount with the remaining elements actually being set to null. I assume
that means that it isn't taking up more memory than it is supposed to so
I think I should look elsewhere but I don't know where and maneuvering
through the eclipse debugger is tedious. It would be nice to find
something that can easily show me all my variables and list their sizes
as my program runs. I know a profiler will show me the memory usage is
increasing but will it easily help me find a memory leak if there is one?
Any suggestions?
thanks
Brandon
My java application seems to use more memory than another application
that does something very similar and I'm trying to figure out if the
differences between the apps are causing the different in memory usage
or if it's really something like a memory leak in my app that I need to
fix. The memory difference is about 50 megs and it causes my app to hit
the java heap space limit very easily when running it in Eclipse. My app
dramatically increases in size as I fill in more information in a JTree
however the other app stays at about the same usage.
The question I have is what can I use (profiler, debugger, etc.) to tell
me what variable(s) are the ones that are taking up enormous amounts of
memory? I've tried the Eclipse debugger and I notice that a list model
that I use gets bigger however the actual data stored in it is the right
amount with the remaining elements actually being set to null. I assume
that means that it isn't taking up more memory than it is supposed to so
I think I should look elsewhere but I don't know where and maneuvering
through the eclipse debugger is tedious. It would be nice to find
something that can easily show me all my variables and list their sizes
as my program runs. I know a profiler will show me the memory usage is
increasing but will it easily help me find a memory leak if there is one?
Any suggestions?
thanks
Brandon