Discussion:
[jboss-user] [Performance Tuning] - How to confirm JVM Settings
Santy Avinash
2013-08-21 06:49:49 UTC
Permalink
Santy Avinash [https://community.jboss.org/people/pandes3] created the discussion

"How to confirm JVM Settings"

To view the discussion, visit: https://community.jboss.org/message/833306#833306

--------------------------------------------------------------
Hi,

Needed some help here (Jboss AS 7.1, RHEL 6)

I have updated the java options in standalone.conf file

JAVA_OPTS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m -XX:ThreadStackSize=128"

restarted the Jboss

Now need to confirm the settings have effecctively updated, I run the following command "java -XshowSettings:all" , below is the output


VM settings:
    Stack Size: 1.00M
    Max. Heap Size (Estimated): 1.71G
    Ergonomics Machine Class: server
    Using VM: Java HotSpot(TM) 64-Bit Server VM

The stack size still it is showin as 1 MB and heap size as 1.71 G.

why the settings have not been updated ? Am I looking at right place (java -XshowSettings:all) ?

Help will be most appreciated

Regards

Avinash
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/833306#833306]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Radoslav Husar
2013-08-21 08:08:36 UTC
Permalink
Radoslav Husar [https://community.jboss.org/people/rhusar] created the discussion

"Re: How to confirm JVM Settings"

To view the discussion, visit: https://community.jboss.org/message/833318#833318

--------------------------------------------------------------
No, you are not.

java -XshowSettings:all will start a new process and output infomation about that process. You would need to add that to JAVA_OPTS to be helpful. It will print out settings when you server starts.

But I usually just look at what the process has been started with:

[***@rhusar wildfly-8.0.0.Beta1-SNAPSHOT]$ ps xafu | grep java
rhusar   17974  147  2.5 3181648 204168 pts/3  Sl+  10:05   0:07  |       \_ /usr/java/latest/bin/java -D[Standalone] -server -XX:+UseCompressedOops -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/home/rhusar/as/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/standalone/log/server.log -Dlogging.configuration=file:/home/rhusar/as/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/standalone/configuration/logging.properties -jar /home/rhusar/as/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/jboss-modules.jar -mp /home/rhusar/as/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/modules org.jboss.as.standalone -Djboss.home.dir=/home/rhusar/as/build/target/wildfly-8.0.0.Beta1-SNAPSHOT -Djboss.server.base.dir=/home/rhusar/as/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/standalone -c standalone-ha.xml


...and I see the options kicked in.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/833318#833318]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Peter Johnson
2013-08-21 14:24:22 UTC
Permalink
Peter Johnson [https://community.jboss.org/people/peterj] created the discussion

"Re: How to confirm JVM Settings"

To view the discussion, visit: https://community.jboss.org/message/833411#833411

--------------------------------------------------------------
And if you are using Windows and running Vista or a later version, you can find the command line in Task Manager on the Processes/Details tab (though you have to add the Command Line column). But that column has a limited lneght so not all of the ocmmand line will show; in that case get Process Explorer from systinternals, it will show you the complete command line.

Also, another way to check the settings is to run JVisualVM and connect to the java process. JVisualVM will show you all of the settings.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/833411#833411]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Loading...