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 243188 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-23 11:03 UTC by s_fuhrm
Modified: 2015-03-10 16:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208621


Attachments
stacktrace (916 bytes, text/plain)
2014-03-23 11:03 UTC, s_fuhrm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description s_fuhrm 2014-03-23 11:03:52 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Linux

User Comments:
s_fuhrm: Exception came when starting with Java8




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOfRange(Arrays.java:3658)
   at java.lang.String.<init>(String.java:201)
   at java.lang.String.substring(String.java:1956)
   at java.lang.String.trim(String.java:2863)
   at org.netbeans.modules.glassfish.eecommon.api.LogHyperLinkSupport$AppServerLogSupport.analyzeLine(LogHyperLinkSupport.java:475)
   at org.netbeans.modules.glassfish.javaee.JavaEEServerModule$1.processLine(JavaEEServerModule.java:115)
Comment 1 s_fuhrm 2014-03-23 11:03:54 UTC
Created attachment 146252 [details]
stacktrace
Comment 2 Petr Hejl 2015-03-10 16:05:24 UTC
Looks like this could be caused by selectIO in LogViewMgr. There is about 1M instances of the inner class.

org.netbeans.modules.glassfish.common.LogViewMgr$1	7.114420229441977	1,253,236 (7.1%)	30,077,664 (2.7%)

It looks like the method schedule AWT task for every line processed. Not sure about the solution.