开发者

Why does netbeans freeze when I'm trying to type?

I'm using NetBeans 6.7 on win xp*. I'm not really sure what the pattern is, but lately performance has gotten really bad to the point where it's almost unusable. Any ideas for where to look for slowdowns?

Intel Core Duo 2.2 GHz, 3.5 G开发者_如何学运维B or ram, accoring to the system properties panel. 90 GB of free hard disk space.


NetBeans 6.5 "leaks" temporary files. It creates temporary files in %TEMP% (typically c:\\Documents and Settings\\*username*\\Local Settings\\Temp) and does not delete them. When enough files accumulate, access to the temporary directory slows to a crawl. That in turn drags NB down to a crawl.

To clean it up:

  • Shut down NetBeans
  • Open a command prompt and type:

    cd %TEMP%  
    del *.java  
    del *.form  
    del output*  
    del *vcs*  
    

Important:

  • Do not try to do this with windows explorer. It won't work.
  • The deletes can take several minutes each. Be patient.

This is much better in 6.7 and I have not seen it at all in 6.8.


If you're running on java6 you can use the jconsole app to connect to your running netbeans instance and see among other things, what the threads are doing, memory usage and whether you're in a race condition.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