runzhiwang edited a comment on issue #611: [WIP]HDDS-3041. Fix the memory leak 
of s3g by releasing the connection resource
URL: https://github.com/apache/hadoop-ozone/pull/611#issuecomment-592508704
 
 
   @elek Hi, thank you for your reply.  Because you would check the code, so I 
want to share you some information I have found. If with this patch, s3g will 
occupy all the cpu, as the image shows the cpu cost of s3g increases to  2381% 
in the machine with 24 cores, it's horrible. When use jstack, I find a lot of 
threads are in the state:waiting to lock. And I also find the 1-3 seconds delay 
and 2381% cpu all are related to the code at 
https://github.com/apache/hadoop-ozone/blob/master/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientManager.java#L271,
 because if I comment this code, the delay and high cpu cost will disappear.  
Even though I close all the clients in a separated thread, the cpu cost is also 
2400% approximately. I will continue to find the root cause.
   
![image](https://user-images.githubusercontent.com/51938049/75551773-dfc01a80-5a6f-11ea-9be5-29f8c9acc64b.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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to