Disclaimer: I am not a server admin, I am a windows user that has lead a life of sinful installation wizards and drag and drop
I'm attempting to install Tomcat on CentOS 5 hosted by a MediaTemple dedicated virtual server.
I basically followed this guide:
- Installed jpackage and configured the yum.repo.d jpackage file to set enabled=1
- Used yum to install java (yum install java)
- Downloaded the binary distribution of tomcat with "wget http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.tar.gz"
- set JAVA_HOME to point at the jdk location I found with "export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-18.104.22.168/"
- I gunzip/untar the Tomcat files and run ./startup.sh to start the Tomcat server. That is supposed to put the Tomcat server at myserver.com:8080 - however, I just get a could not contact host error when I try to browse to it (or when I try 'curl localhost:8080' from SSH) After I type ./startup.sh, here is the console output:
[root@myserver bin]# ./startup.sh
Using CATALINA_BASE: /root/apache-tomcat-6.0.14 Using CATALINA_HOME: /root/apache-tomcat-6.0.14 Using CATALINA_TMPDIR: /root/apache-tomcat-6.0.14/temp Using JRE_HOME: /usr/lib/jvm/java-1.6.0-openjdk-22.214.171.124/ [root@myserver bin]#
Is there a step I have missed here?
Edit: I've now discovered by looking at the log the following error is occuring:
Error occurred during initialization of VM Could not reserve enough space for object heap