You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/07/23 08:29:09 UTC

[GitHub] [dubbo] ecyuan opened a new issue #8342: threadpool=cached can not recycle idle thread

ecyuan opened a new issue #8342:
URL: https://github.com/apache/dubbo/issues/8342


   ### Environment
   
   * Dubbo version: 2.7.5 / 2.7.12
   * Java version: JDK1.8
   
   ### my dubbo config
   ```
   dubbo.protocol.threads=5
   dubbo.protocol.corethreads=2
   dubbo.protocol.alive=15000
   dubbo.protocol.threadpool=cached
   ```
   
   I hope idle thread will be recycle after 15 seconds.
   ```
   Invoke some service, jstack java process show as follow, 5 thread idle:
   "Dubbo-thread-5" #108 daemon prio=5 os_prio=0 tid=0x0000000033e54000 nid=0x2410 waiting on condition [0x000000004761e000]
           at org.apache.dubbo.common.threadlocal.InternalRunnable.run(InternalRunnable.java:41)
   "Dubbo-thread-4" #107 daemon prio=5 os_prio=0 tid=0x0000000033e53800 nid=0x395c waiting on condition [0x000000004751f000]
           at org.apache.dubbo.common.threadlocal.InternalRunnable.run(InternalRunnable.java:41)
   "Dubbo-thread-3" #106 daemon prio=5 os_prio=0 tid=0x0000000033e51000 nid=0x3858 waiting on condition [0x000000004741e000]
           at org.apache.dubbo.common.threadlocal.InternalRunnable.run(InternalRunnable.java:41)
   "Dubbo-thread-2" #97 daemon prio=5 os_prio=0 tid=0x0000000033e4c800 nid=0x2210 waiting on condition [0x000000004637f000]
           at org.apache.dubbo.common.threadlocal.InternalRunnable.run(InternalRunnable.java:41)
   "Dubbo-thread-1" #96 daemon prio=5 os_prio=0 tid=0x0000000033e47800 nid=0x12e8 waiting on condition [0x000000004526e000]
   ```
   But after 15 seconds or more, these idle thread still alive, unexpectedly been recycled.
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] ecyuan edited a comment on issue #8342: threadpool=cached can not recycle idle thread

Posted by GitBox <gi...@apache.org>.
ecyuan edited a comment on issue #8342:
URL: https://github.com/apache/dubbo/issues/8342#issuecomment-886142404


   > Please check if the service is blocked.
   
   No! In fact there are no any more request. Maybe you can test in local host, it should be repeated again.
   
   
   Consider extending to use third-part thread pool component?


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] xiaoheng1 commented on issue #8342: threadpool=cached can not recycle idle thread

Posted by GitBox <gi...@apache.org>.
xiaoheng1 commented on issue #8342:
URL: https://github.com/apache/dubbo/issues/8342#issuecomment-886141649


   Please check if the service is blocked.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] ecyuan commented on issue #8342: threadpool=cached can not recycle idle thread

Posted by GitBox <gi...@apache.org>.
ecyuan commented on issue #8342:
URL: https://github.com/apache/dubbo/issues/8342#issuecomment-886142404


   > Please check if the service is blocked.
   
   No! In fact there are no any more request. Maybe you can test in local host, it should be repeated again.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org