-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Manivannan,

Manivannan Palanichamy wrote:
> My problem is: I am trying to install java & tomcat on a server (redhat
> linux, 64 bit), which runs on shared memory. I need to limit down java start
> up memory, by passing arguments like $javac -J -Xmx118m & $java -Xmx118m so
> that the virtual machince starts, otherwise it is terminated.

Though I'm not positive, I'm pretty sure that the JSP compiler within
Tomcat runs in-process; that is, it runs in the same memory space that
is used by the Tomcat process itself. So, if you set JAVA_OPTS to
include "-Xmx118m", then you will be limiting the amount of memory
available to the entire JVM, including the JSP compiler.

You can do this by either modifying the startup.sh script (which I don't
recommend), or writing your own startup script that looks like this:

#!/bin/sh

TOMCAT_HOME=...

export JAVA_OPTS='-Xmx118m'

$TOMCAT_HOME/bin/startup.sh

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG0vZH9CaO5/Lv0PARAj6iAJ9GtaIgz2S4E9XzJFlK8DTRWOBRdwCgpIa4
JTaoccIgziaoWZ5uBddaWFw=
=mWzo
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to