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