Setting JVM MetaspaceSize and MaxMetaspaceSize on JBoss EAP

Solution Verified - Updated -

Issue

  • In JBoss EAP 7 and 8 there is the possibility to set Permgen value with a default tag parameter even though there's no more Permgen for Java 8 or later, but MetaspaceSize or MaxMetaspaceSize does not exists by default. For example, see the below the CLI options that are available for the write-attribute:
[domain@localhost:9990 /] /server-group=main-server-group/jvm=default:write-attribute(name=

agent-lib
agent-path             
env-classpath-ignored                
environment-variables  
heap-size              
java-agent             
java-home              
jvm-options            
launch-command         
max-heap-size          
max-permgen-size       
module-options         
permgen-size           
stack-size             
type 
  • Need to configure JVM Metaspace in a JBoss EAP managed domain when no dedicated Metaspace field exists.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
    • 8.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content