Re: NGINX + tomcat 8.0.35 (110: Connection timed out)

2020-11-12 Thread Christopher Schultz
Ayub, On 11/12/20 11:20, Ayub Khan wrote: Chris, That's correct, it's just a plain static hello world page I created to verify tomcat. It is served by tomcat. I have bundled this page in the same context where the service is running. When I create load on the service and then try to access the

Re: NGINX + tomcat 8.0.35 (110: Connection timed out)

2020-11-12 Thread Ayub Khan
Chris, That's correct, it's just a plain static hello world page I created to verify tomcat. It is served by tomcat. I have bundled this page in the same context where the service is running. When I create load on the service and then try to access the static hello world page browser keeps busy

Re: NGINX + tomcat 8.0.35 (110: Connection timed out)

2020-11-12 Thread Christopher Schultz
Ayub, On 11/12/20 10:47, Ayub Khan wrote: Chris, I am using hikaricp connection pooling and the maximum pool size is set to 100, without specifying minimum idle connections. Even during high load I see there are more than 80 connections in idle state. I have setup debug statements to print

Re: NGINX + tomcat 8.0.35 (110: Connection timed out)

2020-11-12 Thread Ayub Khan
Chris, I am using hikaricp connection pooling and the maximum pool size is set to 100, without specifying minimum idle connections. Even during high load I see there are more than 80 connections in idle state. I have setup debug statements to print the total time taken to complete the request.

Re: NGINX + tomcat 8.0.35 (110: Connection timed out)

2020-11-12 Thread Ayub Khan
Chris, I am using hikaricp connection pooling and the maximum pool size is set to 100, without specifying minimum idle connections. Even during high load I see there are more than 80 connections in idle state. I have setup debug statements to print the total time taken to complete the request.

Re: only for remote access

2020-11-12 Thread Christopher Schultz
Jürgen, On 11/12/20 09:50, Jürgen Weber wrote: Chris, it is just authentication basic. I definitely want authentication for remote access, but I had hoped I could override this with a Valve for local access. > Anyway, I'll spare the two apps and do two Servlet mappings /local /remote

Re: only for remote access

2020-11-12 Thread Jürgen Weber
Chris, it is just authentication basic. I definitely want authentication for remote access, but I had hoped I could override this with a Valve for local access. Anyway, I'll spare the two apps and do two Servlet mappings /local /remote protect /remote with and check in the servlet code if

RE: Weirdest Tomcat Behavior Ever?

2020-11-12 Thread Eric Robinson
> -Original Message- > From: Mark Thomas > Sent: Thursday, November 12, 2020 4:08 AM > To: Tomcat Users List ; Eric Robinson > > Subject: Re: Weirdest Tomcat Behavior Ever? > > On 11/11/2020 22:48, Eric Robinson wrote: > >> -Original Message- > >> From: Mark Thomas > >> Sent:

Re: Something I still don't quite understand, Re: Let's Encrypt with Tomcat behind httpd

2020-11-12 Thread Christopher Schultz
James, On 11/5/20 12:07, James H. H. Lampert wrote: I'm intrigued by Mr. Schultz's suggestion of Maybe you just want RedirectPermanent instead of Rewrite(Cond|Rule)? Would that make a difference? Or is it just a matter of altering the RewriteCond clause to specifically ignore anything that

Re: NGINX + tomcat 8.0.35 (110: Connection timed out)

2020-11-12 Thread Christopher Schultz
Ayub, On 11/11/20 16:16, Ayub Khan wrote: I was load testing using the ec2 load balancer dns. I have increased the connector timeout to 6000 and also gave 32gig to the JVM of tomcat. I am not seeing connection timeout in nginx logs now. No errors in kernel.log I am not seeing any errors in

Re: NGINX + tomcat 8.0.35 (110: Connection timed out)

2020-11-12 Thread Ayub Khan
Mark, The difference between after_start and after_load is the below sockets which is just a sample from the repeated list, the ports are random. How to know what these connections are related to ? java5021 tomcat8 3162u IPv6 98361 0t0 TCP

Re: only for remote access

2020-11-12 Thread Christopher Schultz
Jürgen, On 11/12/20 06:30, Jürgen Weber wrote: I'd like to have web app security if accessed from outside the local network. if (!local) check Is this possible? with RemoteHostValve ? You cam simulate it, but you can't use in web.xml and also get a "local" carve-out for it. What

Re: NGINX + tomcat 8.0.35 (110: Connection timed out)

2020-11-12 Thread Martin Grigorov
On Thu, Nov 12, 2020 at 2:40 PM Ayub Khan wrote: > Martin, > > Could you provide me a command which you want me to run and provide you the > results which might help you to debug this issue ? > 1) start your app and click around to load the usual FDs 2) lsof -p `cat /var/run/tomcat8.pid` >

Re: NGINX + tomcat 8.0.35 (110: Connection timed out)

2020-11-12 Thread Ayub Khan
Martin, Could you provide me a command which you want me to run and provide you the results which might help you to debug this issue ? On Thu, Nov 12, 2020 at 1:36 PM Martin Grigorov wrote: > On Thu, Nov 12, 2020 at 10:37 AM Ayub Khan wrote: > > > Martin, > > > > These are file descriptors,

only for remote access

2020-11-12 Thread Jürgen Weber
Hi, I'd like to have web app security if accessed from outside the local network. if (!local) check Is this possible? with RemoteHostValve ? Thx, Juergen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: NGINX + tomcat 8.0.35 (110: Connection timed out)

2020-11-12 Thread Martin Grigorov
On Thu, Nov 12, 2020 at 10:37 AM Ayub Khan wrote: > Martin, > > These are file descriptors, some are related to the jar files which are > included in the web application and some are related to the sockets from > nginx to tomcat and some are related to database connections. I use the > below

Re: Weirdest Tomcat Behavior Ever?

2020-11-12 Thread Mark Thomas
On 11/11/2020 22:48, Eric Robinson wrote: >> -Original Message- >> From: Mark Thomas >> Sent: Monday, November 9, 2020 5:59 AM >> To: users@tomcat.apache.org >> Subject: Re: Weirdest Tomcat Behavior Ever? >> >> Eric, >> >> Time to prune the history and provide another summary I think.

Re: Timeout waiting to read data from client

2020-11-12 Thread Mark Thomas
On 11/11/2020 22:32, Jerry Malcolm wrote: > On 11/9/2020 11:05 AM, Jerry Malcolm wrote: >> >> On 11/9/2020 3:10 AM, Mark Thomas wrote: >>> On 08/11/2020 01:33, Jerry Malcolm wrote: On 11/7/2020 6:56 PM, Christopher Schultz wrote: > Jerry, > > On 11/6/20 19:49, Jerry Malcolm wrote:

Re: NGINX + tomcat 8.0.35 (110: Connection timed out)

2020-11-12 Thread Ayub Khan
Martin, These are file descriptors, some are related to the jar files which are included in the web application and some are related to the sockets from nginx to tomcat and some are related to database connections. I use the below command to count the open file descriptors watch "sudo ls