AW: Tomcat showing two sets of memory settings

2022-01-21 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello, you can remove MaxPermSize, its deprecated and not used any more. How do you start Tomcat? Via the startup.sh script or via init.d or systemd? Maybe you can do a "grep -r Xms *" on the tomcat-folder and the folder with the init-Scripts? e.g. /etc/init.d/ /usr/lib/systemd/system/

Tomcat showing two sets of memory settings

2022-01-21 Thread Patrick Baldwin
I've got a tomcat install ( Apache Tomcat Version 8.5.23 )that is showing two sets of memory settings, the second set of which is what I want and is being set in setenv.sh. Thought it might be being set in a startup script, but I don't see one for tomcat in either of the usual places: sixp.7

RE: Tomcat jdbc connections

2022-01-21 Thread Alan F
Thanks for your input Phil! Arghh will keep looking. -Original Message- From: Phil Steitz Sent: 21 January 2022 17:50 To: users@tomcat.apache.org Subject: Re: Tomcat jdbc connections On 1/21/22 9:28 AM, Alan F wrote: > Ok thanks Phil ok I checked other connections in the same host

Re: Tomcat jdbc connections

2022-01-21 Thread Phil Steitz
On 1/21/22 9:28 AM, Alan F wrote: Ok thanks Phil ok I checked other connections in the same host and see minIdle="2" and initialSize="7" Ive run a diff on this server.xml between our active prod hosts which shows connections on Toad up for at least a day as to this idle server reconnecting

RE: Tomcat jdbc connections

2022-01-21 Thread Alan F
Ok thanks Phil ok I checked other connections in the same host and see minIdle="2" and initialSize="7" Ive run a diff on this server.xml between our active prod hosts which shows connections on Toad up for at least a day as to this idle server reconnecting after minutes! And diff is

Re: Tomcat jdbc connections

2022-01-21 Thread Phil Steitz
On 1/21/22 8:19 AM, Alan F wrote: Thanks John, Here is an example of a connection below I see timeBetweenEvictionRunsMillis but not maxConnLifetimeMillis if the server has no traffic does this mean So above does that mean every 60 secs Eviction runs, does this mean a server with no

Re: Tomcat jdbc connections

2022-01-21 Thread Phil Steitz
On 1/21/22 8:19 AM, Alan F wrote: Thanks John, Here is an example of a connection below I see timeBetweenEvictionRunsMillis but not maxConnLifetimeMillis if the server has no traffic does this mean So above does that mean every 60 secs Eviction runs, does this mean a server with no

RE: Tomcat jdbc connections

2022-01-21 Thread Alan F
Thanks John, Here is an example of a connection below I see timeBetweenEvictionRunsMillis but not maxConnLifetimeMillis if the server has no traffic does this mean So above does that mean every 60 secs Eviction runs, does this mean a server with no traffic evicts unused connections to DB?

RE: Tomcat jdbc connections

2022-01-21 Thread John.E.Gregg
Alan, > -Original Message- > From: Alan F > Sent: Friday, January 21, 2022 6:53 AM > To: Tomcat Users List > Subject: RE: Tomcat jdbc connections > > Hi Christopher > > Thanks for your time here. > > You mean like, a connection is made, no queries are executed, and then the >

RE: Tomcat jdbc connections

2022-01-21 Thread Alan F
Hi Christopher Thanks for your time here. You mean like, a connection is made, no queries are executed, and then the connection is terminated? - ANSWER - DBAs are saying connections last a minute or so and are replaced by a new set of connections 1 session each pool. Presumably, you have

AW: getServerPort always return 80

2022-01-21 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello, according to https://tomcat.apache.org/tomcat-8.0-doc/servletapi/javax/servlet/ServletRequest.html#getServerPort() it is the Port to which the request was sent to. Probably your Tomcat listens on Port 80 and nginx was sending the request to that port. For Proxy, check out the

RE: tomcat-10.0.x Problem https multiple IP

2022-01-21 Thread Jaebo Nah
Dear all, Thank you for your help, I found the problem. Only one certificate may be contained in the KeyStore file. I had several certificates in the KeyStore file, and the Tomcat server 10.x always got the first certificate in the KeyStore file. With Tomcat 9.x you could specify the key alias.

RE: tomcat-10.0.x Problem https multiple IP

2022-01-21 Thread Jaebo Nah
Hi Mark, I want to use 3 Tomcat on the Linux Server . For each Ip (DNS ALIAS) one Tomcat. I use this configuration with Tomcat 9.x and it works fine. Now I start following sever.xml but the Problem is the Same. Rgds correct Domian Name and IP (sorry for the confusion) 10.100.142.30 =

RE: tomcat-10.0.x Problem https multiple IP

2022-01-21 Thread Jaebo Nah
Sorry, a little mistake in my description . It should be . SSLEnabled="true" defaultSSLHostConfigName="10.100.142.31" > But also (see below) is not working. SSLEnabled="true" defaultSSLHostConfigName="two.domain.loc" > Jaebo Nah

Re: tomcat-10.0.x Problem https multiple IP

2022-01-21 Thread Mark Thomas
On 21/01/2022 09:29, Jaebo Nah wrote: Dear all, I want to use a Tomcat apache-tomcat-10.0.14 with https . The Linux Server have multiple ip Address with different Domain Names 10.100.142.30  =   one.domain.loc 10.100.142.31  =   two.domain.loc 10.100.142.32  =   three.domain.loc When I try

Re: tomcat-10.0.x Problem https multiple IP

2022-01-21 Thread Olaf Kock
Dear Jaebo, On 21.01.22 10:29, Jaebo Nah wrote: >  10.100.142.31  =   two.domain.loc > > >   address=" two.domain.loc" > >   SSLEnabled="true" defaultSSLHostConfigName="10.100.142.32" > > >      protocols="TLSv1.2,+TLSv1.1,+TLSv1"> > > Above, I only left the lines from your mail

tomcat-10.0.x Problem https multiple IP

2022-01-21 Thread Jaebo Nah
Dear all, I want to use a Tomcat apache-tomcat-10.0.14 with https . The Linux Server have multiple ip Address with different Domain Names 10.100.142.30 = one.domain.loc 10.100.142.31 = two.domain.loc 10.100.142.32 = three.domain.loc When I try to connect to the Tomcat with