OutOfMemory: Metaspace

0
Hi all,    We are seeing out of memory metaspace errors in the log, causing the application to cycle to avoid a crash.    I am attempting to troubleshoot but don't have access to any of the JVM tools like APM/APD.    I understand the metaspace to be renamed from permanent generation space, which holds the java classes that are loaded. I am also aware we can ask support to increase this.   I am aware I can ask support for a heap dump but I nor sure if this includes metaspace or not.    I want to ask if anyone had come across this before, how I can go about troublehooting it.    Any other advise would be helpful, thank you 
asked
1 answers
0

Try this steps : 

 

  1. Go to your application in the Developer Portal
  2. Open environments
  3. Select the details of the environment you want to edit
  4. Select Runtime tab
  5. Add Custom Environment Variables (bottom area)
  6. Select Unsupported and enter MAX_METASPACE_SIZE
  7. Enter new Metaspace valueEnter the value of metaspace in MB, followed by an “M“.For example, if you desire a MAX_METASPACE_SIZE of 320MB, you enter 320M
  8. Press Save
  9. Note, the new variable will only take effect when you restart your application.
answered