Slow Netbeans

Kelly O'Hair kelly.ohair at oracle.com
Mon Dec 27 14:48:59 PST 2010


e.g.

My file ~/.netbeans/6.9/etc/netbeans.conf on my Mac laptop contains:

# options used by netbeans launcher by default, can be overridden by  
explicit
# command line switches
#
netbeans_default_options="-J-Xms256m -J-Xmx768m -J-XX:PermSize=32m -J- 
XX:MaxPermSize=160m -J-Xverify:none -J- 
Dapple.laf.useScreenMenuBar=true -J-XX:+UseConcMarkSweepGC -J-XX: 
+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J- 
Dorg.netbeans.modules.mercurial.level=100"


But sometimes the reason NetBeans is slow is because by default it is  
scanning every source file, but
usually that only happens when the project is opened, once.
I'd need more information as to what part of NetBeans you think is slow.

-kto


On Dec 27, 2010, at 2:10 PM, John Pampuch wrote:

> Also, in many ways, Netbeans behaves a bit like a server application  
> (namely, it is long running, and uses quite a bit of memory).  Using  
> the server compiler (add -server to the launch parameters) will  
> help, though startup, and 'warmup' time will be a quite a bit longer.
>
> But start with heap space first!
>
> Note that Netbeans has its own configuration file where the Java  
> parameters are set.
>
> -John
>
> On 12/27/10 1:08 PM, Jon Masamitsu wrote:
>>
>> One possibility is that you have too small a heap to run well.
>> If you have not tuned your heap, try doubling its size and
>> see if there is any improvement.
>>
>> On 12/27/2010 9:33 AM, Kanik Chakravarty wrote:
>>> Hello
>>> Does anybody use Netbeans for HotSpot development? Can anyone  
>>> please suggest some tips to make Netbeans fast. Currently its  
>>> painfully slow in my machine when using OpenJDK built from the  
>>> sources. Thanks in advance.
>>>
>>> -- 
>>> Thanks and Regards,
>>> Kanik Chakravarty

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20101227/a6f56e02/attachment.html 


More information about the hotspot-dev mailing list