Hi all,
We've just increased sshd.threads so that our Gerrit install can
support more simultaneous users, as advised by Shawn here:
http://groups.google.com/group/repo-discuss/msg/5dfb8af99a3332f6
On Apr 20 2010, 7:38 am, Shawn Pearce <
s...@google.com> wrote:
>
> Modify your gerrit.config and set sshd.threads [1] to a higher
> number. You may also need to increase the memory available to
> Gerrit (this is set by the container.heapLimit [2] variable),
> as each additional thread needs additional working space.
My question is, where do I look for insight into how big the heapLimit
should be? I'm not really sure what the memory cost per SSH thread is
likely to be.
And I'm not knowledgeable about Java, so I don't know where I would
look to see how close our Gerrit process is to running into the limit,
nor what limit it is operating under (the startup script doesn't pass
in -Xmx unless you have an explicit container.heapLimit, and the java
man page just says that -Xmx has a "default value is chosen at runtime
based on system configuration").
The machine this is running on reports "free -t -m" as follows:
total used free shared buffers
cached
Mem: 2048 1525 522 0 179
606
-/+ buffers/cache: 739 1308
Swap: 4063 0 4063
Total: 6111 1525 4586
And Gerrit's java process is showing as using 1069m virtual, 175m
resident, 10m shared when relatively idle.
Cheers,
Greg