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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to