Re: setenv.sh not loaded

2022-11-04 Thread Zero



If I look how the service is defined in Arch Linux (for tomcat 10)


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



Re: setenv.sh not loaded

2022-11-04 Thread Ivano Luberti

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



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


--

Archimede Informatica tratta i dati personali in conformità a quanto
stabilito dal Regolamento UE n. 2016/679 (GDPR) e dal D. Lgs. 30 
giugno 2003 n. 196

per come modificato dal D.Lgs. 10 agosto 2018 n. 101.
Informativa completa 



dott. Ivano Mario Luberti

Archimede Informatica società cooperativa a r. l.
Via Gereschi 36, 56127 Pisa

tel.: +39 050/580959 | fax: +39 050/8932061

web: www.archicoop.it
linkedin: www.linkedin.com/in/ivanoluberti
facebook: www.facebook.com/archimedeinformaticapisa/


--

Archimede Informatica tratta i dati personali in conformità a quanto
stabilito dal Regolamento UE n. 2016/679 (GDPR) e dal D. Lgs. 30 giugno 
2003 n. 196

per come modificato dal D.Lgs. 10 agosto 2018 n. 101.
Informativa completa 



dott. Ivano Mario Luberti

Archimede Informatica società cooperativa a r. l.
Via Gereschi 36, 56127 Pisa

tel.: +39 050/580959 | fax: +39 050/8932061

web: www.archicoop.it
linkedin: www.linkedin.com/in/ivanoluberti
facebook: www.facebook.com/archimedeinformaticapisa/


AW: AW: setenv.sh not loaded

2022-11-02 Thread aon.913111623
Christopher,

thank you for your additional hints!

You are right regarding CATALINA_BASE, of course! (In case Tomcat is really 
configured to use a separated CATALINA_BASE setup. Which I have practiced since 
Tomcat 5, but in a slightly different manner.) 

And regarding debug info: As far as I understood the initial question there is 
only needed to debug the successful load of setenv.sh. For that purpose the 
timestamp of the created/overwritten file would fulfill the expectation for me 
as well.

BR, Johann

Von: Christopher Schultz
Gesendet: Mittwoch, 2. November 2022 19:28
An: users@tomcat.apache.org
Betreff: Re: AW: setenv.sh not loaded

Johann,

On 11/2/22 14:02, aon.913111...@aon.at wrote:
> I have installed a Tomcat 9.0.68 now on a CentOS vm, following actual 
> recommendations how to do this on CentOS (means on RHEL as well).
> 
> Following command,
> 
> find / -name catalina.sh
> 
> normally will be able to locate that core Tomcat shell script.
> setenv.sh needs to be located in same directory.

No, it doesn't. It should be in CATALINA_BASE/bin. Please read the 
catalina.sh script for the meaning of CATALINA_BASE.

> And don’t forget to apply
> 
> chmod -x setenv.sh
> 
> after you have created it!
> 
> (Assumed you have created the script as/or changed ownership to same user 
> which is owner of all other files in the bin directory.)
> 
> And regarding my proposed debug statement to be inserted into setenv.sh: This 
> has to be corrected to
> 
> echo "setenv.sh successfully loaded" > $CATALINA_HOME/logs/debug.txt

you may also want to include a timestamp so you know when that happened, 
and/or use ">>" to append to the log file instead of just overwriting it 
each time.

-chris

> Von: Ivano Luberti
> Gesendet: Mittwoch, 2. November 2022 14:08
> An: users@tomcat.apache.org
> Betreff: Re: setenv.sh not loaded
> 
> 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
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>

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





AW: AW: setenv.sh not loaded

2022-11-02 Thread aon.913111623
Christopher,

thank you for your additional hints!

You are right regarding CATALINA_BASE, of course! (In case Tomcat is really 
configured to use a separated CATALINA_BASE setup. Which I have practiced since 
Tomcat 5, but in a slightly different manner.) 

And regarding debug info: As far as I understood the initial question there is 
only needed to debug the successful load of setenv.sh. For that purpose the 
timestamp of the created/overwritten file would fulfill the expectation for me 
as well.

BR, Johann

Von: Christopher Schultz
Gesendet: Mittwoch, 2. November 2022 19:28
An: users@tomcat.apache.org
Betreff: Re: AW: setenv.sh not loaded

Johann,

On 11/2/22 14:02, aon.913111...@aon.at wrote:
> I have installed a Tomcat 9.0.68 now on a CentOS vm, following actual 
> recommendations how to do this on CentOS (means on RHEL as well).
> 
> Following command,
> 
> find / -name catalina.sh
> 
> normally will be able to locate that core Tomcat shell script.
> setenv.sh needs to be located in same directory.

