Trying to identify the setting in our JMS config where we are opening a persistent connection to the JMS server and how to get more info on these connections'
Release :
The Layer7 API Gateway will close an outbound JMS connection under any of the following conditions:
Setting to review to see if they have been modified:
io.jmsConnectionMaxWait - 5s Above properties as well other JMS properties are outlined in the link below :
io.jmsConnectionIdleTime detail 5 minutes - Max time an idle JMS connection will stay n the connection pool while idle
io.jmsSessionMaxIdle default: 8 max sessions that can sit idle in the session pool
io.jmsSessionPoolSize detail: 8 max # of session that can be allocated by session pool
io.jmsConnectionCacheMaxAge: Maximum age for a cached JMS connection. Enter "0" (zero) for no time limit. Value is a time unit.
Default: 10m
This may help:
Add the following value to the log.levels cluster-wide property:
com.l7tech.server.transport.jms2.level = FINE
The following log records are generated
Operation |
Log Level |
Example |
Create Pooled JMS Object |
FINE |
FINE 589 com.l7tech.server.transport.jms2.PooledConnection: Creating new PooledConnection object... FINE 589 com.l7tech.server.transport.jms2.JmsResourceManager: Created new CachedConnection PooledConnection : OUT_AMQP_01,null/myQueueLookup |
Pooled connections are being used |
FINEST |
FINEST 622 com.l7tech.server.transport.jms2.SingleSessionHolder: Borrowed session com.l7tech.server.transport.jms.JmsBag@6ff44e80 |
Eviction check task |
FINE |
2017-11-14T11:29:52.331-0800 FINE 95 com.l7tech.server.transport.jms2.JmsResourceManager: Running CacheCleanupTask... 2017-11-14T11:29:52.331-0800 FINE 95 com.l7tech.server.transport.jms2.JmsResourceManager: Check eviction candidate PooledConnection : OUT_AMQP_01,null/myQueueLookup 2017-11-14T11:29:52.331-0800 FINE 95 com.l7tech.server.transport.jms2.PooledConnection: Active: 0 Idle: 3 OUT_AMQP_01,null/myQueueLookup |
Pooled connections being closed due to the Idle time |
FINE |
FINE 95 com.l7tech.server.transport.jms2.SingleSessionHolder: Closing JMS connection (OUT_AMQP_01,null/myQueueLookup), com.l7tech.server.transport.jms.JmsBag@6d7f4b25 |