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

处理com.rop.event.AfterDoServiceEvent事件发生异常 #17

Open
hmilvu opened this issue Jul 24, 2014 · 0 comments
Open

处理com.rop.event.AfterDoServiceEvent事件发生异常 #17

hmilvu opened this issue Jul 24, 2014 · 0 comments

Comments

@hmilvu
Copy link

hmilvu commented Jul 24, 2014

在做压力测试的时候,并发量为100的时候,后台收到了下面的异常,不知道如何处理。感觉是我的连接池参数配置的问题,请指教。谢谢

这个是我在Rop里的配置:
core-pool-size="200"
max-pool-size="500"
queue-capacity="10"
keep-alive-seconds="30"
sign-enable="true"

我的数据库最大连接数是50。

2014.07.24 17:19:33 [org.springframework.scheduling.concurrent.ThreadPoolExecutorFactoryBean#0-461] ERROR [com.rop.event.SimpleRopEventMulticaster] - 处理com.rop.event.AfterDoServiceEvent事件发生异常
java.util.concurrent.RejectedExecutionException: Task com.rop.event.SimpleRopEventMulticaster$1@71e818ae rejected from java.util.concurrent.ThreadPoolExecutor@40999a27[Running, pool size = 499, active threads = 47, queued tasks = 10, completed tasks = 10760]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
at com.rop.event.SimpleRopEventMulticaster.multicastEvent(SimpleRopEventMulticaster.java:32)
at com.rop.impl.AnnotationServletServiceRouter.fireAfterDoServiceEvent(AnnotationServletServiceRouter.java:437)
at com.rop.impl.AnnotationServletServiceRouter.access$1000(AnnotationServletServiceRouter.java:40)
at com.rop.impl.AnnotationServletServiceRouter$ServiceRunnable.run(AnnotationServletServiceRouter.java:374)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant