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.
Build: NetBeans IDE 6.0 Beta 1 (Build 200709141330) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06 OS: Windows 2000, 5.0, x86 User Comments: Standard installation on a 1 GB memory W2K Workstation; the VisualWeb project contains a _single_ JSP page!
Created attachment 49796 [details] stacktrace
Build: NetBeans IDE 6.0 Beta 1 (Build 200709141330) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05 OS: Windows XP, 5.1, x86 User Comments:
Created attachment 50002 [details] stacktrace
Build: NetBeans IDE Dev (Build 200710030000) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06 OS: Windows 2000, 5.0, x86 User Comments: Trying to open the plugins window. 512 MB heap space should be enough for 4 projects with round about 100 files total and _no_ file is opened in the editor!
Created attachment 50119 [details] stacktrace
Build: NetBeans IDE 6.0 Beta 1 (Build 200709141330) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06 OS: Windows XP, 5.1, x86 User Comments:
Created attachment 50263 [details] stacktrace
Please, can you capture thread dump just before the exceptions occur? Thanks
THIS ISSUE HAS 5 MORE DUPLICATES
To reporter: Please attach thread dump.
To reporter: Could you please attach the thread dump? Thanks http://wiki.netbeans.org/wiki/view/GenerateThreadDump
Please give us more information. - How much memory available in the machine - Is Appserver running How many web apps are already running. Look at the Server -> Appserver -> glassfish -> web apps - What is the memory meter reading Show memory meter in the toolbar (right click and enable memory meter) Finally, as petr showed, attach the thread dump
wjprakash: How much memory available in the machine 3 GB installed, ~1,7 GB physical memory available wjprakash: Is Appserver running No Appserver is running at the moment wjprakash: How many web apps are already running. No WebApp running wjprakash: What is the memory meter reading 248,5/367,2 MB (German locale with decimal comma) Finally, as petr showed, attach the thread dump I'll follow the instructions next time - I believe it would not last long! :-( The stacktrace is in exception report 20842 Product Version: NetBeans IDE 6.0 (Build 200711261600) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Windows XP version 5.1 running on x86; Cp1252; de_DE (nb)
Created attachment 55321 [details] Threaddump with jstack; Exception 21220
wjprakash: How much memory available in the machine 3 GB installed, ~1,9 GB physical memory available; the VM consumes ~786 MB virtual memory wjprakash: Is Appserver running No Appserver is running at the moment wjprakash: How many web apps are already running. No WebApp running wjprakash: What is the memory meter reading 277/367 MB wjprakash: Finally, as petr showed, attach the thread dump Thread dump is attached
Created attachment 55619 [details] Threaddump
Created attachment 55851 [details] Threaddump
Unfortunately, I could not nail any problem from the Thread Dump. Could you please give more info about your application. No of pages in the web app? How many pages are open at the time problem occurs? What are the actions you were doing when OME occurs? Did you try increasing the memory (-J-Xmx512m) in the <install-dir>/etc/netbeans.conf dir Thanks.
Yes, definetly this was the point! I've tested it for more than one week now with a setting of -Xmx900m and "-J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled". The Java heap space error never appeared again (at least not in NB 6.01). The problem is the misleading comment in netbeans.conf - for me it implies that Netbeans will acquire a sufficient amount of heap space for your project automatically: "Note that a default -Xmx is selected for you automatically." My proposal for a bugfix is to replace this comment by: "Note that for some projects (e.g. VisualWeb projects) the default -Xmx, which is selected automatically, is often _not_ sufficient! Try to increase heap space as much as you can. The value is dependend on your operating system and your physical memory. As a more elaborated bugfix, the functionality of Netbeans shouldn't depend on archaic editing of a config file with an editor. Why isn't there a configuration tool for this? A restart after changed settings is acceptable.
The default -Xmx is set during IDE start by the launch program. It believe it sets it at 33% (396M max) of available memory. Need to have as much as 512M for VisualWeb is not an acceptable solution. We have improved memory consumption in NB 6.1. Hope need for more memory than what is set by NB as default may not be required for NB 6.1
increasing priority. This issue has 268 duplicates - http://statistics.netbeans.org/exceptions/detail.do?id=380
Lots of performance fix and memory foot print fixes have gone in to NB 6.1. Please test against NB 6.1 beta (to be released soon( and let us know how if OME occurs again.
Closing this as fixed. Please try NB 6.1
Reopening - reproduced in NetBeans IDE 6.1 (Build 200805300101)
844 duplicates and still coming !
It looks like an issue with report handling, latest reports have nothing with visual web and in real related with java/editor functionality - scanning or document handling (editor in stack trace).
mmirilovic latest stacktraces have nothing with visualweb, either is are one line "OutOfMemory" or issues are from others areas, plase reevaluate if necessary. It also may be not P1 ad 870 duplicates may be from different areas.