No, it doesn't. It should be in CATALINA_BASE/bin. Please read the 
catalina.sh script for the meaning of CATALINA_BASE.

> And don’t forget to apply
> 
> chmod -x setenv.sh
> 
> after you have created it!
> 
> (Assumed you have created the script as/or changed ownership to same user 
> which is owner of all other files in the bin directory.)
> 
> And regarding my proposed debug statement to be inserted into setenv.sh: This 
> has to be corrected to
> 
> echo "setenv.sh successfully loaded" > $CATALINA_HOME/logs/debug.txt

you may also want to include a timestamp so you know when that happened, 
and/or use ">>" to append to the log file instead of just overwriting it 
each time.

-chris

> Von: Ivano Luberti
> Gesendet: Mittwoch, 2. November 2022 14:08
> An: users@tomcat.apache.org
> Betreff: Re: setenv.sh not loaded
> 
> 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
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>

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





Re: AW: setenv.sh not loaded

2022-11-02 Thread Christopher Schultz

Johann,

On 11/2/22 14:02, aon.913111...@aon.at wrote:

I have installed a Tomcat 9.0.68 now on a CentOS vm, following actual 
recommendations how to do this on CentOS (means on RHEL as well).

Following command,

find / -name catalina.sh

normally will be able to locate that core Tomcat shell script.
setenv.sh needs to be located in same directory.


No, it doesn't. It should be in CATALINA_BASE/bin. Please read the 
catalina.sh script for the meaning of CATALINA_BASE.



And don’t forget to apply

chmod -x setenv.sh

after you have created it!

(Assumed you have created the script as/or changed ownership to same user which 
is owner of all other files in the bin directory.)

And regarding my proposed debug statement to be inserted into setenv.sh: This 
has to be corrected to

echo "setenv.sh successfully loaded" > $CATALINA_HOME/logs/debug.txt


you may also want to include a timestamp so you know when that happened, 
and/or use ">>" to append to the log file instead of just overwriting it 
each time.


-chris


Von: Ivano Luberti
Gesendet: Mittwoch, 2. November 2022 14:08
An: users@tomcat.apache.org
Betreff: Re: setenv.sh not loaded

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



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



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



AW: setenv.sh not loaded

2022-11-02 Thread aon.913111623
Hello again!

I have installed a Tomcat 9.0.68 now on a CentOS vm, following actual 
recommendations how to do this on CentOS (means on RHEL as well). 

Following command,

find / -name catalina.sh 

normally will be able to locate that core Tomcat shell script. 
setenv.sh needs to be located in same directory. 
And don’t forget to apply 

chmod -x setenv.sh 

after you have created it! 

(Assumed you have created the script as/or changed ownership to same user which 
is owner of all other files in the bin directory.)

And regarding my proposed debug statement to be inserted into setenv.sh: This 
has to be corrected to

echo "setenv.sh successfully loaded" > $CATALINA_HOME/logs/debug.txt 

BR, Johann

Von: Ivano Luberti
Gesendet: Mittwoch, 2. November 2022 14:08
An: users@tomcat.apache.org
Betreff: Re: setenv.sh not loaded

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
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
-- 

Archimede Informatica tratta i dati personali in conformità a quanto
stabilito dal Regolamento UE n. 2016/679 (GDPR) e dal D. Lgs. 30 giugno 
2003 n. 196
per come modificato dal D.Lgs. 10 agosto 2018 n. 101.
Informativa completa 
<http://www.archicoop.it/fileadmin/pdf/InformativaTrattamentoDatiPersonali.pdf>

dott. Ivano Mario Luberti

Archimede Informatica società cooperativa a r. l.
Via Gereschi 36, 56127 Pisa

tel.: +39 050/580959 | fax: +39 050/8932061

web: www.archicoop.it
linkedin: www.linkedin.com/in/ivanoluberti
facebook: www.facebook.com/archimedeinformaticapisa/



AW: setenv.sh not loaded

2022-11-02 Thread aon.913111623
Hello again!

I have installed a Tomcat 9.0.68 now on a CentOS vm, following actual 
recommendations how to do this on CentOS (means on RHEL as well). 

Following command,

find / -name catalina.sh 

normally will be able to locate that core Tomcat shell script. 
setenv.sh needs to be located in same directory. 
And don’t forget to apply 

chmod -x setenv.sh 

after you have created it! 

(Assumed you have created the script as/or changed ownership to same user which 
is owner of all other files in the bin directory.)

And regarding my proposed debug statement to be inserted into setenv.sh: This 
has to be corrected to

