You can use the Task Manager to see how much memory the various components use and then adjust your MaxPermSize accordingly. The only time I noticed that it was using large amounts of memory was loading and installing plugins. I had to increase my memory for that. I noticed also that noone has said what the preferred method for this is but I found a reference when I updated mine. Check to see if you have the netbeans.conf file, I loaded mine in the .netbeans\6.1\etc directory under my windows folder like so: <drive_letter>:\Documents and Settings\<your user id>\.netbeans \6.1\etc
Here is the contents # ${HOME} will be replaced by JVM user.home system property netbeans_default_userdir="${HOME}/.netbeans/6.1" # Options used by NetBeans launcher by default, can be overridden by explicit # command line switches: netbeans_default_options="-J-client -J-Xms32m -Xmx400m -J- XX:PermSize=32m -J-XX:MaxPermSize=400m -J- Dnetbeans.logger.console=true -J-ea -J- Dapple.laf.useScreenMenuBar=true -J-XX:+UseConcMarkSweepGC -J-XX: +CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled" # (Note that a default -Xmx is selected for you automatically.) # For JVMs which does not support Concurrent Mark & Sweep garbage collection # algorithm remove "-J-XX:+UseConcMarkSweepGC -J-XX: +CMSClassUnloadingEnabled # -J-XX:+CMSPermGenSweepingEnabled" part of options # (see http://wiki.netbeans.org/wiki/view/FaqGCPauses) # Default location of JDK, can be overridden by using --jdkhome <dir>: #netbeans_jdkhome="/path/to/jdk" # Additional module clusters, using ${path.separator} (';' on Windows or ':' on Unix): #netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/ cluster2" On Dec 16, 3:45 pm, Sang Shin <sang.s...@sun.com> wrote: > Sang Shin wrote: > > > By the way, please take a look at the FAQ on this and see if it helps. > > >http://wiki.netbeans.org/FaqSlowNetBeans > > > -Sang > > Another suggestion. > > Hello, > > when you do not have plenty of RAM, the most important parameter is (in my > opinion) the maximum heap size allowed for NetBeans. If you set it too low, > NetBeans have to garbage-collect frequently, which slows the IDE. If you set > it > too high compared to the total amount of RAM available in your system, you > leave > too small amount of memory for other applications (such that the system starts > to swap) and for the disk cache (which makes all disk I/O operations much > slower). > > You have 1 GB of RAM - that is not much for running Tomcat and NetBeans and > developing J2EE applications. The easiest and the most reliable answer is: Buy > more RAM. Otherwise, you should carefully tune your JVM settings and save > every > piece of RAM. I think that 600 MB limit is too high - try to make it lower, > e.g. > 400 MB, by running NetBeans with switch -J-Xmx400M. > > Reference:http://performance.netbeans.org/howto/jvmswitches/index.html > > Similarly, you could tweak also Tomcat's settings such that it consumes less > memory. > > I guess you use Linux (I deduce that from your e-mail footer). You can save a > lot of memory if you use some lightweight desktop environment, e.g. Xfce > instead > of Gnome/KDE. You can save even more memory with some tiny Linux distribution > targeted on older computers, such as Knoppix or DamnSmallLinux (DSL). > > > > > > > > > Sang Shin wrote: > >> I will ask NetBeans engineers on this. > > >> -Sang Shin > > >> kamruddin.nur wrote: > >>> Hi, > >>> I'm running Netbeans 6.1 with jdk1.6, J2EE5, tomcat 6 on my 2GHz > >>> celeron processor with 1GB RAM. > > >>> My problem: > >>> Netbeans start up way too slow, > >>> once started works stable but sometimes new window freezez for a while > >>> and runs again. It doesn't crush but stays unresponsive for a while. > > >>> My netbeans heap size is 85MB but it sucks up around 600MB of my OS > >>> RAM, leaving around 100 MB RAM for other applications. > > >>> What can I do to make it start, run faster and responsive like > >>> eclipse. > > >>> Your help is much appreciated. > > >>> Regards, > >>> K M Nur > >>>http://k-linuxtechs.blogspot.com > > -- > --------------------------------------------------------------- > **** JavaFX course starts from Jan. 10th, 2008 *** > http://www.javapassion.com/javafx > > Sang Shin, sang.s...@sun.com > http://www.javapassion.com/SangShinSchedule.html > (Life is worth living... with Passion!) > ---------------------------------------------------------------- Hide quoted > text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---