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 254040 - [newcodemodel] A java.lang.OutOfMemoryError exception has occurred.
Summary: [newcodemodel] A java.lang.OutOfMemoryError exception has occurred.
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 254146 257364 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-31 17:28 UTC by tbrunhoff
Modified: 2016-07-14 13:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 218970


Attachments
messages.log (801.46 KB, text/x-log)
2015-07-31 17:28 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2015-07-31 17:28:03 UTC
Created attachment 155099 [details]
messages.log

java.lang.OutOfMemoryError: unable to create new native thread
	at java.lang.Thread.start0(Native Method)
	at java.lang.Thread.start(Thread.java:714)
	at org.openide.util.RequestProcessor$Processor.get(RequestProcessor.java:1930)
	at org.openide.util.RequestProcessor.enqueue(RequestProcessor.java:611)
	at org.openide.util.RequestProcessor$TickTac.run(RequestProcessor.java:2260)


Product Version: NetBeans IDE Dev (Build 201507280002)
Updates: Updates available
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Linux version 3.14.27-100.fc19.x86_64 running on amd64; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 1 Alexander Simon 2015-09-03 09:32:32 UTC
*** Bug 254146 has been marked as a duplicate of this bug. ***
Comment 2 Vladimir Voskresensky 2015-09-29 11:56:23 UTC
It is difficult to fix without heap dump (which is missing). But there were quite a few changes to reduce memory consumption, so might be already fixed as part of https://netbeans.org/bugzilla/show_bug.cgi?id=255362
Comment 3 Martin Entlicher 2016-05-16 16:03:00 UTC
*** Bug 257364 has been marked as a duplicate of this bug. ***
Comment 4 Martin Entlicher 2016-05-16 16:03:31 UTC
See issue #257364 for the heap dump.
Comment 5 Vladimir Kvashin 2016-05-17 09:49:34 UTC
Just a thought (I'm not saying that we should not fix this bug):
I see -Xmx735m and -Xmx1024m in reports.
The former is obviously too small. The second is more or less ok.
Although I personally never give it less than 2g
This reminds me the idea to check it and warn user: if we are that greedy, we should at least be honest and say about that. Well, it's a matter of a separate discussion.
Comment 6 Alexander Simon 2016-05-17 10:23:27 UTC
(In reply to Vladimir Kvashin from comment #5)
> Just a thought (I'm not saying that we should not fix this bug):
> I see -Xmx735m and -Xmx1024m in reports.
> The former is obviously too small. The second is more or less ok.
> Although I personally never give it less than 2g
> This reminds me the idea to check it and warn user: if we are that greedy,
> we should at least be honest and say about that. Well, it's a matter of a
> separate discussion.

Vladimir,
did look at project size in the message log?
I think that several projects with about 70 source files should be parsed in -Xmx735m. Your suggestion 2g is for projects with 10k source files.
Comment 7 Vladimir Voskresensky 2016-07-14 13:17:09 UTC
(In reply to Alexander Simon from comment #6)
> (In reply to Vladimir Kvashin from comment #5)
> > Just a thought (I'm not saying that we should not fix this bug):
> > I see -Xmx735m and -Xmx1024m in reports.
> > The former is obviously too small. The second is more or less ok.
> > Although I personally never give it less than 2g
> > This reminds me the idea to check it and warn user: if we are that greedy,
> > we should at least be honest and say about that. Well, it's a matter of a
> > separate discussion.
> 
> Vladimir,
> did look at project size in the message log?
> I think that several projects with about 70 source files should be parsed in
> -Xmx735m. 
This projects uses whole Qt library according to names in parser threads...


Please, reopen with new snapshot if -Xmx2G doesn't help