Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 5 down vote accepted

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

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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