0

I am trying to find memory leak in an application. It's a Java EE app running on GlassFish 2 with Hibernate and Lucene.

System monitor tells me that the memory used by GlassFish is more than 4gb. But when I open a heap dump in jprofiler I it tells me that there is only about 600mb allocated.

What do you think is wrong in what I am doing?

Do you think it is possible that the rest are objects that should be garbage collected and there is something wrong with gc? We process a lot of data so I am sure there are a lot of objects created in a short time.

4

1 回答 1

0

The 600MB mentioned by JProfiler is java's heap which will get expanded as need up to max heap space.
The 4GB mentioned by system monitor is the memory used by all application (JVM, your server etc)

于 2013-05-11T08:31:51.253 回答