re: getServerPort always return 80

2022-01-20 Thread 王 静凯
Hi, any other know this problem? I meet it again today. A server has an Internet IP and when nginx listen to 81,the request.getServerPort() return 80.

AW: AW: Tomcat dedicated server

2022-01-20 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hi Chris, ah.. yes. You are right, I overlooked the available 16 GB Ram. Long time ago, when I used a physical server with 16 GB but in cloud environment, ram is money. Greetings, Thomas -Ursprüngliche Nachricht- Von: Christopher Schultz Gesendet: Donnerstag, 20. Januar 2022 13:01

[ANN] Apache Tomcat 10.0.16 available

2022-01-20 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 10.0.16. This release is targeted at Jakarta EE 9. Applications that run on Tomcat 9 and earlier will not run on Tomcat 10 without changes. Java EE applications designed for Tomcat 9 and earlier may be placed in the

Re: Tomcat jdbc connections

2022-01-20 Thread Christopher Schultz
Alan, On 1/20/22 09:33, Alan F wrote: I have an issue with connections on Tomcat9 Oracle showing connections made for about 2seconds then dropped again. Is this normal when the server is not being used? You mean like, a connection is made, no queries are executed, and then the connection is

Re: Tomcat 9 Encrpytion of JDBC

2022-01-20 Thread Christopher Schultz
Harri, On 1/20/22 11:37, Harri Pesonen wrote: Vault for Apache Tomcat: https://github.com/web-servers/tomcat-vault It hides the secrets in another encrypted file, and password for that file is then in another file... So it just makes it more difficult to access the secrets, but at least they

Re: Tomcat 9 Encrpytion of JDBC

2022-01-20 Thread Christopher Schultz
John, On 1/20/22 11:10, Orendt, John wrote: There are at least two types of mutual authentication. 1. Device Client A and Server B 2. Human A via browser and Server B All the scenarios you mention have been solved. You just need to know how. X509 certs, the chain of trust, TPMs and HSMs are

RE: Tomcat 9 Encrpytion of JDBC

2022-01-20 Thread Harri Pesonen
Vault for Apache Tomcat: https://github.com/web-servers/tomcat-vault It hides the secrets in another encrypted file, and password for that file is then in another file... So it just makes it more difficult to access the secrets, but at least they are not in plain text. -Harri -Original

[ANN] Apache Tomcat 10.1.0-M10 (alpha) available

2022-01-20 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 10.1.0-M10 (alpha). Apache Tomcat 10 is an open source software implementation of the Jakarta Servlet, Jakarta Server Pages, Jakarta Expression Language, Jakarta WebSocket, Jakarta Authentication and Jakarta Annotations

Re: Tomcat jdbc connections

2022-01-20 Thread Mark Thomas
On 20/01/2022 14:33, Alan F wrote: I have an issue with connections on Tomcat9 Oracle showing connections made for about 2seconds then dropped again. Is this normal when the server is not being used? Seems unlikely. Can you provide the DataSource configuration? Remember to obfuscate any

RE: Tomcat 9 Encrpytion of JDBC

2022-01-20 Thread Orendt, John
Hi There are at least two types of mutual authentication. 1. Device Client A and Server B 2. Human A via browser and Server B All the scenarios you mention have been solved. You just need to know how. X509 certs, the chain of trust, TPMs and HSMs are some the of parts of the solution for both

[ANN] Apache Tomcat 9.0.58 available

2022-01-20 Thread Rémy Maucherat
The Apache Tomcat team announces the immediate availability of Apache Tomcat 9.0.58. Apache Tomcat 9 is an open source software implementation of the Java Servlet, JavaServer Pages, Java Unified Expression Language, Java WebSocket and JASPIC technologies. Apache Tomcat 9.0.58 is a bugfix and

Tomcat jdbc connections

2022-01-20 Thread Alan F
I have an issue with connections on Tomcat9 Oracle showing connections made for about 2seconds then dropped again. Is this normal when the server is not being used? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

[ANN] Apache Tomcat 8.5.75 available

2022-01-20 Thread Christopher Schultz
The Apache Tomcat team announces the immediate availability of Apache Tomcat 8.5.75. Apache Tomcat 8 is an open source software implementation of the Java Servlet, JavaServer Pages, Java Unified Expression Language, Java WebSocket and Java Authentication Service Provider Interface for Containers

Re: Tomcat dedicated server

2022-01-20 Thread Christopher Schultz
Mark, On 1/20/22 04:18, Mark Thomas wrote: On 20/01/2022 08:54, Olaf Kock wrote:  My rule of thumb is: The more memory there is to be claimed in GC, the longer a full GC run takes. Nope. The time a GC run takes is proportional to the size of objects in memory that do not need to be GC'd.

Re: AW: Tomcat dedicated server

2022-01-20 Thread Christopher Schultz
Thomas, On 1/20/22 04:16, Thomas Hoffmann (Speed4Trade GmbH) wrote: just one remark: Take care about the 32 GB. Configuring more than 32 GB, the Java Pointers will use 64 Bit and thus need double the space. Thus 34 GB memory can be worse than 31 GB. See also

Re: Tomcat dedicated server

2022-01-20 Thread Christopher Schultz
Lance, On 1/19/22 17:35, Campbell, Lance wrote: On a Tomcat 9.x dedicated Linux server with 16G of memory, how much memory would you allocate for the OS? Assume there is no file processing taking place. Also assume Tomcat is communicating primarily with a PostgreSQL database and Apache web

Re: Tomcat dedicated server

2022-01-20 Thread Olaf Kock
Hi Mark On 20.01.22 10:18, Mark Thomas wrote: > On 20/01/2022 08:54, Olaf Kock wrote: > >>  My rule of thumb is: The >> more memory there is to be claimed in GC, the longer a full GC run >> takes. > > Nope. > > The time a GC run takes is proportional to the size of objects in > memory that do not

Re: Tomcat dedicated server

2022-01-20 Thread Mark Thomas
On 20/01/2022 08:54, Olaf Kock wrote: My rule of thumb is: The more memory there is to be claimed in GC, the longer a full GC run takes. Nope. The time a GC run takes is proportional to the size of objects in memory that do not need to be GC'd. GC walks the active object tree so it is the

AW: Tomcat dedicated server

2022-01-20 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Lance, just one remark: Take care about the 32 GB. Configuring more than 32 GB, the Java Pointers will use 64 Bit and thus need double the space. Thus 34 GB memory can be worse than 31 GB. See also https://blog.codecentric.de/en/2014/02/35gb-heap-less-32gb-java-jvm-memory-oddities/ Just

Re: Tomcat dedicated server

2022-01-20 Thread Olaf Kock
Hi Lance On 19.01.22 23:35, Campbell, Lance wrote: > On a Tomcat 9.x dedicated Linux server with 16G of memory, how much memory > would you allocate for the OS? > > Assume there is no file processing taking place. Also assume Tomcat is > communicating primarily with a PostgreSQL database and