Created attachment 121688 [details]
NetBeans build 201206291011
JDK 7u5 32-bit
I am working on a Maven-based NetBeans platform application, with a JavaEE backend. So I have been running GlassFish from the IDE for the past about 4 hours (with a fair amount of logging going to the output window), and starting and stopping and debugging the front end app.
The IDE was using more and more memory, until it now finally is becoming unresponsive. Not completely unresponsive yet, just sluggish.
Please see attached the messages.log file and snapshots.
I have noticed that this is specific to the 32-bit JDK.
Created attachment 121689 [details]
Created attachment 121690 [details]
Created attachment 121691 [details]
I will provide the link to the heap dump as soon as the upload completes. :)
I opened bug 212479 some time ago.
Seems a similar issue.
And finally the heap dump upload is complete. :)
the memory consumption doesn't seem to be very high considering the 61 open maven projects most of which takes up 2-3 MB, but reassigning to maven for evaluation anyway. Milos, can you please look at the heap dump for oddities - like 76 instances of org.netbeans.modules.maven.execute.AbstractMavenExecutor$ReRunAction is it normal?
There is a significantly high number of o.apache.maven.model.Model instances (2700+) compared to the number of o.a.maven.project.MavenProject instances (67)
for 7.3 I've reduced the number of Model instances to something like 2x MavenProject as a long term trend, can spike a bit here and there.
the sluggish-ness can be explained by you reaching a limit where SoftReferences got released. MavenProject is held by a SoftReference as well, it's generally used though for open (and sometimes not open) proiects, and you ended up in a vicious cycle of loading MavenProject instances and immediately releasing the again.
I'm going to mark it as duplicate of issue 215159, please reopen if he problem persists in 7.3 beta/beta2.
*** This bug has been marked as a duplicate of bug 215159 ***