I'm running Netbeans on Windows Vista and I have to restart the computer every 6 hours because while Netbeans is running I seem to be constantly leaking memory. This doesn't happen while I'm running any other program.

Would it possible to run Netbeans inside some kind of sandbox to limit how much it can leak memory?


Netbeans is a Java application, you can limit how much the JRE uses in Control Panel -> Java.

Under the Java tab, enter -XmxNM as your runtime settings for your current JRE, where N is the amount of memory in MB you want available to the JVM.


alt text

  • How to access the control panel under linux? – Ferrybig Dec 13 '18 at 14:13

If you wish to explore the memory leak problem, see DevFaqMemoryLeaks.

If this is a bug in Netbeans (I assume you're using the its latest version and the same for Java), you might present this info on the Netbeans forums.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.