Sun Java System Communications Express 6 2005Q1 Administration Guide |
Chapter 8
Tuning and Performance InformationThis chapter describes the information you need to consider for improving the performance of Sun Java System Communications Express.
To improve performance consider the following tuning options:
Tuning Directory ServerThis section describes the tuning you can perform on Directory Server to enhance performance.
Indexing the LDAP Directory Server
To improve the performance of Communications Express when Calendar Server accesses the LDAP directory server, index the following LDAP attributes:
- icsCalendar. The attribute is used to search default calendars for a calendar user or resource. Specify the index type as presence (pres), equality (eq), or substring (sub).
- icsCalendarOwned. The attribute is used to search for a subscribe operation when the LDAP CLD plug-in is enabled. Specify the index type as presence (pres), equality (eq), and substring (sub).
- mail and mailAlternateAddress. These two attributes specifies a user’s primary and alternate email addresses.
Note
The comm_dssetup.pl script adds indexes for icsCalendar, icsCalendarOwned, mail, and mailAlternateAddress attributes.
Setting the nsSizeLimit and nsLookthroughLimit Parameters
It is important that the nsSizeLimit and nsLookthroughLimit parameters in User/Group LDAP directory server configuration is large enough for searches to be completed properly.
To determine if these parameters are set to appropriate values, type the following command:
ldapsearch -b /base/ (&(icscalendarowned=*/user/*)(objectclass=icsCalendarUser))
where
/base/ is the LDAP base DN of the directory server where the user and resource data for Calendar Server is located.
/user/ is the value that an end user can enter in Calendar Search dialog under the Subscribe option in Communications Express.
The LDAP server returns an error, if the nsSizeLimit or the nsLookthroughLimit parameter is not large enough.
Follow these guidelines to reset nsSizeLimit or the nsLookthroughLimit parameters:
- Ensure that the value for nsSizeLimit parameter is large enough to return all the desired results; otherwise, data can get truncated, and no results will be displayed.
- Ensure that the value for nsLookthroughLimit parameter is large enough to complete a search of all the users and resources in the LDAP directory. If possible set nsLookthroughLimit to -1. By doing this, no search limit is set for nsLookthroughLimit.
Tuning Calendar ServerThis section describes how load balancing across multiple CPU on Calendar Server can enhance performance.
Using Load Balancing Across Multiple CPU
If a server has multiple CPUs, by default Calendar Server distributes the HTTP Service such as cshttpd processes and Distributed Database Service such as csdwpd processes across CPUs.
The service.http.numprocesses and service.dwp.numprocesses parameters in ics.conf determine the actual number of processes that run for each service. By default, these parameters are set to the number of CPUs for the server during installation, but you can reset these values. For example, if a server has 8 CPUs, but you want a cshttpd and csdwpd process to run in only 4 CPUs, set the parameters as:
service.http.numprocesses="4"
service.dwp.numprocesses="4"
To disable load balancing
For information on load balancing refer to the chapter on Calendar Server Performance Tuning in Sun ONE Calendar Server 6.0 Administration Guide at:
http://docs.sun.com/source/816-6708-10/
Tuning Web ServerThis section describes the tuning you can perform on Web Server to enhance performance.
Setting the value of acceptorthreads
In server.xml, change the value of the attribute acceptorthreads present in <vs> (virtual server) element to the number of CPUs on the machine hosting Web Server.
For example:
<VS id="https-siroe.com" connections="ls1" mime="mime1" aclids="acl1" urlhosts="<webserver host name"acceptorthreads="<noofcpus>" >
Setting JVM Options
Add or set the following JVM options in the server.xml file of Web Server.
The following two parameters determine the heap size of JVM
The first option indicates Maximum heap size and the second option indicates Minimum heap size
It is recommended to have the same values for both the options.
Add the following JVM option
JVMOPTIONS -server /JVMOPTIONS
Set the following parameters for garbage Collection
Tuning Communications ExpressTo enable compression of the server response
To customize the session time-out for Communications Express
- Edit the web.xml file found in deployed-dir/WEB-INF directory.
This xml file contains the xml tag session-config, which has the attribute session-timeout.
This attribute defines the session time-out in seconds.
- Change the value of the session-timeout attribute to the desired value.
For example, the following defines session-time-out for 10 minutes:
<session-config>
<session-timeout>600</session-timeout>
</session-config>