https://kotlinlang.org logo
Title
t

theapache64

02/11/2021, 5:12 PM
I am getting
java.lang.OutOfMemoryError: Metaspace
after spending sometime in the IDE. Here's the full stacktrace. Is this expected? Any workaround for this?
NOTE: Restarting the IDE will fix it. but why is this happening and how can I fix it ?
s

suresh

02/11/2021, 11:01 PM
Applications with heavy class loading and unloading activity can cause this. You can tune this value using
MaxMetaspaceSize
or upgrade to JDK 16, which has new
elastic metaspace
feature (https://openjdk.java.net/jeps/387).