You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/02/08 08:37:14 UTC

[GitHub] [rocketmq] shuangchengsun opened a new issue #3827: Improve Performance of Transactional Message

shuangchengsun opened a new issue #3827:
URL: https://github.com/apache/rocketmq/issues/3827


   Recently, we conducted a stress test on transaction messages, but found that the performance of transaction messages was significantly lower than the previous version. After our analysis, we found that this phenomenon was caused by a bug in jdk.
   ![image](https://user-images.githubusercontent.com/33629004/152945487-304c4ca6-001e-49f7-9a68-78b563ada473.png)
   As we can see, This method consumes a lot of time, which is obviously unreasonable. With further investigation, it turns out that this is a bug in JDK-8(https://bugs.openjdk.java.net/browse/JDK-8227019), which has been fixed in subsequent versions. Unfortunately, this bug still alive in jdk 1.8.0_202.
   
   The root cause in code as figure show. An easy way to fix it is to use timeout parameter, which can improve 50%
   ![image](https://user-images.githubusercontent.com/33629004/152948229-5534df54-e8a0-4da1-8e2b-fcdf1721caea.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.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

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



[GitHub] [rocketmq] shuangchengsun commented on issue #3827: Improve Performance of Transactional Message

Posted by GitBox <gi...@apache.org>.
shuangchengsun commented on issue #3827:
URL: https://github.com/apache/rocketmq/issues/3827#issuecomment-1032443310


   old profile
   ![image](https://user-images.githubusercontent.com/33629004/152953564-5af592e0-98f8-41e6-9ea4-fade304e0271.png)
   
   
   
   
   
   new profile
   ![image](https://user-images.githubusercontent.com/33629004/152953248-0d003ba7-d38e-4627-8494-607f7778fbf4.png)
   
   
   benchmark result as below. (command: sh tproducer.sh -n xxx.xxx.xxx.xxx:9876 -s 128 -w 64 -sr 0 -su 0 -cu 0 -cr 0 -i 0)
   old
   ![image](https://user-images.githubusercontent.com/33629004/152965364-1337677d-0453-4367-bcab-6e9b8682fadc.png)
   
   new 
   ![image](https://user-images.githubusercontent.com/33629004/152967124-d1d3694b-3d11-4304-bd84-18c7eb4ea5c3.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.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

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



[GitHub] [rocketmq] areyouok closed issue #3827: Improve Performance of Transactional Message and Delay Message Scheduling

Posted by GitBox <gi...@apache.org>.
areyouok closed issue #3827:
URL: https://github.com/apache/rocketmq/issues/3827


   


-- 
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@rocketmq.apache.org

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