Redian新闻
>
pattern recognition 对一张地图comment, 求建议。
avatar
pattern recognition 对一张地图comment, 求建议。# Engineering - 工程
c*n
1
在debug, 发现我的java code 在run 1000多threads
是否太多了? JVM supposedly 可以正常处理多少threads?
就是想要个大概的rule of thumb, 以后debug 的时候可以用到。
avatar
c*s
2
不懂pattern recognition,
一张世界地图, 各国国旗贴在各国相应位置上。
avatar
g*g
3
这个并不是问题,但如果你应该查一查有没有死锁。
另外如果性能有问题应该调thread pool.

【在 c******n 的大作中提到】
: 在debug, 发现我的java code 在run 1000多threads
: 是否太多了? JVM supposedly 可以正常处理多少threads?
: 就是想要个大概的rule of thumb, 以后debug 的时候可以用到。

avatar
c*n
4
多谢, 没有deadlock, jstack -l 可以看到
不应该是deadlock, cuz it goes away naturally after a while
不是我自己的code, 是apache cassandra
他们已经在用thread pool, 不过是unlimited, 所以我才问,
1000 个thread 的pool 是不是不可能handle 了。
正常运行, 到600 个thread 都没有问题, 之后可以ramp up 看看limit 到底是多少

【在 g*****g 的大作中提到】
: 这个并不是问题,但如果你应该查一查有没有死锁。
: 另外如果性能有问题应该调thread pool.

avatar
g*g
5
既然是Cassandra,用JMX去看一眼TP统计。
通常用的线程多不是问题,如果threadpool queue不停增长
就是问题。

【在 c******n 的大作中提到】
: 多谢, 没有deadlock, jstack -l 可以看到
: 不应该是deadlock, cuz it goes away naturally after a while
: 不是我自己的code, 是apache cassandra
: 他们已经在用thread pool, 不过是unlimited, 所以我才问,
: 1000 个thread 的pool 是不是不可能handle 了。
: 正常运行, 到600 个thread 都没有问题, 之后可以ramp up 看看limit 到底是多少

avatar
c*n
6
TP stats 都是间接的。 直接看thread count 也是一样的啊

【在 g*****g 的大作中提到】
: 既然是Cassandra,用JMX去看一眼TP统计。
: 通常用的线程多不是问题,如果threadpool queue不停增长
: 就是问题。

avatar
r*l
7
Use jstack dump thread. Then use TDA to analyze. Remember that thread
behavior is dynamic, so take multiple dumps and try to find the corelation.

【在 c******n 的大作中提到】
: 在debug, 发现我的java code 在run 1000多threads
: 是否太多了? JVM supposedly 可以正常处理多少threads?
: 就是想要个大概的rule of thumb, 以后debug 的时候可以用到。

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。