JVM hanging when using G1GC on JDK8 b78 or b79 (Linux 32 bit)
Uwe Schindler
uschindler at apache.org
Wed Mar 6 20:10:34 UTC 2013
> Hi,
>
> On Wed, 2013-03-06 at 20:31 +0100, Uwe Schindler wrote:
> > Hi,
> > > > >> Uwe:
> > > > Use: -XX:MarkStackSize=4M to increase the marking stack size in a
> > > > 32 bit
> > > run.
> > >
> > > I will give it a quick try!
> >
> > 4M was too much for a 32bit JVM (it complained about it), but 2M was fine.
> With that setting the tests went through as they should (in 22 secs on this
> server). With the default setting it stalled endless.
> >
>
> Maybe you have to set -XX:MaxMarkStackSize as well, but it does not matter
> now I guess.
>
> > To test the inverse (make 64 bit hang): What's the default stack size of 32
> bit JVMs, so I can set it on 64 bit to make it hang?
> >
>
> Use -XX:+PrintFlagsFinal on the 32 bit VM to get this value. The flag prints a
> list of all effective flag values after option processing.
Thanks. Unfortunately I did not get the 64 bit JVM to hang, not even with 1K stack size. It could be because Lucene or the used UIMA library in this test uses other defaults and behaves different GC-wise, or - as John mentioned - the task queue size is different.
I was able to check some values in 32bit: with the default stack size of 32K it hangs, with 64K the same, 92K also hangs. But 128K passes and works with this test.
Uwe
More information about the hotspot-gc-dev
mailing list