Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-04 Thread Santhosh Kumar
As per the documentation, https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_SSLHostConfig this connector supports maxPostSize, by default the limit is set to 2MB On Tue, Mar 5, 2019 at 5:09 AM John Dale wrote: > Does anyone know if this connector supports maxPostSize

Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-04 Thread John Dale
Does anyone know if this connector supports maxPostSize parameter? On 3/4/19, Santhosh Kumar wrote: > Hi, > > We have a tomcat instance which is http2 enabled and it needs to serve > large number of requests using multiplexing, so we have configured our > instance as follows, > >

Re: How to display the current In-Use Stack Size

2019-03-04 Thread John Dale
Something like this maybe? String[] cmd = { "/bin/sh", "-c", "ps -eo rss,comm --sort rss" }; Process p = Runtime.getRuntime().exec(cmd); p.waitFor(); BufferedReader buf = new BufferedReader(new InputStreamReader( p.getInputStream())); String line = ""; String

Re: How to display the current In-Use Stack Size

2019-03-04 Thread Campbell, Lance
I have seen those as well. I was hoping someone knew if there was a way to view the Java Stack in particular. On 3/4/19, 11:16 AM, "John Dale" wrote: I found this in some old code .. not sure if it works. Let me know. //Getting the runtime reference from system

I'm not able to get acces server status Apache Tomcat/9.0.16

2019-03-04 Thread ITMex
Hi everyone, I'm running Apache Tomcat/9.0.16 over CentOS 7 so far is okay, but I'm not able to get acces to "server status, Manager App and Host Manager" menus, even from localhost I got the following message: HTTP Status 404 – Not Found Type Status Report

Re: Tomcat 8.5.13 - random issue with HTTPS (blank page) - working good with HTTP

2019-03-04 Thread Mark Thomas
On 04/03/2019 17:28, youness.dakk...@bnpparibasfortis.com wrote: > Dear, > > We are facing instability on our BI platform due to Tomcat. > > We have our https url working but sometimes, we get a blank page and stay > like that for several time, in the meantime if we use the url without HTTPS >

Re: Tomcat 8.5.13 - random issue with HTTPS (blank page) - working good with HTTP

2019-03-04 Thread John Dale
We need some more information .. what are you using to log? Do you wait to see if there will be a timeout, after which something more meaningful might appear in the logs? Memory/resource leak would be my guess. Uses all the threads, none of which seem to be properly reclaimed, so it eventually

RE: Tomcat 8.5.13 - random issue with HTTPS (blank page) - working good with HTTP

2019-03-04 Thread youness.dakk...@bnpparibasfortis.com
Dear, We are facing instability on our BI platform due to Tomcat. We have our https url working but sometimes, we get a blank page and stay like that for several time, in the meantime if we use the url without HTTPS as HTTP it works. The only fix we apply know is to restart the tomcat but

Re: How to display the current In-Use Stack Size

2019-03-04 Thread John Dale
I found this in some old code .. not sure if it works. Let me know. //Getting the runtime reference from system Runtime runtime = Runtime.getRuntime(); //Print used memory out.println("Used Memory: " + ((runtime.totalMemory() -

Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-04 Thread John Dale
Nice test case. Is the JVM able to garbage collect fast enough? Are you releasing the resources properly in your components as early as possible? Java VM's achieve a steady-state after a certain period of time, but I've found in some cases garbage collection doesn't keep-up with my load tests

How to display the current In-Use Stack Size

2019-03-04 Thread Campbell, Lance
Tomcat 9.x What is the easiest way to identify how much memory Tomcat/Java is currently using from the Java stack -Xss ? Not max but currently being used. Is there a particular statement I can put into a servlet to see what the current memory usage is of the stack? Thanks, Lance

Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-04 Thread Santhosh Kumar
> Do you actually need all those values and where do they come from in the first place ? Do you understand what they do ? I was just experimenting with all available attributes related to socket and multiplexing. I have followed the documentations,

Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-04 Thread Rémy Maucherat
On Mon, Mar 4, 2019 at 10:40 AM Santhosh Kumar wrote: > Hi, > > We have a tomcat instance which is http2 enabled and it needs to serve > large number of requests using multiplexing, so we have configured our > instance as follows, > > sslImplementationName="org.apache.tomcat.util.net >

Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-04 Thread Santhosh Kumar
Hi, We have a tomcat instance which is http2 enabled and it needs to serve large number of requests using multiplexing, so we have configured our instance as follows, This instance mainly serves concurrent POST request which will have payload of size, approx