title: Lots of threads and memory usage for processes 'java' on Mac OSX 10.6.7
body: <p>I'm developing a web application using java + gwt and NetBeans 6.9.1 + Glassfish 3.0.1. After some hours of development my system performances degrade, so I always check on Activity Monitor if some process is getting all memory or cpu. I always notice a couple of process named 'java' which spawns about 50-60 threads. My system is really slow until I kill them, then I can work again normally.</p>
  
  <p>I use NetBeans debug mode during development, but even when I stop the debug mode, the java process keeps degrading system performances until I kill it. I also experience sometimes the "java.lang.OutOfMemoryError: Java heap space" error, it happens after several hours (let's say 12-16) my NetBeans istance is opened (this happens to me with the same NetBenas version also in a Linux environment). In this case, I need to close and reopen it to make it compile/work again.</p>
  
  <p>Anyone experienced the same issues and/or knows how to avoid them?
  Do you think this problem could be caused by some sort of problem in the app I'm developing or could it be a Netbeans memory leak or bug?</p>