You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/06/21 10:20:17 UTC

[GitHub] [skywalking] SummerOfServenteen commented on issue #2926: java.lang.OutOfMemoryError: Java heap space

SummerOfServenteen commented on issue #2926: java.lang.OutOfMemoryError: Java heap space
URL: https://github.com/apache/skywalking/issues/2926#issuecomment-504375030
 
 
   hello.When we use skyWalking ,it cause Java heap space怂after analyze the dump file ,we find it's conflict with Sentinel. 
   Here is the detail.
   
   ![image](https://user-images.githubusercontent.com/31895647/59915229-bb2a9200-944e-11e9-945b-7c0fb19c6e0e.png)
   ![image](https://user-images.githubusercontent.com/31895647/59915288-dac1ba80-944e-11e9-8ba3-845a6d6b7322.png)
   ![image](https://user-images.githubusercontent.com/31895647/59915318-edd48a80-944e-11e9-9dbd-d19f2bdcf66b.png)
   ![image](https://user-images.githubusercontent.com/31895647/59915331-f62cc580-944e-11e9-81a0-724721955ffb.png)
   Finally,i find it's method of org.apache.skywalking.apm.agent.core.context.util.ThrowableTransformer.convert2String that cause outOfMemory .
   
   Code analyzing...
   ![image](https://user-images.githubusercontent.com/31895647/59915716-e3ff5700-944f-11e9-8ed0-da89195e24b1.png)
   ![image](https://user-images.githubusercontent.com/31895647/59915738-ee215580-944f-11e9-8792-d7d0639e7e77.png)
   
   Because of Sentinel had overWrite the method of  fillInStackTrace(),so the stackTrace of size is 0,
   the return value of printStackElement is always false.Then the method of convert2String is in Infinite loop.
   
   My idea is rewrite the method of printStackElement like this :
   ![image](https://user-images.githubusercontent.com/31895647/59916195-15c4ed80-9451-11e9-977e-98be9975a40e.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:
users@infra.apache.org


With regards,
Apache Git Services