Title: Expertise of -Xms128m -Xmx256m

Addition to previos message "About -Xincgc":

I use IntelliJ with -Xms128m -Xmx256m
By real life IntelliJ eat for me about 58~59 megs in intelliJ window (real system memmory - 80-90 megs)

0 < 128m < 256 m

1. JVM from 0 < 128m (garbage collection disabled)
2. JVM equals 128m or more, (gc in run, defragment addresses, and JVM come to area 0 < 128m)


But, some good words to -Xincgc - "if gc run not freaquency, you may define incremental gc option, becose incremental gc collect all garbase and defragment all references - JVM memory size come to start state. But is this option not used after first gc runing memory not restored to start state, after second memory not restorent to second state e.t.c., memory is grown up".

Tune up your IntelliJ:
Make run first -Xms<maximum memory / 2> -Xms<maximum memory>
Look on Memmory Bar in IntelliJ, do some usual actions. Define your default memmory value. Then, set -Xms to bigger that your 'usual memory size', and -Xmx with doubled value. For example:

My usual memory is 59 megs. Peak - is 84 megs. So if I want to disable run gc. I wil use:
-Xms128m -Xmx256m -Xincgc

Good luck,

Alexey Efimov - Software Engineer
Sputnik Labs
1st Kolobovsky per., 6/3
Moscow, 103051, Russia
Phone: +7 (095) 7558406
Fax: +7 (095) 7558407
E-Mail: mailto:[EMAIL PROTECTED]
http://www.spklabs.com

Reply via email to