Skip to content

线程池限制下的错误解决方案RejectedExecutionException #11

@jemygraw

Description

@jemygraw
Exception in thread "Thread-1" java.util.concurrent.RejectedExecutionException: Task com.qiniu.appender.QiniuLoggingGuard$3@5c499319 rejected from java.util.concurrent.ThreadPoolExecutor@4f352d43[Running, pool size = 10, active threads = 10, queued tasks = 0, completed tasks = 0]
	at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
	at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)
	at com.qiniu.appender.QiniuLoggingGuard.pushLogs(QiniuLoggingGuard.java:100)
	at com.qiniu.appender.QiniuLoggingGuard.access$100(QiniuLoggingGuard.java:15)
	at com.qiniu.appender.QiniuLoggingGuard$2.run(QiniuLoggingGuard.java:58)
	at java.lang.Thread.run(Thread.java:748)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions