On 5/25/10 4:40 PM, Lisen Mu wrote:
Hello,
I've been implementing a service using java nio. However I've got a problem:
some times all threads performing nio reads/writes blocked for seconds at
concurrent mark-sweep GC.
Then I found this:
http://bugs.sun.com/view_bug.do?bug_id=6919638
and this:
http://mail.openjdk.java.net/pipermail/hotspot-gc-use/2010-January/000486.html
It seems to be a bug with current jvm implementation of gc locker usage.
I suppose it's a fatal issue for mina project, for mina is totally based on
nio.
So any suggestion about this problem? any workaround under jdk6?
Suffice to say that's it's a JDK issue, not a mina's one...
However, if you read carefully the bug report (
http://bugs.sun.com/view_bug.do?bug_id=6919638 ), they provide at least
2 workarounds :
1) Use -XX:-ExplicitGCInvokesConcurrent
2) Use JDK 7
I would add that you can try with either IBM JDK or JRockit (not sure it
will work better though)...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com