Monday, April 12, 2010

The correct way to file a performance issue for NetBeans IDE

Sometimes you feel your favorite IDE is slower or the memory consumption is higher than you expect so you usually file a bug but just a description is not enough to solve it. For this kind of issue the developers need more information as steps to reproduce and of course the heap and/or thread dumps of your system. Based on these informations some bottleneck could be identified and a solution implemented.

But get these information is not trivial for many users and NetBeans IDE has since version 6.7 a feature named Profile Me! or even Fitness Via Partnership which helps to make this task easier.

In this page you can see step by step how to get the thread dump from your system in the section Profile Me! and just below you can see the section Snapshot me! with details about how to get and send the memory dump. Many people are not aware about it so I hope this post could help you to file better issues to NetBeans project helping to make this the only IDE you need.

Happy coding!

Tuesday, April 06, 2010

How to solve NetBeans and Java editors problem when scrolling down large files under Linux the text becomes garbled, distorted or scrambled

I am sure one image tell more than thousands of works, so here... we... go!

If you are experiencing this kind of behavior in your application, IDE or any kind of editor, don't worry so much, it is a misconfiguration of your video device and you can face it in several Java applications. Just to track the problem, some issues was filed against NetBeans Issuezilla and them was identified as a invalid issue, since it is a video card misconfiguration. After some searches and tests I realized how to solve the problem. I am current using a Ubuntu 8.10 with an Mobile Intel X3100 video card, which was automatically configured by Ubuntu in my xorg.conf file as below:

Section "Device"
Identifier "Configured Video Device"

The first step to solve the problem is to know which display controller you are exactly using. To got it, I used lspci command line tool, where Display controller property will say what you need. Now, you just need to edit your /etc/X11/xorg.conf file with the code that follow and don't forget to backup your current xorg.conf file:

Section "Device"
Identifier "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
Option "AccelMethod" "xaa"
Option "RenderAccel" "true"

where Identifier should be your display controller. Now you just need restart your X server and back to work. For details about this solution, see this discussion and comments are really appreciated.

Another alternative is add a new property for JDK:


This should fix it too.

Happy coding!