在做压力测试的时候,并发量为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
在做压力测试的时候,并发量为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