91 lines
4.1 KiB
HTML
91 lines
4.1 KiB
HTML
<!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>"bootClasspath String*"
|
|
"classpath String*"
|
|
"debugArgs String"
|
|
"debugMode Boolean"
|
|
"disableJIT Boolean"
|
|
"executableJarFileName String"
|
|
"genericJvmArguments String"
|
|
"hprofArguments String"
|
|
"initialHeapSize Integer"
|
|
"maximumHeapSize Integer"
|
|
"osName String"
|
|
"runHProf Boolean"
|
|
"systemProperties Property(TypedProperty)*"
|
|
"verboseModeClass Boolean"
|
|
"verboseModeGarbageCollection Boolean"
|
|
"verboseModeJNI Boolean"</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 "-Djava.compiler=NONE
|
|
-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777"}}</pre></li>
|
|
|
|
<li><p>Run this command to save your changes:</p>
|
|
<pre>$AdminConfig save</pre></li>
|
|
</ol>
|
|
|
|
</body>
|
|
</html>
|