If I look how the service is defined in Arch Linux (for tomcat 10)
<https://archlinux.org/packages/extra/any/tomcat10/>
it defines a service file for Systemd,
usr/lib/systemd/system/tomcat10.service
Looking in that file it calls jsvc.
In the parameters you then can define additional class path entries in
parameter -cp and java runtime options in CATALINA_OPTS.
The idea there seems to be to change the tomcat10.service file instead
of changing the setenv.sh file.
HTH
~Z
On 11/4/22 12:57, Ivano Luberti wrote:
I follow with the conclusion on this matter.
Installing Tomcat with yum and epel repository,so doing
yum install epel-release
yum install tomcat
leads to a tomcat installation with no catalina.sh present in either
usr/share/tomcat or var/lib/tomcat
Consequently tomcat is installed as a service with a service file that
launches tomcat without reference to catalina.sh and instead loads a
configuration file in etc/tomcat/ (not sure about this dir but it has
been erased and I can't verify) where you can put your JAVA_OPTS
Il 02/11/2022 14:08, Ivano Luberti ha scritto:
Tomcat ahas benne installed using yum
I cannot find any catalina.sh file on the system.
So I have to check with the sysadmin how he configured tomcat.
Il 02/11/2022 13:46, Olaf Kock ha scritto:
On 02.11.22 12:43, Ivano Luberti wrote:
Hi, I have been given an Oracle Linux instance with tomcat 9.0.65
installed as a service.
Tomcat is running correctly
I have tried to create a setenv.sh file to tune the JVM, but using
the tomcat manager application and the catalina.log file it seems
that my java configuration is not loaded.
Any suggestion on how to debug this?
You're saying "installed as a service". This might mean that
tomcat/bin/catalina.sh is also never executed, or that it has been
altered from the default.
Ivano's suggestion is great already. On top, you might want to
* check how Tomcat is started by the system (e.g. does it go through
catalina.sh at all?)
* check if anything in its installation directory is altered from
default. Just inspect a diff between stock 9.0.65 and what you find
in your installation.
Olaf
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org