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.

Setup java takes much too long

See original GitHub issue

Description: Currently I’m experiencing extreme slow build times because setup-java takes more than 10 minutes

Task version: v1

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

jobs:
  build:
    timeout-minutes: 60
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up JDK 11
        uses: actions/setup-java@v1
        with:
          java-version: 11

Expected behavior: In the past the step only took a couple of seconds.

Actual behavior: The step takes more than 10 minutes. May be missing caching and slow download servers? Restarting doesn’t help.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
iamKunalGuptacommented, Mar 3, 2021

Hello @joshiste, currently, we are working on implementation actions/setup-java@v2. One of the major feature will be consuming Java versions pre-installed on images that should significantly reduce task time. We are expecting V2 to be available in a couple of weeks.

Hi @maxim-lobanov This issue was not there yesterday for the same exact setup for me (v1) and has just started occurring out of the blue right now.

3reactions
joshistecommented, Mar 3, 2021

seems to be good again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is Java really slow? - performance - Stack Overflow
Java had a reputation for being slow because it used to take a long time for the VM to start up. If you...
Read more >
Java is extremely slow to start up - Super User
Try java -verbose , it will print each step that it goes through, maybe you'll notice which steps take a long time. I...
Read more >
Top 10 Java Performance Problems and How to Solve Them
Configuring your JVM's memory to be too large can also be detrimental to ... Too much synchronization also takes a toll on performance....
Read more >
Troubleshooting tips for running Java
Clear the Java cache (temporary) files ... Sometimes a corrupted file in the Java cache can prevent an application from running. You can...
Read more >
why is Java startup so slow? - Oracle Communities
On my home machine, java is much faster around twice as fast to startup, but the processor and ram are not twice as...
Read more >

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