To start WebLogic server, we are using the following:
$JAVA -server -ms128m -mx128m -noclassgc
where $JAVA is /webapps/j2sdk1_3_1_07/bin/java. So we are setting the initial and max heap size to 128m.
Question 1:
===========
Now, what is the difference bewteen using
-ms and -mx to set initial and max heap
versus
-Xms and -Xmx to set initial and max heap
java -help says:
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
The -X options are non-standard and subject to change without notice.
On this note, we are trying to tune another server's "young generation" with the following options:
either
-Xms256m -Xms256m -XX:NewSize=80m -XX:MaxNewSize=80m
or
-Xms256m -Xms256m -XX:NewRatio=2
Question 2:
===========
If we don't use -Xms -Xmx to set the initial/max heap size, can we still use the -XX options to set the young generation heap size? In other words, MUST we use -Xms -Xmx if we want to use
-XXNewSize -XXMaxNewSize
or
Can we simply use -ms -mx AND still use -XXNewSize -XXMaxNewSize?
$JAVA -server -ms128m -mx128m -noclassgc
where $JAVA is /webapps/j2sdk1_3_1_07/bin/java. So we are setting the initial and max heap size to 128m.
Question 1:
===========
Now, what is the difference bewteen using
-ms and -mx to set initial and max heap
versus
-Xms and -Xmx to set initial and max heap
java -help says:
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
The -X options are non-standard and subject to change without notice.
On this note, we are trying to tune another server's "young generation" with the following options:
either
-Xms256m -Xms256m -XX:NewSize=80m -XX:MaxNewSize=80m
or
-Xms256m -Xms256m -XX:NewRatio=2
Question 2:
===========
If we don't use -Xms -Xmx to set the initial/max heap size, can we still use the -XX options to set the young generation heap size? In other words, MUST we use -Xms -Xmx if we want to use
-XXNewSize -XXMaxNewSize
or
Can we simply use -ms -mx AND still use -XXNewSize -XXMaxNewSize?