36 lines
2.3 KiB
HTML
36 lines
2.3 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>Performance tips for wsadmin</title>
|
|
</head>
|
|
|
|
<BODY>
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
<h4><a name="prftunewsa"></a>Performance tips for wsadmin</h4>
|
|
|
|
<ul>
|
|
<li><p>When you run a command from wsadmin, a new process is created with a new Java virtual machine (JVM). If you run multiple wsadmin -c commands from a batch file or a shell script, each command must run in its own JVM. The -f option creates only one process and JVM, and the Java classes are loaded only once, regardless of how many commands are in the file.</p>
|
|
<p>This example invokes multiple application installation commands:</p>
|
|
<pre>wsadmin -c "$AdminApp install /home/myApps/App1.ear {-appname appl1}"
|
|
wsadmin -c "$AdminApp install /home/myApps/App2.ear {-appname appl2}"
|
|
wsadmin -c "$AdminApp install /home/myApps/App3.ear {-appname appl3}"</pre>
|
|
<p>To improve performance, you can run the wsadmin command with the -f option and specify a file that contains the installation commands. For example, you can create a file called appinst.jacl that contains these commands:</p>
|
|
<pre>$AdminApp install /home/myApps/App1.ear {-appname appl1}
|
|
$AdminApp install /home/myApps/App2.ear {-appname appl2}
|
|
$AdminApp install /home/myApps/App3.ear {-appname appl3}</pre>
|
|
<p>To invoke the file, run this command:</p>
|
|
<pre>wsadmin -f appinst.jacl</pre></li>
|
|
|
|
<li><p>The AdminControl queryNames and completeObjectName commands can consume a large amount of resources in more complex topologies. For example, if you run a single instance that contains only a few MBeans, the <tt>$AdminControl queryNames *</tt> command performs well. However, if a scripting client connects to the deployment manager in a multiple machine environment, use a command only if it is necessary for the script to obtain a list of all of the MBeans in the system. If you need the MBeans on a specific node, it is recommended that you run the command as follows:</p>
|
|
<pre>$AdminControl queryNames node=myNode,*</pre>
|
|
<p>In this example, the command returns a list of only the MBeans on myNode.<p></li>
|
|
</ul>
|
|
|
|
</body>
|
|
</html>
|