OutOfMemoryError for the "Debugging applications for JBoss AS in IntelliJ IDEA" tutorial

I  am working with IntelliJ IDEA 10.5 on Windows 7 64-bit machine.  I cannot  run the the sample application with process_name.jsp modified as it is described in  the tutorial "Debugging applications for JBoss AS in IntelliJ IDEA"  in the debig mode. In Debug I am getting the  following messages in the output window:

cmd /c C:\AR_tools\jboss-6.0.0.20100216-M2\bin\run.bat -c default
Calling C:\AR_tools\jboss-6.0.0.20100216-M2\bin\run.conf.bat
===============================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: C:\AR_tools\jboss-6.0.0.20100216-M2

  JAVA: C:\Program Files\Java\jdk1.6.0_22\bin\java

  JAVA_OPTS: -Dprogram.name=run.bat -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:38650,suspend=y,server=n -server

  CLASSPATH: C:\Program Files\Java\jdk1.6.0_22\lib\tools.jar;C:\AR_tools\jboss-6.0.0.20100216-M2\bin\run.jar

===============================================================================

[2011-05-27 04:21:47,060] Artifact JBossSampleApp:war exploded: Server is not connected. Press 'Deploy' to start deployment.
Connected to the target VM, address: '127.0.0.1:38650', transport: 'socket'
16:21:47,955 INFO  [AbstractJBossASServerBase] Server Configuration:

JBOSS_HOME URL: file:/C:/AR_tools/jboss-6.0.0.20100216-M2/
Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml
Common Base: $JBOSS_HOME\common/
Common Library: $JBOSS_HOME\common/lib/
Server Name: default
Server Base: $JBOSS_HOME\server/
Server Library: $JBOSS_HOME\server/default/lib/
Server Config: $JBOSS_HOME\server/default/conf/
Server Home: $JBOSS_HOME\server/default/
Server Data: $JBOSS_HOME\server/default/data/
Server Log: $JBOSS_HOME\server/default/log/
Server Temp: $JBOSS_HOME\server/default/tmp/

