AvoidingDirectories in the Classpath
Forcertain applications (especially if the Java Security Manager is enabled) you can improve
performanceby ensuring that there are no unneeded directories in the classpath. To do so,
changethe Server Class Path, Class Path Prex, and Class Path Sux elds on the
conguration'sJava tab General sub tab for the conguration or use the command wadm
set-jvm-prop.Also, package the web application's .class les in a .jar archive in
WEB-INF/libinstead of packaging the .class les as is in WEB-INF/classes, and ensure that
the.war archive does not contain a WEB-INF/classes directory.
Conguringthe Web Application’sSession Settings
Ifyou have relatively short-lived sessions, try decreasing the session timeout by conguring the
valueof the timeOutSeconds property under the session-properties element in
sun-web.xmlfrom the default value of 10 minutes.
Ifyou have relatively long-lived sessions, you can try decreasing the frequency at which the
sessionreaper runs by increasing the value of the reapIntervalSeconds property from the
defaultvalue of once every minute.
Formore information about these settings, and about session managers, see Sun Java System
WebServer 7.0 Update 1 Developer’s Guide to JavaWeb Applications.
Inmulti-process mode when the persistence-type in sun-web.xml is congured to be either
s1ws60or mmap, the session manager uses cross-process locks to ensure session data integrity.
Thesecan be congured to improve performance as described below.
Note– For Java technology-enabled servers, multi-process mode is deprecated and included for
backward-compatibilityonly.

TuningmaxLocks (UNIX/Linux)

Theimplication of the number specied in the maxLocks property can be gauged by dividing
thevalue of maxSessions with maxLocks. For example, if maxSessions = 1000 and you set
maxLocks= 10, then approximately 100 sessions (1000/10) contend for the same lock.
IncreasingmaxLocks reduces the number of sessions that contend for the same lock and might
improveperformance and reduce latency. However, increasing the number of locks also
increasesthe number of open le descriptors, and reduces the number of available descriptors
thatwould otherwise be assigned to incoming connection requests.
Formore information about these settings, see Chapter 6, “Session Managers,”in Sun Java
SystemWeb Server 7.0 Update 1 Developer’s Guide to JavaWeb Applications.
TuningJavaWeb Application Performance
SunJavaSystem Web Server 7.0 Update 1 Performance Tuning,Sizing, and Scaling Guide 80