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.
CentOS 4.4 (eqv. Redhat Linux ES 4 Update 4) Sun JDK 1.6.0_07 Netbeans 6.5rc2 Executing "netbeans" from bash command line Developing C application, pre-existing Makefile. When crash occurs, stdout/stderr reports (partial): /opt/netbeans-6.5rc2/bin/../platform9/lib/nbexec: line 493: 16933 Killed "/opt/jdk1.6.0_07/bin/java" -Djdk.home="/opt/jdk1.6.0_07" -classpath ... Crash seems to be associated with running application rather than editing source code. However, IDE crashes whether application is run under IDE, or run under another shell outside of IDE. When IDE crashes, application continues to run and produces correct results. When IDE crashes, there is a very long pause during which entire system appears to "lock up". After IDE window disappears, system responds normally. Unfortunately, the system I'm developing on is not connected to Internet and I will not be able to transfer any data (by any means) from the development system.
*** Issue 153144 has been marked as a duplicate of this issue. ***
Subsequent testing under Linux revealed that this crash is associated with running out of memory. During a period when this crash seemed highly repeatable, I noticed that the Gnome memory monitor showed very high levels of memory usage. Re-booting the system and re-running Netbeans yielded normal operation of the IDE and the application. The application in question is multi-threaded and dynamically allocates about 40 Mb of RAM, which it is very careful to release. Running my application under valgrind and purify (outside the IDE) showed no evidence of memory leaks in the application. I can't be sure what on my system consumed and leaked >2 Gb of RAM, but I now know that the 6.5rc2 IDE doesn't like to run out of memory while it's running an application. Prior to uncovering this issue, I had been actively doing C development using 6.5rc2 for about 2 days without incident. I do normally logoff at the end of the day, but I don't normally re-boot my system. I will continue to monitor memory usage to see if I can glean any more information about this problem. The workaround, re-booting whenever the memory usage gets too high, seems pretty unsatisfactory. Nevertheless, the Netbeans IDE might not be responsible for the memory leak.
Please attach messages.log. Reassigning to cnd for further evaluation.
What is the size of developed C application? What are the numbers of memory usage on NB toolbar? You can increase amount of memory given for NB in ${nb_dist}/etc/netbeans.conf file "-J-Xmx1G" You can help us if provide memory dump (specify -J-XX:+HeapDumpOnOutOfMemoryError to generate dump as described at http://wiki.netbeans.org/DevFaqMemoryLeaks) and attach to IZ
no user response Reopen bug if bug is still repeatable and - use released NB 6.5 - do not use not final jdk - provide message log.