Stop tomcat.
Set an environment variable CATALINA_OPTS in system variables.
On Win2000/XP:Set a system environment ( My Computer -->Properties --> Advanced --> Environment Variables -- Under the System variables section add variable CATALINA_OPTS )
On Unix:Set the environment variable for the user that starts Tomcat. e.g if you login in as root and then run startup.sh, then set this variable in root's corresponding profile file (.bashrc/.cshrc) depending on the shell you use.
If the Celoxis server has 1GB of memory then set environment variable CATALINA_OPTS to -Xmx512M. If the system has memory 2GB then set it to -Xmx1024M. (Note the dash in front of the X)
Start Tomcat.