echo "setenv.sh successfully loaded" > $CATALINA_HOME/logs/debug.txt 

BR, Johann

Von: Ivano Luberti
Gesendet: Mittwoch, 2. November 2022 14:08
An: users@tomcat.apache.org
Betreff: Re: setenv.sh not loaded

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
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
-- 

Archimede Informatica tratta i dati personali in conformità a quanto
stabilito dal Regolamento UE n. 2016/679 (GDPR) e dal D. Lgs. 30 giugno 
2003 n. 196
per come modificato dal D.Lgs. 10 agosto 2018 n. 101.
Informativa completa 
<http://www.archicoop.it/fileadmin/pdf/InformativaTrattamentoDatiPersonali.pdf>

dott. Ivano Mario Luberti

Archimede Informatica società cooperativa a r. l.
Via Gereschi 36, 56127 Pisa

tel.: +39 050/580959 | fax: +39 050/8932061

web: www.archicoop.it
linkedin: www.linkedin.com/in/ivanoluberti
facebook: www.facebook.com/archimedeinformaticapisa/



Re: setenv.sh not loaded

2022-11-02 Thread Ivano Luberti

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



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


--

Archimede Informatica tratta i dati personali in conformità a quanto
stabilito dal Regolamento UE n. 2016/679 (GDPR) e dal D. Lgs. 30 giugno 
2003 n. 196

per come modificato dal D.Lgs. 10 agosto 2018 n. 101.
Informativa completa 



dott. Ivano Mario Luberti

Archimede Informatica società cooperativa a r. l.
Via Gereschi 36, 56127 Pisa

tel.: +39 050/580959 | fax: +39 050/8932061

web: www.archicoop.it
linkedin: www.linkedin.com/in/ivanoluberti
facebook: www.facebook.com/archimedeinformaticapisa/


Re: AW: setenv.sh not loaded

2022-11-02 Thread Ivano Luberti

Hi Johann where should I insert the echo?

In setenv.sh , right?

If so, no file has been created, so stenv.sh seems is not called

Il 02/11/2022 13:36, aon.913111...@aon.at ha scritto:

Hello,

recommended approach: Insert as last but one line (last line might contain a 
call of catalina.sh – normally)

echo „setenv.sh executed successfully“ > $TOMCAT_HOME/log/debug.txt

and check existence of this created file after having initiated a restart of 
the Tomcat process.

BR, Johann


Von: Ivano Luberti
Gesendet: Mittwoch, 2. November 2022 12:43
An:users@tomcat.apache.org
Betreff: setenv.sh not loaded

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?



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





--

Archimede Informatica tratta i dati personali in conformità a quanto
stabilito dal Regolamento UE n. 2016/679 (GDPR) e dal D. Lgs. 30 giugno 
2003 n. 196

per come modificato dal D.Lgs. 10 agosto 2018 n. 101.
Informativa completa 
<http://www.archicoop.it/fileadmin/pdf/InformativaTrattamentoDatiPersonali.pdf>


dott. Ivano Mario Luberti

Archimede Informatica società cooperativa a r. l.
Via Gereschi 36, 56127 Pisa

tel.: +39 050/580959 | fax: +39 050/8932061

web: www.archicoop.it
linkedin: www.linkedin.com/in/ivanoluberti
facebook: www.facebook.com/archimedeinformaticapisa/


Re: setenv.sh not loaded

2022-11-02 Thread Olaf Kock



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



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



AW: setenv.sh not loaded

2022-11-02 Thread aon.913111623
Hello,

recommended approach: Insert as last but one line (last line might contain a 
call of catalina.sh – normally)

echo „setenv.sh executed successfully“ > $TOMCAT_HOME/log/debug.txt

and check existence of this created file after having initiated a restart of 
the Tomcat process.

BR, Johann


Von: Ivano Luberti
Gesendet: Mittwoch, 2. November 2022 12:43
An: users@tomcat.apache.org
Betreff: setenv.sh not loaded

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?



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





AW: setenv.sh not loaded

2022-11-02 Thread aon.913111623
Hello,

recommended approach: Insert as last but one line (last line might contain a 
call of catalina.sh – normally)

echo „setenv.sh executed successfully“ > $TOMCAT_HOME/log/debug.txt

and check existence of this created file after having initiated a restart of 
the Tomcat process.

BR, Johann


Von: Ivano Luberti
Gesendet: Mittwoch, 2. November 2022 12:43
An: users@tomcat.apache.org
Betreff: setenv.sh not loaded

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?



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





setenv.sh not loaded

2022-11-02 Thread Ivano Luberti
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?



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