16:21:47,976 INFO  [AbstractServer] Starting: JBossAS [6.0.0.20100216-M2 (build: SVNTag=JBoss_6_0_0_20100216-M2 date=20100216)]
16:21:48,435 INFO  [AbstractMCServerBase] Starting Microcontainer, Main bootstrapURL=file:/C:/AR_tools/jboss-6.0.0.20100216-M2/server/default/conf/bootstrap.xml
16:21:49,037 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
16:21:49,040 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
16:21:49,325 INFO  [CopyMechanism] VFS temp dir: C:\AR_tools\jboss-6.0.0.20100216-M2\server\default\tmp
16:21:49,332 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
16:21:51,397 INFO  [ServerInfo] Java version: 1.6.0_22,Sun Microsystems Inc.
16:21:51,398 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
16:21:51,398 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 17.1-b03,Sun Microsystems Inc.
16:21:51,398 INFO  [ServerInfo] OS-System: Windows 7 6.1,amd64
16:21:51,399 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:38650,suspend=y,server=n -Djava.endorsed.dirs=C:\AR_tools\jboss-6.0.0.20100216-M2\lib\endorsed
16:21:51,567 INFO  [JMXKernel] Legacy JMX core initialized
16:21:59,846 INFO  [AbstractServerConfig] JBoss Web Services - Metro Server
16:21:59,846 INFO  [AbstractServerConfig] 3.2.2.GA
16:22:16,723 INFO  [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
16:22:19,257 INFO  [MailService] Mail Service bound to java:/Mail
16:22:20,423 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
16:22:20,514 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
16:22:22,171 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_22\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 10.5\bin\..\.\bin;C:\Users\o_volberg\Projects\apache-ant-1.8.2\bin;C:\AR_tools\jboss-6.0.0.20100216-M2\bin;C:\Users\o_volberg\Projects\apache-maven-2.2.1\bin;C:\Program Files\Java\jdk1.6.0_22\bin;C:\Program Files (x86)\PostgreSQL\8.4\bin;C:\Program Files\SlikSvn\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Bitvise Tunnelier;C:\Program Files (x86)\RadBlue\RSS\xulrunner;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Bitvise Tunnelier;c:\program files (x86)\jetbrains\intellij idea 10.5\jre\jre\bin
16:22:22,575 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
16:22:22,577 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
16:22:22,622 INFO  [StandardService] Starting service jboss.web
16:22:22,628 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/3.0.0-beta-2
16:22:22,723 INFO  [Catalina] Server startup in 145 ms
16:22:23,663 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
16:22:24,563 INFO  [TomcatDeployment] deploy, ctxPath=/juddi
16:22:24,686 INFO  [RegistryServlet] Loading jUDDI configuration.
16:22:24,688 INFO  [RegistryServlet] Resources loaded from: /WEB-INF/juddi.properties
16:22:24,688 INFO  [RegistryServlet] Initializing jUDDI components.
16:22:24,767 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/AR_tools/jboss-6.0.0.20100216-M2/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
16:22:24,793 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/AR_tools/jboss-6.0.0.20100216-M2/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
16:22:24,805 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/AR_tools/jboss-6.0.0.20100216-M2/server/default/deploy/jms-ra.rar/META-INF/ra.xml
16:22:24,821 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/AR_tools/jboss-6.0.0.20100216-M2/server/default/deploy/mail-ra.rar/META-INF/ra.xml
16:22:24,850 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/AR_tools/jboss-6.0.0.20100216-M2/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
16:22:24,998 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2
16:22:25,058 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
16:22:25,063 INFO  [RAMJobStore] RAMJobStore initialized.
16:22:25,063 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
16:22:25,063 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
16:22:25,063 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
16:22:25,861 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
16:22:26,570 INFO  [ServerPeer] JBoss Messaging 1.4.6.GA server [0] started
16:22:26,845 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
16:22:26,845 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1d69fe0a started
16:22:26,846 INFO  [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
16:22:26,846 INFO  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
16:22:26,848 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
16:22:26,848 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@2cff8c2a started
16:22:26,874 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
16:22:26,876 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
16:22:26,877 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
16:22:26,877 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@48a198b8 started
16:22:26,990 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
16:22:27,215 INFO  [TomcatDeployment] deploy, ctxPath=/
16:22:27,301 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws
16:22:27,444 INFO  [service] Removing bootstrap log handlers
16:22:27,598 INFO  [org.jboss.system.server.profileservice.ProfileServiceBootstrap] Loading profile: ProfileKey@c9d75be[domain=default, server=default, name=default]
16:22:27,632 INFO  [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
16:22:27,636 INFO  [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
16:22:27,637 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.20100216-M2 (build: SVNTag=JBoss_6_0_0_20100216-M2 date=20100216)] Started in 39s:659ms
[2011-05-27 04:22:27,750] Artifact JBossSampleApp:war exploded: Artifact is being deployed, please wait...
Connected to server
16:22:27,775 WARN  [org.jboss.deployment.MainDeployer] undeploy 'file:/C:/Users/o_volberg/Projects/Training/IntelliJSampleProjects/JBossSampleApp/out/artifacts/JBossSampleApp_war_exploded.war/' : package not deployed
16:22:27,803 INFO  [org.jboss.deployment.MainDeployer] deploy, url=file:/C:/Users/o_volberg/Projects/Training/IntelliJSampleProjects/JBossSampleApp/out/artifacts/JBossSampleApp_war_exploded.war/
16:22:28,021 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/JBossSampleApp_war_exploded
[2011-05-27 04:22:28,118] Artifact JBossSampleApp:war exploded: Artifact is deployed successfully
[2011-05-27 04:22:28,125] Artifact JBossSampleApp:war exploded: Artifact is deployed successfully
16:22:33,852 WARN  [org.jboss.detailed.classloader.ClassLoaderManager] Unexpected error during load of:org.eclipse.jdt.internal.compiler.parser.RecoveredElement: java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:70)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:668)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:627)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:626)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:603)
at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:455)
at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:267)
at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:166)
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:270)
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1129)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:901)
at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:523)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:468)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:70)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:668)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:627)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:626)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:603)
at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:455)

16:22:35,398 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/JBossSampleApp_war_exploded].[jsp]] Servlet.service() for servlet jsp threw exception: java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:70)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:668)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:627)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:626)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:603)
at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:455)
at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:267)
at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:166)
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:270)
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1129)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:901)
at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:523)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:468)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:70)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:668)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:627)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:626)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:603)
at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:455)

16:22:38,437 WARN  [org.jboss.detailed.classloader.ClassLoaderManager] Unexpected error during load of:org.apache.tomcat.util.http.HttpMessages: java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:70)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:668)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:627)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:626)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:603)
at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:455)
at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:267)
at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:166)
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:270)
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1129)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:901)
at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:523)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:468)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.apache.coyote.http11.InternalOutputBuffer.getMessage(InternalOutputBuffer.java:463)
at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:430)
at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1632)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:993)
at org.apache.coyote.Response.action(Response.java:184)
at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:550)
at org.apache.coyote.Response.doWrite(Response.java:567)
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:394)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:449)
at org.apache.catalina.connector.OutputBuffer.realWriteChars(OutputBuffer.java:465)
at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:469)
at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:287)

