Setting JVM MetaspaceSize and MaxMetaspaceSize on JBoss EAP
Issue
- In JBoss EAP 7 and 8 there is the possibility to set
Permgenvalue with a default tag parameter even though there's no morePermgenfor Java 8 or later, butMetaspaceSizeorMaxMetaspaceSizedoes not exists by default. For example, see the below the CLI options that are available for thewrite-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.