How to flush Softreference to avoid Metaspace OOM?

178 Views Asked by At

I am facing Metaspace OOM in JDK. There are so many SoftRefence Custom ClassLoaders live which should have been flushed before Metaspace OOM, but not sure why it is not happening?

Is there any way to flush SoftReferences in JDK8 Metaspace?

0

There are 0 best solutions below