项目的后台扫描使Netbeans 7.2变慢 [英] Background scanning of projects slows down Netbeans 7.2

查看:88
本文介绍了项目的后台扫描使Netbeans 7.2变慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有最新的Java和JDK. 我有一个PHP项目(CodeIgniter). 在NetBeans 7.2中打开它时,我无法摆脱项目的背景扫描". 这是什么?我该如何加速?如何禁用它?

I have the latest Java and JDK. I have a PHP project (CodeIgniter). When I open it in NetBeans 7.2 I can't get rid of "Background scanning of projects". What is this? How can I accelerate it? How can I disable it?

[当前解决方案] ,只有在NetBeans中打开一个新项目时才会发生一次.稍后,"projet的背景扫描"将在10到15秒钟内完成.

[current solution] This happens only once when you open a new project in NetBeans. Later "Background scanning of projets" works 10-15 seconds.

推荐答案

我找到了一个解决方案,但是它有一些缺点.使用 按需扫描插件.重新启动Netbeans之后,默认情况下应禁用后台扫描.使用更新中心安装方法,并在安装后禁用存储库(否则,您可能最终会错误地安装不稳定的更新).

I found a solution, however it has slight drawbacks. Use the Scan on Demand plugin. After restarting Netbeans, background scanning should be disabled by default. Use the Update Center installation method, and disable the repository after installation (otherwise you might end up installing unstable updates by mistake).

缺点:很有可能索引已过时,这使得使用Netbeans的操作不太舒服(如插件页面上所述).

Drawback: Chances are that indexes are out of date which makes working with Netbeans a little bit less comfortable (as stated on the plugin page).

按需扫描-下载和安装说明

编辑:该错误仍然存​​在,但是使用以下命令会使性能下降的问题较小.将此字符串添加到 netbeans.conf 中的netbeans_default_options:

The bug persists, however using the following makes the perfomance dip a lesser problem. Add this string to netbeans_default_options in your netbeans.conf:

-J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled

在Win7、64b计算机,NB 7.2,JDK 1.703上为我工作

Works for me on a Win7, 64b machine, NB 7.2, JDK 1.703

这篇关于项目的后台扫描使Netbeans 7.2变慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