ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/program/clspre.htm

56 lines
2.9 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>Class preloading</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="clspre"></a>Class preloading</h4>
<p>The first time a WebSphere Application Server process starts, the name of each run-time class loaded and the name of the JAR file containing the class are written to a preload file. The names of non-runtime classes such as custom services, resource classes such as db2_classes.jar, classes on the JVM classpath, and application classes are not written to the preload file. Subsequent startups of the process use the preload file to start the process more quickly because the runtime goes directly to the stored file to load a class rather than searching through the configured classloaders to locate the class.</p>
<p>Preload files have the extension .preload and are located in the <em>instance</em>/properties/preload directory, where <em>instance</em> is the name of your application server instance. The following WebSphere Application Server processes have preload files:</p>
<table cellpadding="2" cellspacing="2" border="1">
<tr>
<th>Process</th>
<th>Preload file name</th>
</tr>
<tr>
<td>Application server</td>
<td><em>cell_name</em>.<em>node_name</em>.<em>server_name</em>.preload</td>
</tr>
<tr>
<td>startserver</td>
<td>WsServerLauncher.preload</td>
</tr>
<tr>
<td>launchClient</td>
<td>launchClient.preload</td>
</tr>
</table>
<p>A server process uses a <em>cell_name</em>.<em>node_name</em>.<em>server_name</em>.preload file, where <em>cell_name</em> is the name of your WebSphere Application Server cell, <em>node_name</em> is the name of your application server node, and <em>server_name</em> is the name of your application server.</p>
<p>New classes required during startup of a process are added to the preload file. Any classes removed from a process are ignored during subsequent startups. Although it is not necessary, an administrator can delete the preload file and force a refresh that removes the ignored classes from the file.</p>
<p><strong>Enable and disable class preloading</strong></p>
<p>By default, class preloading is enabled. If you want to disable it, use the administrative console to specify a value of <tt>false</tt> for the ibm.websphere.preload.classes JVM custom property.</p>
<p>If you disable class preloading and later want to re-enable it, remove the ibm.websphere.preload.classes property for the JVM, or change the value of the property from <tt>false</tt> to <tt>true</tt>.
<p>For information on setting JVM properties with the administrative console, see <a href="../admin/acsjvmcust.htm">Set JVM custom properties</a> in <em>Administration</em>.</p>
</body>
</html>