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 243305 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED DUPLICATE of bug 253306
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-26 22:49 UTC by CougarB
Modified: 2015-09-09 11:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 207326


Attachments
stacktrace (1.18 KB, text/plain)
2014-03-26 22:49 UTC, CougarB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CougarB 2014-03-26 22:49:03 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 8

User Comments:
GUEST: a

CougarB: I was just writing and working, and suddenly, NetBeans froze. I took a screenshot of the screen in front of me to preserve my work in a static location. I don't know yet how much I lost. I wasn't doing anything unusual.

GUEST: Inicia bien, luego se esta lenteando porque consume muchos recursos de la computadora. Eso seria




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:0)
   at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:0)
   at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:0)
   at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:0)
   at java.lang.StringBuilder.append(StringBuilder.java:0)
   at java.lang.StringBuilder.append(StringBuilder.java:0)
Comment 1 CougarB 2014-03-26 22:49:05 UTC
Created attachment 146340 [details]
stacktrace
Comment 2 CougarB 2014-03-27 18:16:04 UTC
I have a Windows 8.1 machine. hp pavilion g7. I find that the CPU usages of Netbeans climbs regularly to 600+ MB, at which point, I have to save everything and kill it with the task manager and restart it.

In the incident that was auto-reported, I did end up having to recreate a great deal of work. Fortunately, most of this was content, rather than code, so I didn't lose as much time as I would have if it had been code. If there was any autosave going on, it didn't help me at all. I didn't see any evidence of autosave.

I'm not a professional programmer, but in the last 30 years, I have programmed at a hobby level in Basic, Visual Basic, Cold Fusion, Java, JavaScript, jQuery, PHP, and C++. In addition, I was a senior technical writer in a Java house at Fujitsu Software.

So I'm not a rank amateur, although my skills do not equal someone with training and experience as a professional developer.

As a result, my use of NetBeans is less proficient than many people's. I've used it off and on, but prior to my most recent complex project, I was using ShiftEdit and working directly on my production site. For this project, which is far more complicated with more things to break, I downloaded NetBeans again, because I recognize it's value for complex projects. I'm just not so proficient in using it, and I may not have done everything as I should.

Sorry I can't offer more help.
Comment 3 Tomas Zezula 2014-04-04 12:48:39 UTC
javascript & co.
Comment 4 Tomas Zezula 2014-04-04 13:26:03 UTC
Lots of strings related to navigator.
Lots of strings related to js parser.
Comment 5 CougarB 2014-04-04 17:00:24 UTC
(In reply to Tomas Zezula from comment #4)
> Lots of strings related to navigator.
> Lots of strings related to js parser.

I don't know what this means in terms of my work. I use NetBeans for a complex JS/jQuery project with many lines and content with lots of html strings. That's the nature of my project. There are seven user routes through the project, each of which involves hiding everything else, as well as hiding every step except the current one, and keeping example text hidden unless requested by the user.

Lots of code and lots of strings is accurate.

I'm a hobby programmer, not a professional, which means I don't have all the knowledge that you might have. But my programming is very complex with lots of variables. I've recently shortened the html file, since the template was overly long, to improve performance. I appear to have a memory leak related to closure problems in RequireJS.
Comment 6 Petr Pisl 2015-09-09 11:06:21 UTC
Only heapdump #776579 is relevant. There are almos 2 milions of CssNodeElements and also there are 930 000 css structure items. 

The rest are already solved.
Comment 7 Milutin Kristofic 2015-09-09 11:48:48 UTC
Issues from 8.0.2 with many CssNodeElements are fixed in Bug #253306

*** This bug has been marked as a duplicate of bug 253306 ***