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 240227 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Hurka
: 233781 (view as bug list)
Depends on:
Reported: 2014-01-10 15:46 UTC by Jiri Skrivanek
Modified: 2014-06-23 12:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206454

stacktrace (2.34 KB, text/plain)
2014-01-10 15:46 UTC, Jiri Skrivanek

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2014-01-10 15:46:01 UTC
This issue was reported manually by jskrivanek.
It already has 1 duplicates 

Build: NetBeans IDE 8.0 Beta (Build 201401091443)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b65, Java(TM) SE Runtime Environment, 1.8.0-ea-b122
OS: Windows 7

User Comments:
jskrivanek: My steps were:

- create Anagram game sample
- start profiling (CPU, Advanced)
- open Live Results
- when profiling is in progress click Configure in Profiler view
- select Memory, Advanced, tick all check boxes
- while instrumenting it throws OOME

java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(
   at java.lang.AbstractStringBuilder.expandCapacity(
   at java.lang.AbstractStringBuilder.ensureCapacityInternal(
   at java.lang.AbstractStringBuilder.append(
   at java.lang.StringBuilder.append(
   at org.netbeans.core.startup.logging.PrintStreamLogger.print(
Comment 1 Jiri Skrivanek 2014-01-10 15:46:03 UTC
Created attachment 143801 [details]
Comment 2 Jiri Skrivanek 2014-01-10 15:54:42 UTC
Reproducible always with steps:

- create Anagram game sample
- start profiling (Memory, Advanced, tick all check boxes)
- while instrumenting it throws OOME
Comment 3 Tomas Hurka 2014-01-10 16:35:13 UTC
I am not able to reproduce it on Mac OS X with JDK 7.
Comment 4 Jiri Skrivanek 2014-01-10 19:03:32 UTC
Yes, with JDK7 it works. You have to try Windows 7 and JDK 1.8.0-ea-b122.
Comment 5 Tomas Hurka 2014-01-10 19:34:26 UTC
Ok, to reproduce it, _profiled_ application must run JDK 8 b122. It is irrelevant what JDK is used for NetBeans.
Comment 6 Tomas Hurka 2014-01-11 10:46:37 UTC
Fixed in profiler-main

changeset:   269742:88f6120c04f4
user:        Tomas Hurka <>
date:        Sat Jan 11 11:43:43 2014 +0100
summary:     bugfix #240227, size of invokedynamic instruction added
Comment 7 Jiri Skrivanek 2014-01-13 08:30:54 UTC
Verified in NetBeans IDE Dev (Build 201401130002).
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b122
Comment 8 Tomas Hurka 2014-01-13 08:33:28 UTC
Fixed in release80_beta branch:

changeset:   279118:7a9ebd1cfcd4
branch:      release80_beta
parent:      278980:4e5a48c82721
user:        Tomas Hurka <>
date:        Sat Jan 11 11:43:43 2014 +0100
summary:     bugfix #240227, size of invokedynamic instruction added
Comment 9 Jiri Skrivanek 2014-01-15 11:51:25 UTC
Verified in NetBeans IDE 8.0 Beta (Build 201401141042).
Comment 10 Petr Cyhelsky 2014-03-05 16:12:30 UTC
*** Bug 233781 has been marked as a duplicate of this bug. ***