Re: Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Leon Rosenberg
and to add a quick note to that, the log-output when I am using trustedProxies is "skip" for nearly everything: 15-Jun-2021 00:22:09.543 FINE [ajp-nio-8013-exec-23] org.apache.catalina.valves.RemoteIpValve.invoke Skip RemoteIpValve for request

Re: Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Leon Rosenberg
ok, quick update: it didn't work with 198\.41\..* or .* at first, but it worked after I changed attribute name from trustedProxies to internalProxies. kr Leon On Mon, Jun 14, 2021 at 11:52 PM Leon Rosenberg wrote: > > > On Mon, Jun 14, 2021 at 10:57 PM Christopher Schultz < >

Re: Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Leon Rosenberg
On Mon, Jun 14, 2021 at 10:57 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Leon, > > On 6/14/21 16:26, Leon Rosenberg wrote: > > Thanks for the response Mark, > > > > quick question, do I have to add all cloudflare ips? They kindof > > distributed along the world... Can I mark

Re: client write waits on postgresql RDS

2021-06-14 Thread Ayub Khan
Chris, In jprofiler I see that the threads are waiting on reading the response from database side On Thu, 10 Jun 2021, 08:10 Ayub Khan, wrote: > Seeing client write waits on postgresql as attached in the image. Is there > any bottle neck which is causing the client write waits on postgresql ?

Re: Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Christopher Schultz
Leon, On 6/14/21 16:26, Leon Rosenberg wrote: Thanks for the response Mark, quick question, do I have to add all cloudflare ips? They kindof distributed along the world... Can I mark the thrustworthlyness by a header instead? kr Leon On Mon, Jun 14, 2021 at 9:45 PM Mark Thomas wrote: On

Re: client write waits on postgresql RDS

2021-06-14 Thread Christopher Schultz
Ayub, On 6/11/21 13:52, Ayub Khan wrote: jProfiler shows the threads are stuck with high cpu usage on. I am using HikariCp connection pool management 3.1.0 org.postgresql.jdbc.PgPreparedStatement.execute I am using 42.2.21 version of jdbc driver Below is the Java code Connection con = null;

Re: Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Leon Rosenberg
Thanks for the response Mark, quick question, do I have to add all cloudflare ips? They kindof distributed along the world... Can I mark the thrustworthlyness by a header instead? kr Leon On Mon, Jun 14, 2021 at 9:45 PM Mark Thomas wrote: > On 14/06/2021 17:01, Leon Rosenberg wrote: > > hi, >

Re: Firefox triggers HTTP2 overhead protection - known issue?

2021-06-14 Thread Mark Thomas
On 11/06/2021 12:40, Mark Thomas wrote: On 06/05/2021 14:36, Mark Thomas wrote: It's probably worth us taking some time to adapt markt's SO answer there into a whole section on "Protocol Abuse and Protection Features" in the HTTP/2 configuration guide. There is an open issue for Chrome:

Re: Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Mark Thomas
On 14/06/2021 17:01, Leon Rosenberg wrote: hi, I have a tomcat 8.5.15 behind an apache behind cloudflare. I am trying to "see" the user's ip in my logs. When I print out the headers I see that I have headers in the request CF-Connecting-IP and X-Forwarded-For with real user's up, say

Re: Jasper's use of deprecated boxed primitive constructors

2021-06-14 Thread Mark Thomas
On 14/06/2021 20:31, Adam Rauch wrote: As you're probably aware, all Boolean, Byte, Character, Double, Float, Integer, Long, and Short constructors were deprecated in JDK 9, https://www.oracle.com/java/technologies/javase/9-deprecated-features.html#JDK-8065614. They were then marked

Jasper's use of deprecated boxed primitive constructors

2021-06-14 Thread Adam Rauch
As you're probably aware, all Boolean, Byte, Character, Double, Float, Integer, Long, and Short constructors were deprecated in JDK 9, https://www.oracle.com/java/technologies/javase/9-deprecated-features.html#JDK-8065614. They were then marked forRemoval=true in JDK 16. Jasper generates code

Tomcat doesn't pick up RemoteIp from RemoteIpValve Configuration

2021-06-14 Thread Leon Rosenberg
hi, I have a tomcat 8.5.15 behind an apache behind cloudflare. I am trying to "see" the user's ip in my logs. When I print out the headers I see that I have headers in the request CF-Connecting-IP and X-Forwarded-For with real user's up, say 93.72.251.122. But when I make a request to

RE: Strange connection error

2021-06-14 Thread Mark A. Claassen
Thanks for replies. Everything is working for me now, and I have a bit more of an understanding of how this all works. :) Mark Claassen Senior Software Engineer Donnell Systems, Inc. 130 South Main Street Leighton Plaza Suite 375 South Bend, INĀ  46601 E-mail: mailto:mclaas...@ocie.net Voice: