On 8/27/07, Manivannan Palanichamy <[EMAIL PROTECTED]> 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.
>

I understand.

I think what you are looking for is CATALINA_OPTS and/or JAVA_OPTS.
This link below is for Tomcat 4.0, but the concept is still valid.
http://books.google.com/books?id=fYygS5Jf6g4C&pg=PA15&lpg=PA15&dq=catalina_opts&source=web&ots=FKXI_AtgUl&sig=kyodX_5z9g2CSLGk9AEvXcfor7E

also see
http://tomcat.apache.org/faq/memory.html

These are both for the JVM, you will still have to pass javac command
line arguments.

One other thing. -In my environment, I run tomcat instances as
separate users, via the 'su' command.  When I first tried this
technique, I was placing environment variables at the top of the
startup script, but they were being ignored.  I ended up having to
place them in $HOME/.bashrc (for example), which now makes perfect
sense.

I doubt this is the case for you, but I just wanted to point it out,
in case your variables weren't being picked up or something.

-- brian

---------------------------------------------------------------------
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