You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Baran Topal <ja...@gmail.com> on 2015/04/10 10:48:33 UTC

where is Java options setting in tomcat

Hi;

I need to create a batch file to manipulate the java option settings in
Tomcat. Where are those settings existing?



Br.

Re: where is Java options setting in tomcat

Posted by David kerber <dc...@verizon.net>.
On 4/10/2015 8:50 AM, Caldarale, Charles R wrote:
>> From: Daniel Baktiar [mailto:dbaktiar@gmail.com]
>> Subject: Re: where is Java options setting in tomcat
>
>> It resides in the environment variables of operating system user from where
>> you launch the Tomcat process.
>
> Except when Tomcat is running as a Windows service.  (Of course, the OP failed to provide even a modicum of platform or version information - another person who thinks we're all mind readers.)  When Tomcat is uses as a Windows service, the values are kept in the registry, not environment variables.  Look here for information about updating JVM arguments:

Or perhaps he didn't realize that it made a difference...


>
> http://tomcat.apache.org/tomcat-8.0-doc/windows-service-howto.html
>
>   - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


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


RE: where is Java options setting in tomcat

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Daniel Baktiar [mailto:dbaktiar@gmail.com] 
> Subject: Re: where is Java options setting in tomcat

> It resides in the environment variables of operating system user from where
> you launch the Tomcat process.

Except when Tomcat is running as a Windows service.  (Of course, the OP failed to provide even a modicum of platform or version information - another person who thinks we're all mind readers.)  When Tomcat is uses as a Windows service, the values are kept in the registry, not environment variables.  Look here for information about updating JVM arguments:

http://tomcat.apache.org/tomcat-8.0-doc/windows-service-howto.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: where is Java options setting in tomcat

Posted by Daniel Baktiar <db...@gmail.com>.
It resides in the environment variables of operating system user from where
you launch the Tomcat process.

You can look at bin/catalina.sh (or bin/catalina.bat) for JVM Options for
the server.
Look at environment variables JAVA_OPTS and CATALINA_OPTS to get some idea
where to start.

You can specify the environment variable before invoking the startup.sh (or
startup.bat).

This might be helpful as well:
http://stackoverflow.com/questions/11222365/catalina-opts-vs-java-opts-what-is-the-difference



On Fri, Apr 10, 2015 at 4:48 PM, Baran Topal <ja...@gmail.com> wrote:

> Hi;
>
> I need to create a batch file to manipulate the java option settings in
> Tomcat. Where are those settings existing?
>
>
>
> Br.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

Re: where is Java options setting in tomcat

Posted by Neill Lima <ne...@visual-meta.com>.
https://gist.github.com/terrancesnyder/986029

On Fri, Apr 10, 2015 at 10:48 AM, Baran Topal <ja...@gmail.com> wrote:

> Hi;
>
> I need to create a batch file to manipulate the java option settings in
> Tomcat. Where are those settings existing?
>
>
>
> Br.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>