How to access a REST service

2025-07-30 Thread Daniel Schwartz
I have a REST webservice written in Java that runs on the Glassfish server, but I started having problems with the JDBC pooling system. It kept crashing, saying that it was unable to allocate any more connection objects. This made no sense to me, as I had set the maximum pool size to 1000, and

Re: Tomcat maxConnections API

2025-07-30 Thread Nitish Chitta
Thats right, Chris! Tried that and also multiple ways of enforcing the setting on the Kernel level. Nothing helps! Regards, Nitish On Thu, 31 Jul 2025 at 03:59, Christopher Schultz < ch...@christopherschultz.net> wrote: > Nitish, > > On 7/30/25 10:03 AM, Nitish Chitta wrote: > > Any suggestion

Re: Tomcat maxConnections API

2025-07-30 Thread Christopher Schultz
Nitish, On 7/30/25 10:03 AM, Nitish Chitta wrote: Any suggestions from your side for Linux? Tried out multiple approaches but none seem to work. The best you can do is set maxConnections to the number you want at the maximum and set acceptCount=0, but even then the OS may accept more connect

Re: memory leak analysis

2025-07-30 Thread Christopher Schultz
Mircea, On 7/29/25 3:33 PM, Mircea Butmalai wrote: I have created a public repo on github with the following URL: mirceabutmalai/test-docs: test-docs Inside you have 2 png files which are referred from initial email and also the complete jstat log f

Re: Tomcat maxConnections API

2025-07-30 Thread Nitish Chitta
Thanks! Mark. Any suggestions from your side for Linux? Tried out multiple approaches but none seem to work. Regards, Nitish On Wed, 30 Jul 2025 at 13:49, Mark Thomas wrote: > On 30/07/2025 08:53, Nitish Chitta wrote: > > Hello, > > I want to enforce rejection of connections after the *maxCon

Re: Tomcat maxConnections API

2025-07-30 Thread Mark Thomas
On 30/07/2025 08:53, Nitish Chitta wrote: Hello, I want to enforce rejection of connections after the *maxConnections + acceptCount *has been reached. This seems to be working fine with Windows but, on Linux the limit is not getting applied and we do not see the requests getting rejected. I am u

Re: Tomcat maxConnections API

2025-07-30 Thread Nitish Chitta
Hello, I want to enforce rejection of connections after the *maxConnections + acceptCount *has been reached. This seems to be working fine with Windows but, on Linux the limit is not getting applied and we do not see the requests getting rejected. I am using embedded Tomcat 9 with Http11NioProtoco