tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip Morelock <>
Subject careful with -Xms etc.?
Date Tue, 30 Apr 2002 00:36:44 GMT
I just noticed something quite by accident because I accidentally mistyped
my TOMCAT_OPTS inside of the file.  (3.2.4, standalone, linux, jdk

I don't know if this is "common knowledge" or not, but I thought I would
share with the group: the TOMCAT_OPTS affects not only the VM that runs
tomcat (i.e., "./ start") but also appears to be read in order to
start up the VM that stops tomcat (i.e., "./ stop").

Does this mean we need to be careful as far as allocating memory with -Xms
params?  I mean, let's say you run a large application and your TOMCAT_OPTS
-Xms256m -Xmx768m

Because I made a typo editing TOMCAT_OPTS, when i went to run "./
stop" it said there was an error in the initialization of the VM because of
incompatible heap sizes yadda yadda yadda, and it made me stop and think for
a second!

I guess this prompts a few questions:
1.  Is this effect real?  or is it just coincidence?
2. if so, is it intentional?  I don't want my "stopper" VM to start at 256m
on a machine with 512mb when my running tomcat is taking 384mb as is.  Would
that cause a bunch of paging, etc. (linux/nt/etc.)?

I'm going to probably hack on a little for my purposes (I don't
want this behavior), if anyone else would like my changes you can email me.
Or if anyone thinks that there's something I'm being really dumb about,
please let me know that too!


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message