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.

Bug 117047 - Not enough memory to save opened snapshot
Summary: Not enough memory to save opened snapshot
Status: REOPENED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-28 16:39 UTC by Alexander Kouznetsov
Modified: 2007-10-31 11:18 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
messages.log (104.59 KB, text/plain)
2007-09-28 16:40 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-09-28 16:39:04 UTC
Product Version         = NetBeans IDE 6.0 Beta 1 (Build 200709111000)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06; Sun Microsystems Inc.

NetBeans was configured with "-Xmx1024m" option. However, it failed to save third snapshot of profiled JavaFX module in
memory allocation mode with stack traces enabled. There were strange "overflow!" lines in messages.log. Although it
displayed "Not enough memory to save snapshot" warnings it was able to dump heap, open it in heapwalker and even perform
rule-based analysis. No OutOfMemory errors were reported in logs.
Comment 1 Alexander Kouznetsov 2007-09-28 16:40:01 UTC
Created attachment 49752 [details]
messages.log
Comment 2 Tomas Hurka 2007-09-28 19:37:08 UTC
I am not sure what is actual problem here. FYI: overflow! is debug output from memory lint. 
Comment 3 Alexander Kouznetsov 2007-10-01 09:51:19 UTC
From user's point of view it's strange that profiler is able to open snapshot, but fails to save it. No other messages
are shown and it seems that there is enough memory for profiler since it is perfectly works with (probably) larger heap
dump file. What would you recommend to do in this situation?
Comment 4 Tomas Hurka 2007-10-01 10:17:18 UTC
It looks like you mix snapshot and heap dump. 
Saving snapshot requires additional memory therefor you can take shapshot (it is held in only memory), but you cannot save it. I do not see any problem here. 
Start IDE with lager Xmx.
Comment 5 Alexander Kouznetsov 2007-10-01 10:26:33 UTC
I was just thinking that 1024m of heap should be enough to handle profiling snapshots. It seems that I was wrong. Verified
Comment 6 Alexander Kouznetsov 2007-10-31 11:18:18 UTC
Reopening as ENHANCEMENT. It would be nice if profiler was able to save already opened snapshot.