Hi all,

My restlet server is running into the error mentioned in the subject
after a couple of minutes of moderate load. After this error, the server
stops responding. Does anyone know what causes this error and how it can
be fixed?

The full stack trace looks like this:

org.restlet.engine.http.adapter.ServerAdapter commit
SEVERE: An exception occured writing the response entity
java.io.IOException: Unable to establish loopback connection
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:122)
        at 
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
        at java.nio.channels.Pipe.open(Pipe.java:133)
        at org.restlet.engine.io.NioUtils.getChannel(NioUtils.java:160)
        at 
org.restlet.representation.WritableRepresentation.getChannel(WritableRepresentation.java:65)
        at 
org.restlet.representation.ChannelRepresentation.write(ChannelRepresentation.java:71)
        at 
org.restlet.engine.application.EncodeRepresentation.write(EncodeRepresentation.java:304)
        at 
org.restlet.engine.http.ServerCall.writeResponseBody(ServerCall.java:550)
        at org.restlet.engine.http.ServerCall.sendResponse(ServerCall.java:488)
        at 
org.restlet.ext.jetty.internal.JettyCall.sendResponse(JettyCall.java:327)
        at 
org.restlet.engine.http.adapter.ServerAdapter.commit(ServerAdapter.java:197)
        at 
org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:151)
        at 
org.restlet.ext.jetty.JettyServerHelper$WrappedServer.handle(JettyServerHelper.java:167)
        at 
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594)
        at 
org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1042)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211)
        at 
org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424)
        at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506)
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.SocketException: No buffer space available (maximum 
connections reached?): connect
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:500)
        at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
        at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78)


Any help would be highly appreciated. Thanks in advance!

-- 
Arjohn Kampman - www.aduna-software.com

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2950103

Reply via email to