[Performance Tuning] - Re: How to confirm JVM Settings

Radoslav Husar <[email protected]> Wed, 21 Aug 2013 04:08:36 -0400
Newsgroups gmane.comp.java.jboss.user
Message-ID <[email protected]>
------=_Part_628303_645341584.1377072516544
Content-Type: multipart/alternative; 
	boundary="----=_Part_628302_1889164697.1377072516544"

------=_Part_628302_1889164697.1377072516544
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Radoslav Husar [https://community.jboss.org/people/rhusar] created the disc=
ussion

"Re: How to confirm JVM Settings"

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

--------------------------------------------------------------
No, you are not.=20

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

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

[rhusar@rhusar wildfly-8.0.0.Beta1-SNAPSHOT]$ ps xafu | grep java
rhusar=C2=A0=C2=A0 17974=C2=A0 147=C2=A0 2.5 3181648 204168 pts/3=C2=A0 Sl+=
=C2=A0 10:05=C2=A0=C2=A0 0:07=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \=
_ /usr/java/latest/bin/java -D[Standalone] -server -XX:+UseCompressedOops -=
Xms64m -Xmx512m -XX:MaxPermSize=3D256m -Djava.net.preferIPv4Stack=3Dtrue -D=
jboss.modules.system.pkgs=3Dorg.jboss.byteman -Djava.awt.headless=3Dtrue -D=
org.jboss.boot.log.file=3D/home/rhusar/as/build/target/wildfly-8.0.0.Beta1-=
SNAPSHOT/standalone/log/server.log -Dlogging.configuration=3Dfile:/home/rhu=
sar/as/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/standalone/configuration/l=
ogging.properties -jar /home/rhusar/as/build/target/wildfly-8.0.0.Beta1-SNA=
PSHOT/jboss-modules.jar -mp /home/rhusar/as/build/target/wildfly-8.0.0.Beta=
1-SNAPSHOT/modules org.jboss.as.standalone -Djboss.home.dir=3D/home/rhusar/=
as/build/target/wildfly-8.0.0.Beta1-SNAPSHOT -Djboss.server.base.dir=3D/hom=
e/rhusar/as/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/standalone -c standal=
one-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=3D1&co=
ntainerType=3D14&container=3D2078]


------=_Part_628302_1889164697.1377072516544
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
	<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
		<tbody>
			<tr>

				<td>

					<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
						<tbody>
							<tr>
								<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
									<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
									<!-- To have a header image/logo replace the name below with your img tag -->
									<!-- Email clients will render the images when the message is read so any image -->
									<!-- must be made available on a public server, so that all recipients can load the image. -->
									<a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
								</td>

							</tr>
							<tr>
								<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: How to confirm JVM Settings
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/rhusar">Radoslav Husar</a> in <i>Performance Tuning</i> - <a href="https://community.jboss.org/message/833318#833318">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>No, you are not. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: 'courier new', courier;">java -XshowSettings:all </span>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But I usually just look at what the process has been started with:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">[rhusar@rhusar wildfly-8.0.0.Beta1-SNAPSHOT]$ ps xafu | grep java
rhusar&#160;&#160; 17974&#160; 147&#160; 2.5 3181648 204168 pts/3&#160; Sl+&#160; 10:05&#160;&#160; 0:07&#160; |&#160;&#160;&#160;&#160;&#160;&#160; \_ /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=/h
 ome/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
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>...and I see the options kicked in.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/833318#833318">going to Community</a></p>
	<p style="margin: 0;">Start a new discussion in Performance Tuning at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>
------=_Part_628302_1889164697.1377072516544--

------=_Part_628303_645341584.1377072516544
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user
------=_Part_628303_645341584.1377072516544--