Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix redis collector create too many instance case oom #734

Merged
merged 3 commits into from
Mar 14, 2023

Conversation

tomsun28
Copy link
Contributor

  • bugfix redis collector create too many instance case oom
  • fix can not cancel monitor job
2023-03-13 20:13:58.744 [176116430344448-redis-server-8744] ERROR com.usthe.collector.dispatch.WorkerPool Line:52  - workerExecutor has uncaughtException.
2023-03-13 20:13:58.745 [176116508209408-redis-server-8744] ERROR com.usthe.collector.dispatch.WorkerPool Line:52  - workerExecutor has uncaughtException.
2023-03-13 20:13:58.745 [176116430344448-redis-server-8744] ERROR com.usthe.collector.dispatch.WorkerPool Line:53  - unable to create native thread: possibly out of memory or process/resource limits reached
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
	at java.base/java.lang.Thread.start0(Native Method)
	at java.base/java.lang.Thread.start(Thread.java:798)
	at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:937)
	at java.base/java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1005)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
2023-03-13 20:13:58.745 [176116508209408-redis-server-8744] ERROR com.usthe.collector.dispatch.WorkerPool Line:53  - unable to create native thread: possibly out of memory or process/resource limits reached
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
	at java.base/java.lang.Thread.start0(Native Method)
	at java.base/java.lang.Thread.start(Thread.java:798)
	at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:937)
	at java.base/java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1005)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

case by redis lettuce https://duoduokou.com/spring-boot/17662183542105430852.html

2023-03-13 19:18:02.700 [226026083223552-redis-cluster-2700] ERROR io.netty.util.HashedWheelTimer Line:472 - You are creating too many HashedWheelTimer instances. HashedWheelTimer is a shared resource that must be reused across the JVM, so that only a few instances are created.

@tomsun28 tomsun28 added enhancement New feature or request bugfix labels Mar 14, 2023
@tomsun28 tomsun28 merged commit 4b2a117 into master Mar 14, 2023
@tomsun28 tomsun28 deleted the bufix#redis branch March 14, 2023 07:52
tomsun28 added a commit that referenced this pull request Jan 16, 2024
* bugfix redis collector create too many instance

* bugfix redis collector create too many instance

* bugfix redis collector create too many instance
tomsun28 added a commit that referenced this pull request Mar 9, 2024
* bugfix redis collector create too many instance

* bugfix redis collector create too many instance

* bugfix redis collector create too many instance
tomsun28 added a commit that referenced this pull request Mar 9, 2024
* bugfix redis collector create too many instance

* bugfix redis collector create too many instance

* bugfix redis collector create too many instance
tomsun28 added a commit that referenced this pull request Mar 10, 2024
  bugfix redis collector create too many instance

  bugfix redis collector create too many instance

  bugfix redis collector create too many instance
tomsun28 added a commit that referenced this pull request Mar 10, 2024
  bugfix redis collector create too many instance

  bugfix redis collector create too many instance

  bugfix redis collector create too many instance
tomsun28 added a commit that referenced this pull request Mar 11, 2024
  bugfix redis collector create too many instance

  bugfix redis collector create too many instance

  bugfix redis collector create too many instance
tomsun28 added a commit that referenced this pull request Mar 11, 2024
  bugfix redis collector create too many instance

  bugfix redis collector create too many instance

  bugfix redis collector create too many instance
tomsun28 added a commit that referenced this pull request Mar 11, 2024
  bugfix redis collector create too many instance

  bugfix redis collector create too many instance

  bugfix redis collector create too many instance
tomsun28 added a commit that referenced this pull request Mar 11, 2024
  bugfix redis collector create too many instance

  bugfix redis collector create too many instance

  bugfix redis collector create too many instance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants