Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

we want to use -XXNewSize -XXMaxNewSize

Status
Not open for further replies.

sirji

Technical User
Apr 22, 2003
12
US
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 &quot;young generation&quot; 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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top