]
Brian Stansberry updated AS7-4447:
----------------------------------
Fix Version/s: 7.1.2.Final-redhat1
Operations add-jvm-option and remove-jvm-option don't work in a
reasonable way
------------------------------------------------------------------------------
Key: AS7-4447
URL:
https://issues.jboss.org/browse/AS7-4447
Project: Application Server 7
Issue Type: Bug
Components: Domain Management
Affects Versions: 7.1.1.Final
Reporter: Michael Voegele
Assignee: Brian Stansberry
Labels: cli, dmr, jvm-options
Fix For: 7.1.2.Final-redhat1
The following operation (cli/dmr) can be executed many times.
{code:xml}
:add-jvm-option(jvm-option=-Xdebug)
{code}
The result will be:
{code:xml}
[domain@localhost:10099 jvm=default] :read-resource
{
"outcome" => "success",
"result" => {
"agent-lib" => undefined,
"agent-path" => undefined,
"env-classpath-ignored" => undefined,
"environment-variables" => undefined,
"heap-size" => "384m",
"java-agent" => undefined,
"java-home" => "C:/eplatform/java/jdk1.6.0",
"jvm-options" => [
"-Xdebug",
"-Xdebug",
"-Xdebug",
"-Xdebug",
"-Xdebug"
],
"max-heap-size" => "512m",
"max-permgen-size" => "128m",
"permgen-size" => "64m",
"stack-size" => "512k",
"type" => undefined
}
}
{code}
The same string (jvm-option) can be added several times, this should not be possible.
When removing a jvm-option, all jvm-options are removed:
{code:xml}
:remove-jvm-option(jvm-option=foo)
{code}
results in:
{code:xml}
[domain@localhost:10099 jvm=default] :remove-jvm-option(jvm-option=foo)
{
"outcome" => "success",
"result" => undefined,
"server-groups" => undefined
}
[domain@localhost:10099 jvm=default] :read-resource
{
"outcome" => "success",
"result" => {
"agent-lib" => undefined,
"agent-path" => undefined,
"env-classpath-ignored" => undefined,
"environment-variables" => undefined,
"heap-size" => "384m",
"java-agent" => undefined,
"java-home" => "C:/eplatform/java/jdk1.6.0",
"jvm-options" => [],
"max-heap-size" => "512m",
"max-permgen-size" => "128m",
"permgen-size" => "64m",
"stack-size" => "512k",
"type" => undefined
}
}
{code}
...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: