question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gatling hangs at compile time on oracle jdk/jre > 8u151

See original GitHub issue

I’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:

  1. Clone the following repo https://github.com/slnowak/gatling-bug.git
  2. Checkout java8-u151 branch.
  3. Build docker image: docker build -t gatling:java8-u151 .
  4. Start the container docker run gatling:java8-u151 . This will run mvn 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.
  5. Checkout java8-u162 branch.
  6. Build docker image: docker build -t gatling:java8-u162 .
  7. Start the container docker run gatling:java8-u162 . This will run mvn clean test 10 times within a container with installed oracle jre 8u162. This time however, the process will hang at some point with 23:29:33.033 [main][WARN ][ZincCompiler.scala:142] i.g.c.ZincCompiler$ - Pruning sources from previous analysis, due to incompatible CompileSetup.
  8. 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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
slandellecommented, Jan 24, 2018

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.

0reactions
slandellecommented, Feb 27, 2018

Probably next week

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found