另一个Tomcat / PermGen的噩梦; Tomcat无法启动

时间:2010-09-08 17:44:43

标签: tomcat

过去我已经从空间错误中获得了PermGen,并且只是重新启动tomcat来修复它。 但现在Tomcat根本不会启动。 这是tomcat 5.5

Exception: java.lang.OutOfMemoryError: PermGen space
Exception: null
Exception in thread "http-8080-Processor15" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-Processor17" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-Processor22" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-Processor16" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-Processor20" java.lang.OutOfMemoryError: PermGen space
Exception: java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-Processor21" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-Processor24" java.lang.OutOfMemoryError: PermGen space
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:222)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)

这是我尝试启动tomcat时的输出

  cygwin=false
+ os400=false
+ darwin=false
+ case "uname" in
++ uname
+ '[' -z /usr/share/tomcat5 ']'
+ JAVADIR=/usr/share/java
+ PRG=/usr/bin/dtomcat5
+ '[' -h /usr/bin/dtomcat5 ']'
++ dirname /usr/bin/dtomcat5
+ PRGDIR=/usr/bin
+ '[' -z /usr/share/tomcat5 ']'
+ '[' -r /usr/share/tomcat5/bin/setenv.sh ']'
+ false
+ false
+ '[' -z /usr/share/tomcat5 ']'
+ '[' -z /usr/java/jdk1.6.0_20 ']'
+ _RUNJAVA=/usr/java/jdk1.6.0_20/bin/java
+ _RUNJAVAC=/usr/java/jdk1.6.0_20/bin/javac
+ _RUNJDB=/usr/java/jdk1.6.0_20/bin/jdb
+ CLASSPATH=/usr/java/jdk1.6.0_20/lib/tools.jar
+ '[' -n '' ']'
+ '[' -r /usr/share/java/jsse/jcert.jar ']'
++ /usr/bin/build-classpath mx4j/mx4j-impl
++ /usr/bin/build-classpath mx4j/mx4j-jmx
+ CLASSPATH=/usr/java/jdk1.6.0_20/lib/tools.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-impl.jar:/usr/share/java/mx4j/mx4j-jmx.jar
+ '[' -z '' ']'
+ CATALINA_BASE=/usr/share/tomcat5
+ '[' -z '' ']'
+ CATALINA_TMPDIR=/usr/share/tomcat5/temp
+ have_tty=0
++ tty
+ '[' /dev/pts/0 '!=' 'not a tty' ']'
+ have_tty=1
+ '[' -z '' ']'
+ export CATALINA_PID=/var/run/tomcat5.pid
+ CATALINA_PID=/var/run/tomcat5.pid
+ false
+ '[' -r /usr/share/tomcat5/bin/tomcat-juli.jar ']'
+ JAVA_OPTS='-Xms128m -Xmx256m -XX:PermSize=512m -XX:MaxPermSize=512m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/share/tomcat5/conf/logging.properties'
+ '[' 1 -eq 1 ']'
+ echo 'Using CATALINA_BASE:   /usr/share/tomcat5'
Using CATALINA_BASE:   /usr/share/tomcat5
+ echo 'Using CATALINA_HOME:   /usr/share/tomcat5'
Using CATALINA_HOME:   /usr/share/tomcat5
+ echo 'Using CATALINA_TMPDIR: /usr/share/tomcat5/temp'
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
+ '[' start = debug -o start = javac ']'
+ echo 'Using JRE_HOME:       /usr/java/jdk1.6.0_17'
Using JRE_HOME:       /usr/java/jdk1.6.0_17
+ '[' start = jpda ']'
+ '[' start = debug ']'
+ '[' start = run ']'
+ '[' start = start ']'
+ shift
+ touch /usr/share/tomcat5/logs/catalina.out
+ '[' '' = -security ']'
+ /usr/java/jdk1.6.0_20/bin/java -Xms128m -Xmx256m -XX:PermSize=512m -XX:MaxPermSize=512m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/share/tomcat5/conf/logging.properties -Djava.endorsed.dirs= -classpath /usr/java/jdk1.6.0_20/lib/tools.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-impl.jar:/usr/share/java/mx4j/mx4j-jmx.jar -Dcatalina.base=/usr/share/tomcat5 -Dcatalina.home=/usr/share/tomcat5 -Djava.io.tmpdir=/usr/share/tomcat5/temp org.apache.catalina.startup.Bootstrap start
+ '[' '!' -z /var/run/tomcat5.pid ']'
+ echo 3662 

我认为我的JAVA_OPTS看起来不错,但它还没有开始。 有没有人看到问题...... 感谢

0 个答案:

没有答案