java - Is my JAVA_OPTS setting is fine? -
java - Is my JAVA_OPTS setting is fine? -
i'm tuning jvm application. java_opts set following:
java_opts="$java_opts -dfile.encoding=utf-8" java_opts="$java_opts -server" java_opts="$java_opts -xms2048m" java_opts="$java_opts -xmx2048m" java_opts="$java_opts -xx:newsize=256m" java_opts="$java_opts -xx:maxnewsize=256m" java_opts="$java_opts -xx:permsize=256m" java_opts="$java_opts -xx:maxpermsize=256m"
i understood generations. i'm not sure setting appropriate. far understood, size of new generation 256 , remain(1792m) size of old generation(because perm generation not heap).
am right? , setting appropriate?
the optimal settings average java application are
java_opts=""
or why should java authors specify defaults change.
without knowing application , available memory, there's no point in changing defaults.
actually, -dfile.encoding=utf-8
might create sense if want utilize utf-8 on scheme using else default (but changing os better). forget others, unless know how much memory you'll need (and utilize -xmx
, still forget remaining ones).
java garbage-collection java-opts
Comments
Post a Comment