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 111296 - java.lang.OutOfMemoryError
Summary: java.lang.OutOfMemoryError
Status: RESOLVED DUPLICATE of bug 90267
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-28 11:45 UTC by jardakortus
Modified: 2008-12-22 13:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 85


Attachments
stacktrace (2.14 KB, text/plain)
2007-07-28 11:45 UTC, jardakortus
Details
stacktrace (2.18 KB, text/plain)
2007-08-05 12:34 UTC, jportway
Details
stacktrace (2.22 KB, text/plain)
2007-08-06 12:35 UTC, Peter Pis
Details
stacktrace (2.14 KB, text/plain)
2007-08-17 18:53 UTC, mzslater
Details
stacktrace (2.14 KB, text/plain)
2007-08-23 19:42 UTC, Narayana Pedapudi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jardakortus 2007-07-28 11:45:50 UTC
Build: NetBeans IDE Dev (Build 200707221200)
VM: Java HotSpot(TM) Client VM, 1.5.0_06-b05
OS: Windows 2000, 5.0, x86
User Comments:
Comment 1 jardakortus 2007-07-28 11:45:53 UTC
Created attachment 45865 [details]
stacktrace
Comment 2 Milos Kleint 2007-07-30 08:08:38 UTC
oh, well. Not sure we can do something about an automated OOME report without further details
Comment 3 Petr Blaha 2007-07-30 10:55:02 UTC
Reporter, can you provide more informations, like what did you do when you get OOME, attach dump..? Please, look on page
http://wiki.netbeans.org/wiki/view/FaqNetBeansAndOOMEJa
Comment 4 pzajac 2007-08-03 09:38:04 UTC
I'm for to either not report  OOME automatically or report  it to special component in "ide" subcomponent.
Comment 5 jportway 2007-08-05 12:34:12 UTC
Build: NetBeans IDE Dev (Build 200708040000)
VM: Java HotSpot(TM) Client VM, 1.5.0_12-111
OS: Mac OS X, 10.5, i386
User Comments: 
Comment 6 jportway 2007-08-05 12:34:19 UTC
Created attachment 46166 [details]
stacktrace
Comment 7 Peter Pis 2007-08-06 12:35:08 UTC
Build: NetBeans IDE Dev (Build 070805)
VM: Java HotSpot(TM) Client VM, 1.5.0_12-b04
OS: Windows XP, 5.1, x86
User Comments: Steps:
1. Invoke "CVS | Checkout" wizard
2. Enter CVSRoot :pserver:anonymous@cvs.dev.java.net:/cvs
3. In 2nd step of checkout wizard enter module: "genesis"
4. Checkout
Comment 8 Peter Pis 2007-08-06 12:35:15 UTC
Created attachment 46188 [details]
stacktrace
Comment 9 jardakortus 2007-08-14 10:19:22 UTC
Could you please describe "further details" you want to get from me? If I'm able to solve the issue, I'd solve and just 
report the solution. 

Neverthless I guess that the nb console consumed to much memory :)) .. what additional info could I have? I just run 
application producing very lot of logging information into std output, I it should be clear from problem description. 
That's all. 

(If I would be on your place, I would suggest, that to much log was produced "in batch" (from nb view), so the nb 
output console buffer didn't reserve enough memory. When I running the same application not from NB, problem never 
occurs, when from NB, time to time the same outOfMemory..)

Regards
Comment 10 Milos Kleint 2007-08-14 10:28:34 UTC
Well, by details I mean stuff like.
1. what you did before the error occurs, possibly with reproducible steps.
2. more details about your machine. How much memory it has etc.
3. details about the amount of output.

when I've previously done fixes in the output window performance, it scaled quite well and I was able to spit out and
browse more output than I had physical memory. (1 GB on macosx). Note that the OOME comes from java NIO which does
direct memory buffering of parts of the output file.
Comment 11 _ rkubacki 2007-08-16 19:19:40 UTC
Better to try english version - http://wiki.netbeans.org/wiki/view/FaqNetBeansAndOOME

Generally IDE redirects output to a file and maps it into memory as a ByteBuffer. If the file the so large that the JVM
cannot allocate address space for it OOME is thrown. Do you have an estimation how big output is created (Milos: where
are these files stored?)

Since this is very special OOME we can think about some special cases to handle this and recover even if it would mean
that we stop to process output and give notification that it is too large now.
Comment 12 Milos Kleint 2007-08-17 07:24:47 UTC
System.getProperty("java.io.tmpdir") which points to your temp directory (varies with OS)
Comment 13 mzslater 2007-08-17 18:53:15 UTC
Build: NetBeans IDE Dev (Build 200708170000)
VM: Java HotSpot(TM) Client VM, 1.5.0_12-b04
OS: Windows XP, 5.1, x86
User Comments: doing nothing, just sitting idle and got this error. There's a mix of a dozen or so rhtml and rb files open.
Comment 14 mzslater 2007-08-17 18:53:25 UTC
Created attachment 46812 [details]
stacktrace
Comment 15 Narayana Pedapudi 2007-08-23 19:41:40 UTC
Build: NetBeans IDE Dev (Build 200708200000)
VM: Java HotSpot(TM) Client VM, 1.5.0_10-b03
OS: Windows XP, 5.1, x86
User Comments: 
Comment 16 Narayana Pedapudi 2007-08-23 19:42:00 UTC
Created attachment 47202 [details]
stacktrace
Comment 17 Milos Kleint 2007-08-28 06:23:13 UTC
possibly a duplicate of #90267
Comment 18 Milos Kleint 2007-08-28 12:51:11 UTC
duplicate of #90267

*** This issue has been marked as a duplicate of 90267 ***