> I only know how it works on a standard Tomcat installation.
> We modify the catalina.sh and (as far as i remember) set the
[quoted text clipped - 3 lines]
> Maybe you can configure the start-parameters from within your NetBeans
> 5.0 IDE.
I didn't find such a setting in the NetBeans IDE... Can JVM arguments be
set in the web.xml or context.xml configuration files? This would be really
nice because I don't have to adjust another Tomcat server if I deploy the
application elsewhere.
How does the Tomcat server work internally? Will it startup a new JVM for
each web application it's running or will it use the same JVM which runs
the Tomcat server? If it's the first option then there must be a way to
tell Tomcat what arguments to pass to the JVM, right?

Signature
Sincerely
Sven Jacobs
Robert Klemme - 20 Feb 2006 09:29 GMT
>> I only know how it works on a standard Tomcat installation.
>> We modify the catalina.sh and (as far as i remember) set the
[quoted text clipped - 9 lines]
> be really nice because I don't have to adjust another Tomcat server
> if I deploy the application elsewhere.
They can't. At the moment when these files are read the JVM is already up
and running.
> How does the Tomcat server work internally? Will it startup a new JVM
> for each web application it's running or will it use the same JVM
> which runs the Tomcat server? If it's the first option then there
> must be a way to tell Tomcat what arguments to pass to the JVM, right?
There is just a single JVM.
But properties can also be set at runtime:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#setProperties(java
.util.Properties)
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#setProperty(java.l
ang.String,%20java.lang.String)
You could write initialization code that does this and execute it via a
listener that listens on application startup and shutdown events:
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextLis
tener.html
Regards
robert