Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide

Optimize SSL

Optimize SSL by using routines in the appropriate operating system library for concurrent access to heap space. The library to use depends on the version of the SolarisTM Operating System (SolarisOS) that you are using. To ensure that you use the correct library, set the LD_PRELOAD environment variable to specify the correct library file. For mor information, see the following table.

Solaris OS Version 

Library 

Setting of LD_PRELOAD Environment Variable

10 

libumem–3LIB 

/usr/lib/libumem.so

9

libmtmalloc-3LIB 

/usr/lib/libmtmalloc.so

To set the LD_PRELOAD environment variable, edit the entry for this environment variable in the startserv script. The startserv script is located is located in the bin/startserv directory of your domain.

The exact syntax to define an environment variable depends on the shell that you are using.