Setting JVM Parameters in Windows Service for Tomcat7

2012-09-20 Thread Matthias Müller
Hi,

I want to set JVM Parameters in a Windows Service (Windows7) for
Tomcat7 (7.0.30)

The documentation tells, that this could be done by calling tomcat7
//US//Tomcat7 ...
This method works, but it is not practicable for our production
environment, because these settings are stored in the registry.

Is it possible to specify these parameters in setenv.bat or somewhere else?
When I start tomcat with catalina.bat run the setenv.bat is read.
But when I start tomcat as a windows service the setenv.bat is ignored.

Matthias

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Setting JVM Parameters in Windows Service for Tomcat7

2012-09-20 Thread Matthias Müller
Hi,

Environment variables are irrelevant when running services. That's why
the registry values exist.

That's a good point!
Thanks for the nice discussion.

 Matthias - can you please elaborate on exactly what it is not practicable
 for our production environment means?

I want to put the configuration files and property settings in a local
VCS (e.g. a local git) so that I can track the changes.
But now I see, that there are some technical reasons for using the registry.
I think I will use a batch-script then which sets the registry.

Matthias

PS
There are two ways of setting the registry:

1. CLI via tomcat.exe //US//Tomcat7 ...
There are some examples in the service.bat file.
2. gui via tomcatw.exe

But I think both ways are not compatible.
I.E. when using tomcat.exe //US//Tomcat7 I won't find the values in
tomcatw.exe
But that's not a problem for me.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org