How to deal with large number of threads in clients

http://activemq.apache.org/how-to-deal-with-large-number-of-threads-in-clients.htmlhtml

另外須要注意一點:ActiveMQSession不用了後須要關閉apache

Closes the session.api

Since a provider may allocate some resources on behalf of a session outside the JVM, clients should close the resources when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.session

There is no need to close the producers and consumers of a closed session.maven

http://activemq.apache.org/maven/5.10.0/apidocs/overview-summary.htmlide

相關文章
相關標籤/搜索