Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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.

example:

alt text

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.