I wrote a server application in Java 8, and running it with java 1.8.0u25.
It works fine for the first several hours, but after it gets about 5k~10k requests, a thread o
It indeed looks like a JIT compiler bug, presumably in allocation elimination optimization.
Try running with -XX:-EliminateAllocations
JVM option.
You may also add -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation
to produce detailed compilation log with a separate output file per compiler thread.