tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Wayne <chur...@gmail.com>
Subject java.lang.OutOfMemoryError: PermGen space
Date Wed, 16 Sep 2009 11:49:18 GMT
Hello,

I am running Red Hat Linux 2.6.18-164.el5 #1 SMP  x86_64 x86_64 x86_64
GNU/Linux with Tomcat 6 as seen below:

# /opt/tomcat/bin/version.sh
Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:       /usr/java/jdk1.6.0_16
Server version: Apache Tomcat/6.0.20
Server built:   May 14 2009 01:13:50
Server number:  6.0.20.0
OS Name:        Linux
OS Version:     2.6.18-164.el5
Architecture:   amd64
JVM Version:    1.6.0_16-b01
JVM Vendor:     Sun Microsystems Inc.

My JAVA_OPTS are:
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true -Dfile.encoding=UTF-8 -server
-Xms2048m -Xmx2048m -XX:NewSize=1024m -XX:MaxNewSize=1024m
-XX:PermSize=1024m -XX:MaxPermSize=1024m -XX:+DisableExplicitGC"

My system has 6GB of RAM.

I keep getting the following error:

java.lang.OutOfMemoryError: PermGen space
	java.lang.ClassLoader.defineClass1(Native Method)
	java.lang.ClassLoader.defineClass(ClassLoader.java:621)

	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	java.net.URLClassLoader$1.run(URLClassLoader.java:195)

	java.security.AccessController.doPrivileged(Native Method)
	java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	java.lang.ClassLoader.loadClass(ClassLoader.java:252)

	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.<init>(LookupEnvironment.java:87)
	org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:261)

	org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:153)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)

	org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)

	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


Any help would be appreciated!

Thanks!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message