You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/03/12 03:05:11 UTC

[GitHub] [incubator-brpc] lucky-you opened a new issue #1060: 如何修改brpc.server 的并发数

lucky-you opened a new issue #1060: 如何修改brpc.server 的并发数
URL: https://github.com/apache/incubator-brpc/issues/1060
 
 
   设置访问并发个数为100个,启动server 之后,运行程序,结果成功了68个,返回了32个异常信息。我想修改server 的并发连接数量,请问在哪里修改配置?
   
   下图是我捕获到的异常信息。
   ![图片](https://user-images.githubusercontent.com/22268878/76482976-bf6d6400-6450-11ea-96fe-8edd508376d7.png)
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] jamesge commented on issue #1060: 如何修改brpc.server 的并发数

Posted by GitBox <gi...@apache.org>.
jamesge commented on issue #1060: 如何修改brpc.server 的并发数
URL: https://github.com/apache/incubator-brpc/issues/1060#issuecomment-597987957
 
 
   请问打开-usercode_in_pthread的原因是?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] jamesge commented on issue #1060: 如何修改brpc.server 的并发数

Posted by GitBox <gi...@apache.org>.
jamesge commented on issue #1060: 如何修改brpc.server 的并发数
URL: https://github.com/apache/incubator-brpc/issues/1060#issuecomment-598012153
 
 
   -usercode_in_pthread只有在需要在整个检索流程中通过pthread local共享数据时才需要。如果无法关闭,可以调大ServerOptions.num_threads增加工作线程的数量,同时尽量避免阻塞,因为这种情况下阻塞就会阻塞整个工作线程。另外,你截图中的错误只是临时拒绝,压力下来了应该就ok了。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] lucky-you commented on issue #1060: 如何修改brpc.server 的并发数

Posted by GitBox <gi...@apache.org>.
lucky-you commented on issue #1060: 如何修改brpc.server 的并发数
URL: https://github.com/apache/incubator-brpc/issues/1060#issuecomment-598024504
 
 
   我也想通过调节server 的数量来增加工作线程数量,可我不是很清楚应该在哪里修改 ServerOptions.num_threads 的数量,请问一下如何修改ServerOptions.num_threads 的数量呢?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] lucky-you commented on issue #1060: 如何修改brpc.server 的并发数

Posted by GitBox <gi...@apache.org>.
lucky-you commented on issue #1060: 如何修改brpc.server 的并发数
URL: https://github.com/apache/incubator-brpc/issues/1060#issuecomment-597991921
 
 
   > 请问打开-usercode_in_pthread的原因是?
   
   项目里面默认是打开的,这个我没有改动过,可以关闭吗?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org