NutzCN Logo
问答 dubbo Pool Size: 200怎么设置更大一点?
发布于 2243天前 作者 wx_3un8gefq8c8pul4do54f 4596 次浏览 复制 上一个帖子 下一个帖子
标签:
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method getCoinMarket in the service cn.wizzer.app.robot.modules.services.RobotAPIService. Tried 3 times of the providers [192.168.31.42:14011] (1/1) from the registry 192.168.31.42:2181 on the consumer 192.168.31.42 using the dubbo version 5.0.1-SNAPSHOT. Last error is: Failed to invoke remote method: getCoinMarket, provider: dubbo://192.168.31.42:14011/cn.wizzer.app.robot.modules.services.RobotAPIService?anyhost=true&application=wk-nb-dubbo-krobot&check=false&dubbo=5.0.1-SNAPSHOT&generic=false&interface=cn.wizzer.app.robot.modules.services.RobotAPIService&methods=getUserCoinWallet,getEntrustStatusForHis,getEntrustStatus,getTradeList,getPriceForRedis,checkUserLoginForLogin,getFullDepth,checkUserLogin,buyCoinSubmitForSimulate,getCoinMarket,getPrice,buyCoinSubmit,sellCoinSubmitForSimulate,sellCoinSubmit,getUserEntrust,cancelEntrust,getUserEntrustHis,cancelEntrustForSimulate,getPriceForSimulate,getKline&payload=115570500&pid=13318&register.ip=192.168.31.42&remote.timestamp=1537501526561&revision=5.0.1-SNAPSHOT&side=consumer&timeout=3000000&timestamp=1537501535188, cause: Server side(192.168.31.42,14011) threadpool is exhausted ,detail msg:Thread pool is EXHAUSTED! Thread Name: DubboServerHandler-192.168.31.42:14011, Pool Size: 200 (active: 200, core: 200, max: 200, largest: 200), Task: 3888854 (completed: 3888654), Executor status:(isShutdown:false, isTerminated:false, isTerminating:false), in dubbo://192.168.31.42:14011!
	at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:102)
	at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:238)
	at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75)
	at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
	at com.alibaba.dubbo.common.bytecode.proxy0.getCoinMarket(proxy0.java)
	at cn.wizzer.app.krobot.modules.services.impl.FrontLineServiceImpl.startPlan(FrontLineServiceImpl.java:358)
	at cn.wizzer.app.krobot.modules.services.impl.FrontLineServiceImpl.startRobot(FrontLineServiceImpl.java:752)
	at cn.wizzer.app.krobot.modules.services.impl.RobotThread.run(FrontLineServiceImpl.java:891)
Caused by: com.alibaba.dubbo.remoting.RemotingException: Server side(192.168.31.42,14011) threadpool is exhausted ,detail msg:Thread pool is EXHAUSTED! Thread Name: DubboServerHandler-192.168.31.42:14011, Pool Size: 200 (active: 200, core: 200, max: 200, largest: 200), Task: 3888854 (completed: 3888654), Executor status:(isShutdown:false, isTerminated:false, isTerminating:false), in dubbo://192.168.31.42:14011!
	at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.returnFromResponse(DefaultFuture.java:222)
	at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:139)
	at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:112)
	at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:95)
	at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:148)
	at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:77)
	at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75)
	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
	at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:54)
	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
	at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48)
	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
	at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56)
	at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:78)
	... 7 more
2 回复
// 设成一样大,减少线程池收缩开销
dubbo.service.min.thread.pool.size=500
dubbo.service.max.thread.pool.size=500

但一般不会超的呀, 有业务方法耗时很久??

添加回复
请先登陆
回到顶部