Gatling hangs at compile time on oracle jdk/jre > 8u151
See original GitHub issueI’m not sure if this issue should be submited here or rather to gatling-maven-plugin project, I will however give it a try.
We’ve recently realised our gatling tests started hanging infinitely from time to time, during the compilation phase. This happened after upgrading java from 8u151 to 8u152 and further.
I have an example project that should reproduce the bug. This is a maven project with simple simulation (BasicSimulation from here https://gatling.io/docs/2.3/quickstart/).
It also uses maven-gatling-plugin.
I run gatling simulation by executing mvn clean test
. The process is then repeated multiple times.
To simulate multiple java environments, I assume you have docker installed on your host. Here’s how to reproduce the issue:
- Clone the following repo https://github.com/slnowak/gatling-bug.git
- Checkout
java8-u151
branch. - Build docker image:
docker build -t gatling:java8-u151 .
- Start the container
docker run gatling:java8-u151
. This will runmvn clean test
10 times within a container with installed oracle jre 8u151. After that, docker container exits with 0, which means the entire load testing process is done. - Checkout
java8-u162
branch. - Build docker image:
docker build -t gatling:java8-u162 .
- Start the container
docker run gatling:java8-u162
. This will runmvn clean test
10 times within a container with installed oracle jre 8u162. This time however, the process will hang at some point with23:29:33.033 [main][WARN ][ZincCompiler.scala:142] i.g.c.ZincCompiler$ - Pruning sources from previous analysis, due to incompatible CompileSetup.
- The process could be nondeterministic - I just had to run
docker run gatling:java8-u162
twice to reproduce the issue, so please repeat if necessary
Gatling version: 2.2.5 Gatling maven plugin version: 2.2.14
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Here it is: http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-January/050819.html
Bug already reported as https://bugs.openjdk.java.net/browse/JDK-8194653
Work around is to call
java.nio.file.FileSystems#getDefault
early.Probably next week