开发者

Connection Pool Size for Fixed Thread Program

开发者 https://www.devze.com 2023-04-07 07:48 出处:网络
I have a fixed thread java program. It is implemented with Spring Integration and ActiveMQ. Fixed thread here means that program has multiple threads but the count of them in runtime don\'t change.

I have a fixed thread java program. It is implemented with Spring Integration and ActiveMQ. Fixed thread here means that program has multiple threads but the count of them in runtime don't change. Now I need to set connection pool size for it, So I should know:

  1. How many threads it have
  2. Which of them may connect to DB simultaneously.

For 1. I use visualVM tool.

  • Can I use visualVM for 2. ? How?
  • Has anyone another solu开发者_JAVA技巧tion for this problem?
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号