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.