[nbusers] Re: RAM

  • From: Edson Richter < >
  • To:
  • 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">
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)






How did you measure your RAM consumption?
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.

Regards,

Edson



[nbusers] RAM

nenadalm 11/01/2012

[nbusers] Re: RAM

Edson Richter 11/02/2012

<Possible follow-up(s)>

[nbusers] RAM

nenadalm 11/02/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close