This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I opened a heap dump linked from: http://netbeans.org/projects/www/lists/netcat/archive/2010-04/message/226 (I can provide you a copy offline if needed). The four most common instances in the heap dump are: -j.l.Long: ~8M5 instances, ~205MB of memory -j.l.Object[]: ~3M instances, ~500MB of memory -j.u.ArrayList: ~3M instances, almost 100MB of memory -SamplesOutputStream$Sample: ~1M5 instances, ~60MB of memory I tried to look at the Longs, and the instances I inspected were held by SelfSamplerAction$Controller. The biggest Object[] itself consumes ~12MB of memory, and is also held by SelfSamplerAction$Controller. So it looks like the SelfSamplerAction$Controller retains incredible amounts of memory, which it should not, IMO.
Tomáši, please limit the number of gathered snapshots to 5min. I'll fix bug 183201 in code completion meanwhile.
This report is based on investigations from NetCAT team hence adding appropriate prefix.
There is no problem with SelfSamplerAction. The main problem is that due a problem in code completion, which can run multiple samplings over a long time.
Wait a second. After returning from lunch yesterday I had the OOME with very similar heap dump (500.000 of longs, 15000 of stacktraces etc.). I didn't touch the IDE when I was on lunch. I consider that a P1. Maybe it is a different problem. Should I attach my heap dump from that for you to compare? I can guarantee that I did not invoke code completion from lunch ;-)
You experienced issue #183201. That issue is P1, but the problem is _not_ in SelfSamplerAction. Your problem will be fixed by fix of issue #183201.
Ok, thanks.
See also issue #183832.
maximum sampling time limited to 5 minutes fixed in profiler-main changeset: 167939:03cf9491afab user: Tomas Hurka <thurka@netbeans.org> date: Tue Apr 20 11:46:59 2010 +0200 summary: bugfix #183993, limit maximum sampling time to 5 minutes
Integrated into 'main-golden', will be available in build *201004230200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/03cf9491afab User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #183993, limit maximum sampling time to 5 minutes