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.
This bug was originally marked as duplicate of bug 239377, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.0 (Build 201403101706) VM: Java HotSpot(TM) Client VM, 24.55-b03, Java(TM) SE Runtime Environment, 1.7.0_55-b14 OS: Windows 8 User Comments: GUEST: carsh GUEST: Diff two 7,6MB files Irfan123: Hang the nebeans IDE automatically after using consistently, this may cause laoss of the data if not saved. GUEST: only started GUEST: ?? ???? GUEST: memmory? GUEST: Netbeans just stop responsing to any action and thus netbeans.exe process was killed GUEST: A big file has been opened. Stacktrace: java.lang.OutOfMemoryError: Java heap space at java.util.concurrent.locks.ReentrantLock$Sync.newCondition(ReentrantLock.java:0) at java.util.concurrent.locks.ReentrantLock.newCondition(ReentrantLock.java:0) at javax.swing.TimerQueue.run(TimerQueue.java:0) at java.lang.Thread.run(Thread.java:0)
Created attachment 147184 [details] stacktrace
There is only last heap dump left ... reassigning to diff
almost 2 million instances of org.netbeans.lib.lexer.token.DefaultToken related to an sql file of 7MB size. Possibly there is a memory leak in loading such a file.
I now looked through this multiple times. The sql lexer looks sane and does not keep excessive data around. The count of 2 million tokens for a 7MB file also looks reasonable. As users are clearly warned about opening files > 1MB I'll close this here.