I am getting `java.lang.OutOfMemoryError: Metaspac...
# compose-desktop
t
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
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).