Causes of slow netbeans speed

Source: Internet
Author: User
Tags netbeans
I mentioned this issue in a previous article. A bug 5095398 in swing will seriously affect the speed of netbeans. Recently, I heard a netizen say that his netbeans speed is very slow. I wonder if it is caused by this bug.

This bug occurs when the swing program is run in the notebook and the power is unplugged, it will find that the swing program is almost slow to use. The swing bug is probably: graphics performance degrades unacceptably when XPS laptop unplugged (Win XP ). You can see the details here.

After research, the bug maintainer found that this swing bug was caused by a bug in the ATI graphics card driver. Therefore, the modification of this bug depends on ATI's modifications to the driver. It seems that a bug report has been submitted to Ati.

How can this problem be solved before the graphic card driver is changed? Workaround provided by the maintainer of this bug is to use the VM parameter-dsun. java2d. ddoffscreen = false when the power is unplugged. Or set the powerplay attribute in the control panel. You can access this setting through screen Properties> advanced. Disabling the powerplay attribute is equivalent to power-on performance (which may cause high power consumption ). If you use a version earlier than Java 5.0u8, you can also use the virtual machine parameter-dsun. java2d. d3d = false or set the environment variable j2d_d3d = false to disable the direct3d attribute.

Netbeans is a swing program, so when running in a notebook and power is unplugged, or powerplay is started, no matter how much memory you have, or even more than 1 GB, the response speed of netbeans is also very slow. If you find that netbeans is very slow, but your memory is not small, there is no impact on anti-virus software, and when you are using a notebook, It is likely caused by the above reasons.

This problem is very common. On the Internet, many people complain that 1 GB of memory netbeans is slow and intolerable. In fact, it is very likely that this problem occurs. Theoretically, the memory of netbeans in MB should run very fast. There are not many people who know the solution, which is the main reason why many people cannot solve this problem.
Solution:

1. Disable powerplay. In the control panel, choose Display Properties> advanced settings.
Or
2. Use the VM parameter-dsun. java2d. ddoffscreen = false, that is, the startup command parameter of netbeans/etc/netbeans. conf:
Netbeans_default_options = "-J-Xms64m-J-Xmx256m-J-XX: permsize = 32 m-J-XX: maxpermsize = 160 m-J-xverify: None-J-Dapple.laf.useScreenMenuBar = true-J-XX: + useconcmarksweepgc-J-XX: + cmsclassunloadingenabled-J-XX: + cmspermgensweepingenabled-J-Dswing.usingSystemFontSettings = false-J-Dsun.java2d.ddoffscreen = false"

Or

3. Use the VM parameter-dsun. java2d. d3d = false, that is, the startup command parameter of netbeans/etc/netbeans. conf:

Netbeans_default_options = "-J-Xms64m-J-Xmx256m-J-XX: permsize = 32 m-J-XX: maxpermsize = 160 m-J-xverify: None-J-Dapple.laf.useScreenMenuBar = true-J-XX: + useconcmarksweepgc-J-XX: + cmsclassunloadingenabled-J-XX: + cmspermgensweepingenabled-J-Dswing.usingSystemFontSettings = false-J-Dsun.java2d.d3d = false"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.