cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Out of memory error by jetty logs.
Date Mon, 09 Aug 2010 19:31:14 GMT

Definitely try 2.2.9.   That may help.

Alternatively, set a JVM param of something like -XX:MaxPermSize=148m or 
similar.  The default PermGen space is relatively small for many complex 
applications that use a lot of small classes.   If you are using a 64bit JVM 
it's especially bad as the space fills that much quicker. 

Dan


On Friday 06 August 2010 8:03:58 am Naresh Tallapelli wrote:
> Hi All,
> 
> I am using cxf-2.2.7 version. When i send a request from client to server i
> am getting the following exception on the server after the response is sent
> to the client. After that subsequent requests are not getting processed by
> the server.
> 
> 53421 2010-08-06 17:25:29,691 [btpool0-1] ERROR org.mortbay.log  -
> EXCEPTION
> 
> java.lang.OutOfMemoryError: PermGen space
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClass(Unknown Source)
>     at java.security.SecureClassLoader.defineClass(Unknown Source)
>     at java.net.URLClassLoader.defineClass(Unknown Source)
>     at java.net.URLClassLoader.access$000(Unknown Source)
>     at java.net.URLClassLoader$1.run(Unknown Source)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(Unknown Source)
>     at java.lang.ClassLoader.loadClass(Unknown Source)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>     at java.lang.ClassLoader.loadClass(Unknown Source)
>     at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>     at
> org.mortbay.jetty.HttpGenerator.completeHeader(HttpGenerator.java:306)
>     at
> org.mortbay.jetty.HttpConnection.commitResponse(HttpConnection.java:580)
>     at
> org.mortbay.jetty.HttpConnection$Output.close(HttpConnection.java:889)
>     at
> org.apache.cxf.transport.http.AbstractHTTPDestination$WrappedOutputStream.c
> lose(AbstractHTTPDestination.java:628) at
> org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputSt
> ream.java:47) at
> org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188)
>     at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>     at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInte
> rceptor.handleMessage(MessageSenderInterceptor.java:62) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
> n.java:243) at
> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingC
> hainInterceptor.java:76) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
> n.java:243) at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationO
> bserver.java:110) at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(Jet
> tyHTTPDestination.java:312) at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTT
> PDestination.java:276) at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandle
> r.java:70) at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
>     at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCol
> lection.java:206) at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>     at org.mortbay.jetty.Server.handle(Server.java:324)
>     at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> 54499 2010-08-06 17:25:30,769 [btpool0-1] ERROR org.mortbay.log  - handle
> failed
> java.lang.IllegalStateException: last?
>     at
> org.mortbay.jetty.HttpGenerator.completeHeader(HttpGenerator.java:256)
>     at
> org.mortbay.jetty.AbstractGenerator.sendError(AbstractGenerator.java:465)
>     at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
>     at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java
> :842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:730) at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395
> ) at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:
> 450)
> 
> The response size is 2 kb only. I am not sure why this is happened. Please
> help me to resolve this issue.
> 
> Any help is much appreciated.
> 
> Thanks in advance.
> 
> --Naresh

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Mime
View raw message