You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2022/09/15 13:53:17 UTC

[GitHub] [inlong] liangyepianzhou opened a new issue, #5907: [Improve][TubeMQ] Replace the while-sleep with ScheduledExecutorService in

liangyepianzhou opened a new issue, #5907:
URL: https://github.com/apache/inlong/issues/5907

   ### Description
   
   Java threads are implemented using kernel threads, and the sleep and wake-up (state switching) of threads need to be performed by the operating system, which is an extremely time-consuming and labor-intensive operation. In the scenario where the thread sleeps or runs for a long time, its impact on performance is not obvious, because the switching of thread state is not frequent. However, if the thread sleep and running time are very short (such as milliseconds/second), the system will frequently switch the thread state, resulting in serious performance loss and enlargement with the increase of the number of loops.
   
   We hope to replace the while-sleep with ScheduledExecutorService to execute the scheduled task in AbstractDaemonService::loopProcess.
   
   ### InLong Component
   
   InLong TubeMQ
   
   ### Are you willing to submit PR?
   
   - [X] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: dev-unsubscribe@inlong.apache.org.apache.org

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


[GitHub] [inlong] gosonzhang closed issue #5907: [Improve][TubeMQ] Replace the while-sleep with ScheduledExecutorService for tube server loopProcess

Posted by GitBox <gi...@apache.org>.
gosonzhang closed issue #5907: [Improve][TubeMQ] Replace the while-sleep with ScheduledExecutorService for tube server loopProcess
URL: https://github.com/apache/inlong/issues/5907


-- 
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: dev-unsubscribe@inlong.apache.org

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