[nbusers] Re: RAM
- From: Edson Richter < >
- Subject: [nbusers] Re: RAM
- Date: Fri, 2 Nov 2012 10:16:18 -0200
- Organization: Simkorp Informática Ltda
Em 01/11/2012 21:19, nenadalm escreveu:
" type="cite">How did you measure your RAM consumption?oracle java didn't help: $ java -version java version "1.7.0_07" Java(TM) SE Runtime Environment (build 1.7.0_07-b10) Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
In linux, it's a mistaken to consider Virtual Memory as consumed memory.
See, I've this Tomcat server running in a Linux x64 machine:
As you can see, Tomcat is taking 948MB (virtual). How would this be possible if total memory consumption is as low as 626MB?
The fact is that total memory consumption is only 343MB.
Same happens when running Tomcat. Java preallocates virtual memory, and then it would use it or not.
Now, look the Windows platform:
As you can see, NetBeans with three projects open is pre-allocating 538MB of memory, but there is only 359MB in use (+shared areas = 377MB).
Everything depends on:
a) The Virtual Machine you are using
b) VM Parameters related to memory
c) Garbage collector optimizations
In my NetBeans.conf, I do use the following customization that fit my personal needs:
netbeans_default_options="--locale en:US -J-client -J-XX:+UseParNewGC -J-XX:+UseConcMarkSweepGC -J-Xss2m -J-Xms32m -J-XX:PermSize=96m -J-XX:MaxPermSize=600m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true -J-Dsun.awt.disableMixing=true -J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes"
There is no "instantaneous cake formula" - you will have to experiment a bit and see what fit your O.S., V.M. and your needs.
[nbusers] Re: RAM