16:22:39,804 ERROR [org.apache.catalina.connector.CoyoteAdapter] An exception or error occurred in the container during the request processing: java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/HttpMessages
at org.apache.coyote.http11.InternalOutputBuffer.getMessage(InternalOutputBuffer.java:463)
at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:430)
at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1632)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:993)
at org.apache.coyote.Response.action(Response.java:184)
at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:550)
at org.apache.coyote.Response.doWrite(Response.java:567)
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:394)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:449)
at org.apache.catalina.connector.OutputBuffer.realWriteChars(OutputBuffer.java:465)
at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:469)
at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:287)
at org.apache.catalina.connector.Response.finishResponse(Response.java:472)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:872)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.apache.tomcat.util.http.HttpMessages, msg=PermGen space
at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:181)
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:270)
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1129)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:901)
at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:523)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:468)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 18 more
Caused by: java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:70)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:668)
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:627)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:626)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:603)
at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:455)
at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:267)
at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:166)
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:270)
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1129)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:901)
at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:523)
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:468)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.apache.coyote.http11.InternalOutputBuffer.getMessage(InternalOutputBuffer.java:463)
at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:430)
at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1632)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:993)
at org.apache.coyote.Response.action(Response.java:184)
at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:550)
at org.apache.coyote.Response.doWrite(Response.java:567)
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:394)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:449)
at org.apache.catalina.connector.OutputBuffer.realWriteChars(OutputBuffer.java:465)
at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:469)
at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:287)

16:22:39,806 ERROR [org.apache.coyote.http11.Http11Processor] Error finishing response: java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/HttpMessages
at org.apache.coyote.http11.InternalOutputBuffer.getMessage(InternalOutputBuffer.java:463)
at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:430)
at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1632)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:993)
at org.apache.coyote.Response.action(Response.java:184)
at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:363)
at org.apache.coyote.http11.Http11Processor.endRequest(Http11Processor.java:953)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:899)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
at java.lang.Thread.run(Thread.java:662)

16:22:47,130 ERROR [org.apache.catalina.connector.CoyoteAdapter] An exception or error occurred in the container during the request processing: java.lang.OutOfMemoryError: PermGen space

16:22:51,407 ERROR [org.apache.coyote.http11.Http11Protocol] Error reading request, ignored: java.lang.OutOfMemoryError: PermGen space

16:22:54,293 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[default]] Servlet.service() for servlet default threw exception: java.lang.OutOfMemoryError: PermGen space

16:22:55,829 ERROR [org.apache.catalina.connector.CoyoteAdapter] An exception or error occurred in the container during the request processing: java.lang.OutOfMemoryError: PermGen space

16:22:57,290 ERROR [org.apache.coyote.http11.Http11Protocol] Error reading request, ignored: java.lang.OutOfMemoryError: PermGen space

16:23:00,171 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[default]] Servlet.service() for servlet default threw exception: java.lang.OutOfMemoryError: PermGen space

16:23:01,603 ERROR [org.apache.catalina.connector.CoyoteAdapter] An exception or error occurred in the container during the request processing: java.lang.OutOfMemoryError: PermGen space

My settings for JBoss are:
set "JAVA_OPTS=-Xms512M -Xmx1024M -XX:MaxPermSize=512M"

rem # Reduce the RMI GCs to once per hour for Sun JVMs.
set "JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

rem # Warn when resolving remote XML DTDs or schemas.
set "JAVA_OPTS=%JAVA_OPTS% -Dorg.jboss.resolver.warning=true"

What wrong with my settings? Why am I getting this error? How can I fix it.

Thank you in advance,

OV

2 comments
Comment actions Permalink

I've had a similar problem with debugging JBoss 5.1. It seems as though the JAVA_OPTS in the Startup/Connection tab of the Run Configurations dialog overrides the options set in run.bat and run.conf.bat when debugging a JBoss server. This means that the JVM gets ~80Mb of PermGen space instead of JBoss' default 320Mb.

I was able to work around this by setting the VM parameters on the Server tab of the Run Configurations dialog, i.e.:

-XX:MaxPermSize=320M

Regards,

Simon

0
Comment actions Permalink

Simon,

Thank you very much. Your fix works like a charm.

I used

-XX:MaxPermSize=512M in Server for Debug,

and it updated  JAVA_OPTS  in Setup/Connection tab accordingly.

It fixed my problem, but IMHO  IntelliJ has a problem here (I hesitate to say a bug), because it should not override values specified for JAVA_OPTS in run.bat, run.conf.bat or ran.sh.

I would like to hear what IntelliJ developers think about this issue.

Best regards,

Ovsei

0

Please sign in to leave a comment.