hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maomaode (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCORE-162) Out of Memory when using ThrottlingHttpClientHandler
Date Fri, 06 Jun 2008 03:36:45 GMT

    [ https://issues.apache.org/jira/browse/HTTPCORE-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602898#action_12602898
] 

maomaode commented on HTTPCORE-162:
-----------------------------------

Exception in thread "I/O dispatcher 1" java.lang.OutOfMemoryError: Java heap space
        at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:39)
        at java.nio.ByteBuffer.allocate(ByteBuffer.java:312)
        at org.apache.http.nio.util.HeapByteBufferAllocator.allocate(HeapByteBufferAllocator.java:39)
        at org.apache.http.nio.util.ExpandableBuffer.<init>(ExpandableBuffer.java:51)
        at org.apache.http.impl.nio.reactor.SessionInputBufferImpl.<init>(SessionInputBufferImpl.java:64)
        at org.apache.http.impl.nio.NHttpConnectionBase.<init>(NHttpConnectionBase.java:120)
        at org.apache.http.impl.nio.DefaultNHttpClientConnection.<init>(DefaultNHttpClientConnection.java:66)
        at org.apache.http.impl.nio.DefaultClientIOEventDispatch.createConnection(DefaultClientIOEventDispatch.java:76)
        at org.apache.http.impl.nio.DefaultClientIOEventDispatch.connected(DefaultClientIOEventDispatch.java:84)
        at org.apache.http.impl.nio.reactor.BaseIOReactor.keyCreated(BaseIOReactor.java:182)
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.processNewChannels(AbstractIOReactor.java:246)
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:153)
        at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:70)
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:318)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "I/O dispatcher 2" java.lang.OutOfMemoryError: Java heap space
        at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:39)
        at java.nio.ByteBuffer.allocate(ByteBuffer.java:312)
        at org.apache.http.nio.util.HeapByteBufferAllocator.allocate(HeapByteBufferAllocator.java:39)
        at org.apache.http.nio.util.ExpandableBuffer.<init>(ExpandableBuffer.java:51)
        at org.apache.http.impl.nio.reactor.SessionInputBufferImpl.<init>(SessionInputBufferImpl.java:64)
        at org.apache.http.impl.nio.NHttpConnectionBase.<init>(NHttpConnectionBase.java:120)
        at org.apache.http.impl.nio.DefaultNHttpClientConnection.<init>(DefaultNHttpClientConnection.java:66)
        at org.apache.http.impl.nio.DefaultClientIOEventDispatch.createConnection(DefaultClientIOEventDispatch.java:76)
        at org.apache.http.impl.nio.DefaultClientIOEventDispatch.connected(DefaultClientIOEventDispatch.java:84)
        at org.apache.http.impl.nio.reactor.BaseIOReactor.keyCreated(BaseIOReactor.java:182)
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.processNewChannels(AbstractIOReactor.java:246)
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:153)
        at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:70)
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:318)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "pool-1-thread-73" Exception in thread "pool-1-thread-79" java.lang.OutOfMemoryError:
Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-0" java.lang.OutOfMemoryError: Java heap space
        at java.net.Socket.setImpl(Socket.java:434)
        at java.net.Socket.<init>(Socket.java:68)
        at sun.nio.ch.SocketAdaptor.<init>(SocketAdaptor.java:50)
        at sun.nio.ch.SocketAdaptor.create(SocketAdaptor.java:55)
        at sun.nio.ch.SocketChannelImpl.socket(SocketChannelImpl.java:105)
        at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:128)
        at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:94)
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:160)
        at org.apache.http.nio.OOMTest$1.run(OOMTest.java:100)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "pool-1-thread-89" java.lang.IllegalStateException: I/O reactor has been
shut down
        at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.connect(DefaultConnectingIOReactor.java:176)
        at org.apache.http.nio.OOMTest$MyHttpRequestExecutionHandler.handleResponse(OOMTest.java:203)
        at org.apache.http.nio.protocol.ThrottlingHttpClientHandler$2.run(ThrottlingHttpClientHandler.java:475)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "pool-1-thread-2" java.lang.IllegalStateException: I/O reactor has been
shut down
        at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.connect(DefaultConnectingIOReactor.java:176)
        at org.apache.http.nio.OOMTest$MyHttpRequestExecutionHandler.handleResponse(OOMTest.java:203)
        at org.apache.http.nio.protocol.ThrottlingHttpClientHandler$2.run(ThrottlingHttpClientHandler.java:475)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)

> Out of Memory when using ThrottlingHttpClientHandler 
> -----------------------------------------------------
>
>                 Key: HTTPCORE-162
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-162
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.0-beta1
>            Reporter: maomaode
>
> I'm hitting a Out Of Memory error when using ThrottlingHttpClientHandler <http://hc.apache.org/httpcomponents-core/httpcore-nio/apidocs/org/apache/http/nio/protocol/ThrottlingHttpClientHandler.html>

> with the 	Executors.newCachedThreadPool() , Will provide a testcase later

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message