Apply JVM Settings to a Server Group

Posted on

Hi
I am using JBoss version 7.4.3 in a lab environment. I have configured a domain-type installation, with a jboss master server and jboss slave server.

I am using the Jboss command-line (jboss-cli.sh), connecting into the server.

What I want to do is change the jvm configuration so that the 'main-server-group' uses a jvm with name 'jvm1'. I have added the jvm and it shows in the host.xml for the master as:

I also have the following entries in the domain.xml:

So inside the command-line I issue the following command:
[domain@localhost:9990 /] /server-group=main-server-group/jvm=jvm1:add
{
"outcome" => "success",
"result" => undefined,
"server-groups" => {"main-server-group" => {"host" => {"master" => {
"server-one" => {"response" => {
"outcome" => "success",
"response-headers" => {
"operation-requires-restart" => true,
"process-state" => "restart-required"
}
}},
"server-two" => {"response" => {
"outcome" => "success",
"response-headers" => {
"operation-requires-restart" => true,
"process-state" => "restart-required"
}
}}
}}}}
}

When I check the domain.xml file (and the host.xml for good measure) the settings for the server-group 'main-server-group' does not update to jvm1, it stays as 'default'.

However, if I use the console I can add the jvm1 configuration to the main-server-group, and it is reflected in the domain.xml.

Therefore, my question is two-fold:
1. Can the jvm configuration be changed using the command-line ?
2. Am I using the correct syntax?

Thanks