1.4 Enhancing Viewpoint's Performance

To optimize Viewpoint's performance, perform the following steps that are related to your operating system:

1.4.1 Ubuntu Linux

  1. Set JAVA_OPTS:
    /usr/share/tomcat6/bin/setenv.sh
    #Options for Tomcat server
    export JAVA_OPTS="-Xmx4g"

  2. Set MaxThreads:
    /usr/share/tomcat6/conf/server.xml
    #Modify the number of threads for the connector
    <Connector port=#8080" protocol="HTTP/1.1"
    connectionTimout="20000"
    URIEncoding="UTF-8"
    maxThreads="300"
    redirectPort="8443" />

  3. Increase the number of open file handles to 2048:
    edit the /etc/init.d/tomcat6 file
    #Set ulimit, set number of open file handles to 2048
    ulimit -n 2048

1.4.2 CentOS or RHEL

  1. Set JAVA_OPTS:
    cd /usr/share/tomcat6/bin/
    touch setenv.sh
    edit setenv.sh
    #Options for Tomcat server
    export JAVA_OPTS="-Xmx4g"
    chmod +x setenv.sh
    chown root:tomcat setenv.sh

  2. Set MaxThreads:
    /etc/tomcat6/server.xml
    #Modify the number of threads for the connector
    <Connector port=#8080" protocol="HTTP/1.1"
    connectionTimout="20000"
    maxThreads="300"
    redirectPort="8443" />

  3. Increase the number of open file handles to 2048:
    edit the /etc/init.d/tomcat6 file
    #Set ulimit, set number of open file handles to 2048
    ulimit -n 2048