tianshuang commented on PR #36741:
URL: https://github.com/apache/spark/pull/36741#issuecomment-1170214998

   > Can't we just use a SoftReferenceMap or something ? is the leak just 
holding onto entries in that Map?
   
   In fact, the leak 
map([pmCache](https://github.com/datanucleus/datanucleus-api-jdo/blob/master/src/main/java/org/datanucleus/api/jdo/JDOPersistenceManagerFactory.java#L128))
 caused by this problem belongs to 
[datanucleus-api-jdo](https://github.com/datanucleus/datanucleus-api-jdo), 
which is only a library that Spark depends on, and we should not modify its 
code because the problem is caused by the `IsolatedClassLoader` in Spark. The 
leak caused the memory to grow slowly and finally the STS SQL execution was 
very slow (continuous GC).


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to