How to deal with large number of threads in clients
2019獨角獸企業(yè)重金招聘Python工程師標準>>>
http://activemq.apache.org/how-to-deal-with-large-number-of-threads-in-clients.html
另外需要注意一點:ActiveMQSession不用了后需要關(guān)閉
Closes the session.
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.
There is no need to close the producers and consumers of a closed session.
http://activemq.apache.org/maven/5.10.0/apidocs/overview-summary.html
轉(zhuǎn)載于:https://my.oschina.net/u/2308739/blog/785485
《新程序員》:云原生和全面數(shù)字化實踐50位技術(shù)專家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結(jié)
以上是生活随笔為你收集整理的How to deal with large number of threads in clients的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 百篇大计敬本年之系统篇《八》—— Ubu
- 下一篇: JAVA 实现扫码二维码登录