我有一个服务器端应用程序,它使用cachedThreadPool (Executors.newCachedThreadPool。但我可以看到,由于频繁的GC可能会从cachedpool中清除线程,所以性能会下降。有没有办法为这个场景调优GC?
cachedThreadPool
Executors.newCachedThreadPool
cachedpool
发布于 2014-03-04 19:19:36
我不知道你的具体情况。垃圾收集日志会很有帮助。
您可以找到垃圾收集调优here。
关于你的案例的很好的解释可能可以找到here
https://stackoverflow.com/questions/22169695
相似问题