My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1995: Thread HTTP-23 threw exception java.lang.OutOfMemoryError: Java heap space
8 people starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Merged:  issue 2003
Owner:  ----
Closed:  Feb 2015


Sign in to add a comment
 
Reported by nikki.ka...@gmail.com, Jul 4, 2013
Affected Version: 2.6.1

What steps will reproduce the problem?
1. Gerrit hangs: Can't accessing Gerrit http URL 
2. Even ssh access hangs, can't push to Gerrit

What is the expected output? What do you see instead?
I see the following error in logs/error_log and the access to git/gerrit via ssh and http hangs:
ERROR com.google.gerrit.pgm.Daemon : Thread HTTP-23 threw exception
java.lang.OutOfMemoryError: Java heap space
ERROR com.google.gerrit.pgm.Daemon : Thread pool-14-thread-1395 threw exception
java.lang.OutOfMemoryError: Java heap space
ERROR com.google.gerrit.pgm.Daemon : Thread HTTP-3011 threw exception
java.lang.OutOfMemoryError: Java heap space
WARN  / : Error in changeDetail
java.lang.OutOfMemoryError: Java heap space


Please provide any additional information below.
This has happened twice since I upgraded to Gerrit 2.6.1 from 2.5 last week. Is there a gerrit config setting that I may be missing? I'm running gerrit as a service on Linux.

Jul 11, 2013
#1 gavinswa...@gmail.com
Might be getting the same issue, with slightly different logs (2.7-rc2)

[2013-07-11 12:45:25,824] WARN  org.apache.sshd.server.session.ServerSession : Exception caught
java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:251)
        at sun.nio.ch.IOUtil.read(IOUtil.java:224)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:254)
        at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:280)
        at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:44)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:677)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:651)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:640)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1111)
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
[2013-07-11 12:46:15,524] ERROR com.google.gerrit.sshd.BaseCommand : Internal server error (user jenkins account 1000003) during git-upload-pack '/ourrepo.git'
java.lang.OutOfMemoryError: Java heap space
Jul 16, 2013
#2 gavinswa...@gmail.com
Any Ideas on this. I've tried upping the heap limit, I set it to 2Gigs and just ended up with it taking longer before it stopped working and damaging performance of the rest of the server.
Jul 24, 2013
#3 gavinswa...@gmail.com
Has anyone tried 2.7-rc3 maybe this was miraculously fixed?
Jul 30, 2013
#4 nikki.ka...@gmail.com
How long have you been running with 2.7-rc3? Any other potential issues with it?
Jul 30, 2013
#5 gavinswa...@gmail.com
@4: I'm not running rc3, still on rc2. Haven't seen enough reason to move to 3. Is 2003 a duplicate of this or are these separate issues? 2003 seems to be getting more traction, if it is a dupe marking it as such will allow the devs to prioritize.
Sep 10, 2013
#6 rjiv.ran...@gmail.com
I am also facing same issue in Gerrit 2.6.1.
Feb 22, 2015
Project Member #7 u.wol...@gmail.com
Another duplicate of  issue #2003 .
Feb 23, 2015
Project Member #8 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 2003
Sign in to add a comment

Powered by Google Project Hosting