> On 2025 Aug 16, at 11:20, Daniel Schwartz <d...@danielgschwartz.com> wrote:
> 
> You might be using a different version of Glassfish.  I have 4.1 (which I 
> realize is old).  It won't let you set the minimum pool size to less than 8.


Did you actually set the minimum (steady-pool-size) or did you just try 
changing max-pool-size to 1? You cannot lower the maximum below the value of 
steady-pool-size.


> If you try to do this, it reports an error and won't let you proceed.  The 
> simple test I ran shows that it is creating 8 physical connections for each 
> logical connection.


Again, your conclusion is incorrect. The pool is creating 8 connections because 
that’s what the minimum is set to. Testing with a delay in your web service 
code between the connection acquisition and close calls - as Robert T already 
did - will show the pool size not growing beyond 8 until there are more than 8 
concurrent requests being processed.


> This is clearly stated by the monitoring report, and you can’t disagree with 
> that.


The report only shows that 8 connections have been created; there is no 
indication in the report of anything else.


> I have considered upgrading to a newer version of Glassfish, but this would 
> be another project that I'm not prepared to undertake right now.


But you apparently are prepared to handle all the security risks of running a 
11-year old server exposed to the internet. Bad tradeoff.

  - Chuck


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to