ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/admin/appsvrjvm.htm

91 lines
4.1 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Administer Java virtual machine settings</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="appsvrjvm"></a>Administer Java virtual machine settings</h4>
<p>The Java virtual machine settings for your application server specify Java virtual machine system properties that your applications use.</p>
<p>You can use the administrative console and wsadmin to configure Java virtual machine settings.</p>
<ul>
<li><a href="#acjvm">Use the administrative console to administer Java virtual machine settings</a></li>
<li><a href="#wsajvm">Use wsadmin to administer Java virtual machine settings</a></li>
</ul>
<p><strong><a name="acjvm">Use the administrative console to administer Java virtual machine settings</a></strong></p>
<p>To administer Java virtual machine settings with the administrative console, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the administrative console</a>.</li>
<li>Expand <strong>Servers</strong> and click <strong>Application Servers</strong>.</li>
<li>Click the name of your application server.</li>
<li>On the application server's page, click <strong>Process Definition</strong>.</li>
<li>On the Process Definition page, click <strong>Java Virtual Machine</strong>.</li>
<li>Configure settings for the Java virtual machine.</li>
<li>Click <strong>Apply</strong> or <strong>OK</strong>.</li>
<li><a href="acsave.htm">Save the application server configuration</a>.</li>
</ol>
<p><strong><a name="wsajvm">Use wsadmin to administer Java virtual machine settings</a></strong></p>
<p>To administer Java virtual machine settings with wsadmin, follow these steps:</p>
<ol>
<li><p>On the CL command line, run the STRQSH (Start Qshell) command.</p></li>
<li><p>Run the cd command to change to the directory that contains the wsadmin tool:</p>
<pre>cd /QIBM/ProdData/WebASE/ASE5/bin</pre></li>
<li><p><a href="wsarun.htm#start">Start wsadmin</a>.</p></li>
<li><p>At the wsadmin prompt, run this command to identify the application server and assign it to the server variable:</p>
<pre>set server [$AdminConfig getid
/Cell:<em>myCell</em>/Node:<em>myNode</em>/Server:<em>myAppSvr</em>/]</pre>
<p>where <em>myCell</em> is the name of the cell that contains your application server, <em>myNode</em> is the name of the node that contains your application server, and <em>myAppSvr</em> is the name of your application server.</p>
<p><strong>Note:</strong> This command has been wrapped for display purposes.</p></li>
<li><p>Run this command to identify the Java virtual machine for your application server and assign it to the jvm variable:</p>
<pre>set jvm [$AdminConfig list JavaVirtualMachine $server]</pre></li>
<li><p>Use the attributes command to display a list of the attributes that you can set for the Java virtual machine:</p>
<pre>$AdminConfig attributes JavaVirtualMachine</pre>
<p>The command displays this output:</p>
<pre>&quot;bootClasspath String*&quot;
&quot;classpath String*&quot;
&quot;debugArgs String&quot;
&quot;debugMode Boolean&quot;
&quot;disableJIT Boolean&quot;
&quot;executableJarFileName String&quot;
&quot;genericJvmArguments String&quot;
&quot;hprofArguments String&quot;
&quot;initialHeapSize Integer&quot;
&quot;maximumHeapSize Integer&quot;
&quot;osName String&quot;
&quot;runHProf Boolean&quot;
&quot;systemProperties Property(TypedProperty)*&quot;
&quot;verboseModeClass Boolean&quot;
&quot;verboseModeGarbageCollection Boolean&quot;
&quot;verboseModeJNI Boolean&quot;</pre></li>
<li><p>Modify the Java virtual machine attributes. For example, to turn on debugging, run this command:</p>
<pre>$AdminConfig modify $jvm {{debugMode true} {debugArgs &quot;-Djava.compiler=NONE
-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777&quot;}}</pre></li>
<li><p>Run this command to save your changes:</p>
<pre>$AdminConfig save</pre></li>
</ol>
</body>
</html>