6 Temmuz 2021 Salı

How to increate imq max thread size?

Symptoms:

After connecting JMS service in glassfish getting error:

JMSException: [C4000]: Packet acknowledge failed


Validate Problem:

Check log file
$glassfishhome/domains/<domainname>/imq/instances/imqbroker/log/log.txt


[06/Jul/2021:10:40:07 EET] WARNING [B3004]: No threads are available to process a new connection on service jms. 1000 threads out of a maximum of 1000 threads are already in use by other connections. A minimum of 2 threads must be available to process the connection. Please either limit the # of connections or increase the imq.<service>.max_threads property. Closing the new connection.
[06/Jul/2021:10:40:08 EET] [B1066]:   Closing: ???@172.16.35.34:0->jms:0 because "[B3004]: No threads are available to process a new connection on service jms. 1000 threads out of a maximum of 1000 threads are already in use by other connections. A minimum of 2 threads must be available to process the connection. Please either limit the # of connections or increase the imq.<service>.max_threads property. Closing the new connection. ". Count: service=0 broker=508


Solution:
Step 1: edit config.properties file in $glassfishhome/domains/<domainname>/imq/instances/imqbroker/props

Step 2: increment max thread count: (default value is 1000, so, use value bigger than 1000)
imq.jms.max_threads=2048

Step 3: restart domain

Hiç yorum yok:

Yorum Gönder