xuyicheng1995 commented on issue #4475:
URL: https://github.com/apache/shenyu/issues/4475#issuecomment-1471175841

   > Caffeine won't catch OutOfMemoryError in order to suppress and evict 
entries. When that error is thrown the JVM is left in an unpredictable state, 
which may not be recoverable. It is best to use -XX:+ExitOnOutOfMemoryError and 
-XX:+HeapDumpOnOutOfMemoryError to restart and investigate the memory leak 
offline.
   > 
   > At first it might seem beneficial to defer all of the available memory to 
the caches and let the garbage collector evict when needed. This is the idea 
behind soft references. Unfortunately, that approach has been troublesome due 
to making full GCs more frequent and increasing their stop-the-world pause 
times. We instead recommend using an explicit maximum size, where the policy is 
quite intelligent. If you want large caches then usually a remote tier, like 
memcached or redis, is a good compliment so you get the speed of local access 
and a lower miss penalty on cache loads.
   > 
   > pls refer 
to:https://stackoverflow.com/questions/71401507/what-happens-when-caffeine-runs-out-of-memory
   
   sry, i think your reply has no relation with the question.


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