Conversation
Notices
-
I have found out #why #NetBeans suddenly slows down, a "massive" jump in memory usage. I had then to alter /usr/local/netbeans/etc/netbeans.conf and have set now double amount for -Xmx. The reason for this sudden jump is still unknown to me. cc !java
-
@roland I too had to increase -Xmx in netbeans.conf but that was because in #QubesOS my dev VM has less mem initially
-
@roland I also increse the initial heap space -Xms so it gets allocated directly
-
@roland you can enable the memory toolbar in #NetBeans IDE to see a graph of the current memory usage. !java
-
@netmackan I have it now enabled. Maybe I increase my initial heap size a bit more, too.
-
@netmackan Initial heap size is now 512 MB, maximum 2048 MB. I think, this should be fine for a longer while.
-
@roland the slow down is likely the garbage collector working like mad and that setting gives the JVM more memory to play with from launch. But that doesn't explain unexpected memory usage in the first place.
-
@mcnalu The more the garbage collectors runs, the lesser other threads can get enough cycles to run. So a thumb of rule is to try to avoid that the GC has to run to much to have better performance. This basically means that not tons of data is loaded into memory and getting immediately garbage-collected because it is no longer used/referenced.
-
@roland yup, exactly.
-
@roland I used to make jokes of the bloatness of Java. :-D
But now I think it is actually not too bad since there are nice Android apps (the Free ones which also are available on F-Droid of course) or JOSM which does not look that good (optically in regards to the design) but it does the job.