users@glassfish.java.net

Re: Maximum Connections Reached: 4096 -- Retry later

From: <glassfish_at_javadesktop.org>
Date: Tue, 03 Mar 2009 21:26:50 PST

* From your first log (thread-dump.txt), I assume that there are two jdbc-connection-pools involved
* The waits by multiple threads are on one pool, though its not conclusive whether its a hang or not.

Can you post the connection pool configurations ?

Also, you can try the following when the reserver is unresponsive :
1)
When you see the system as unresponsive, can you ping the connection pools ?
asadmin ping-connection-pool "<POOL-NAME>" and see whether that works fine or not ?


2)
You can disable connection pooling by setting the following flags, run your tests and see whether you are still able to reproduce the hang :

pool-resize-quantity=1
steady-pool-size=0
max-connection-usage=1
idle-time=0 (so as to stop resizer)
is-connection-validation-required=false (no validation required as all connections will be fresh)

Let us know the results of both.
[Message sent by forum member 'jr158900' (jr158900)]

http://forums.java.net/jive/thread.jspa?messageID=334972