[Bug] [Module Name] Bug title Dinky often DOWN after up 4-10 hours with hs_error.log
Search before asking
- [x] I had searched in the issues and found no similar issues.
What happened
dinky版本1.2.4 dinky启动后,隔4-10个小时,就挂了。 我们是用海豚调度器每隔10分钟,调度一次dinky里面的批任务。生产实践发现,海豚微批调度dinky,时间长了后,dinky会经常挂了,每次挂了,都有hs_error的log。
hs_error如下:
从grafana上面看,dinky内存没满过,cpu很空闲,gc压力很小。但有个线程数的指标,一直在持续增大,目前怀疑是不是dinky内部线程释放 存在 不释放的问题?
What you expected to happen
指导如何解决这个问题
How to reproduce
Anything else
No response
Version
dev
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Grafana截图如下:
1.2.4 /openapi/submittask 里面用了ThreadLocal, set后 没有用remove释放,和这个有关吗?
Hi. ThreadLocal doesn't increase the number of threads. What is the deployment method of your task, local or remote?
If the task is executed in local mode, it will significantly increase the number of threads.