runzhiwang opened a new pull request #1186:
URL: https://github.com/apache/hadoop-ozone/pull/1186


   ## What changes were proposed in this pull request?
   
   **What's the problem ?**
   This PR is related to HDDS-3933. Fix memory leak because of too many 
Datanode State Machine Thread.
   When memory leak, Datanode most time generates core.pid because it crash in 
Rocksdb when create new thread, as the image shows, and generates crash log 
rarely.
   
![image](https://user-images.githubusercontent.com/51938049/87117625-97c9c380-c2ab-11ea-96e2-58c197cb6275.png)
   
   But because the default value of `core file size` if zero, so core.pid can 
not be generated. So when Datanode crash in Rocksdb, we can not get any 
information about why it crashed. 
   
   **How to fix ?**
   Set `ulimit -c unlimited` to enable core dump when crash in RocksDB.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-3941
   
   ## How was this patch tested?
   
   Existed UT.
   


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



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