-
1. Re: Jboss EAP 6.2 (Jboss 7.1.1) - how/where can be set -XX:-UseGCOverheadLimit ?
wdfink Apr 26, 2014 6:34 AM (in response to vladislav.rames)1 of 1 people found this helpfulI suppose you want to set the Java option for the server processes.
In this case you need to add it to the <jvm ...> configuration inside the domain.xml or host.xml.
See for example this doc Domain Setup - JBoss AS 7.1
The domain.conf is used for the start process i.e. domain/host/process controller, not for the server JVM
-
2. Re: Jboss EAP 6.2 (Jboss 7.1.1) - how/where can be set -XX:-UseGCOverheadLimit ?
vladislav.rames Apr 28, 2014 4:04 AM (in response to wdfink)Thank you for your post. You are right, I need to set Java option for server JVM.
I've found only settings "heap size" (~Xms), "heap max size" (~Xmx), "permgen size"
(~-XX:PermSize) and "max permgen size" (~-XX:MaxPermSize) in documentation
noticed above. How can I set generic JAVA_OPTS settings for JVM server, please?
----------------------------------------------------------
Update:
I've found it just now - it's jvm-options tag in host.xml or domain.xml,
it's described nicely for example in https://docs.newrelic.com/docs/java/jboss-installation-for-java#above-v6-domain.
So, in my case, I've used this in host.xml:
...
<servers>
<server name="server-be" group="server-group-be" auto-start="true">
<jvm name="jvm-be">
<heap size="1024m" max-size="1024m"/>
<permgen size="256m" max-size="384m"/>
<jvm-options>
<option value="-XX:-UseGCOverheadLimit"/>
</jvm-options>
</jvm>
</server>
...
It seems it wors properly. Hopefully it can be usefull for somebody.