...
Apache Tomcat performance considerations
Memory configurationIt may be necessary to modify the default memory settings for Apache Tomcat to improve the performance of your deployed dashboards. CAST recommends the following formula for determining the maximum memory allocation to configure on Apache Tomcat:
...
Code Block |
---|
|
@echo off
if "%OS%" == "Windows_NT" setlocal
set JAVA_HOME=C:\Java\jdk1.5.0_06
set PATH=C:\Java\jdk1.5.0_06\bin;%PATH%
set CATALINA_HOME=C:\apache-tomcat-5.5.17
set CATALINA_OPTS=-Xms512m -Xmx512m
rem launch Tomcat standard startup.bat
call startup.bat
:end |
Nightly restarts
CAST highly recommends that the application server is configured to restart automatically on a regular basis (every night for example, or when not in use). This will clear any potential memory issues.
Info |
---|
Note that when restarting the application server, the data cache used for the CAST dashboards will also be cleared, therefore the first user to connect may have degraded performance until this cache is repopulated. |