# Increased scanning time using Java 25

**URL:** <https://community.sonarsource.com/t/increased-scanning-time-using-java-25/188786>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube, java\
**Created:** [September 24, 2026, 7:56pm UTC](https://community.sonarsource.com/t/increased-scanning-time-using-java-25/188786 "2026-09-24T19:56:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suzanne\_Fuller](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/suzanne_fuller/32/69207_2.png) [@Suzanne\_Fuller](https://community.sonarsource.com/u/Suzanne_Fuller)\
**Post date:** [September 24, 2026, 7:56pm UTC](https://community.sonarsource.com/t/increased-scanning-time-using-java-25/188786/1 "2026-09-24T19:56:30Z")

</div>

Hello,

We are currently using SonarQube Server version 2025.4.7 deployed with Docker.

We are upgrading SonarQube Server from 2025.4.7 to 2026.1 LTA. In preparation for the upgrade, we updated the sonar-scanner step in our Bitbucket pipelines to use Java 25 (image: maven:3.9-eclipse-temurin-25).

On SonarQube Server 2025.4.7, the scan took 9 minutes with Java 17 and Java 21 but increased to 20 minutes with Java 25.

Is there any insight into why the scan takes significantly longer with Java 25? Also, do SonarQube Server 2025.4.7 and 2026.1 LTA versions support Java 25?

Thank you.

---

<div class="post-metadata">

**Author:** ![andres](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/andres/32/76342_2.png) [@andres](https://community.sonarsource.com/u/andres)\
**Post date:** [September 29, 2026, 9:46am UTC](https://community.sonarsource.com/t/increased-scanning-time-using-java-25/188786/2 "2026-09-29T09:46:30Z")

</div>

Hey @Suzanne_Fuller, welcome to the Community!

> On SonarQube Server 2025.4.7, the scan took 9 minutes with Java 17 and Java 21 but increased to 20 minutes with Java 25.

Do you mean that the scan takes 9 mins with Java 17/21 **on SonarQube 2025.4** and 20 mins with Java 25 **on SonarQube 2026.1**? Or did you get the 20-min-long analyses on SonarQube Server 2025.4.7 too, just by changing the Java version?

In principle, [2025.4 is documented as supporting Java 17 and 21](https://docs.sonarsource.com/sonarqube-server/2025.4/server-installation/server-host-requirements#software-requirements), while [2026.1 is documented as supporting Java 21 and 25](https://docs.sonarsource.com/sonarqube-server/2025.4/server-installation/server-host-requirements#software-requirements). I would recommend to follow those requirements.

---

<div class="post-metadata">

**Author:** ![Suzanne\_Fuller](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/suzanne_fuller/32/69207_2.png) [@Suzanne\_Fuller](https://community.sonarsource.com/u/Suzanne_Fuller)\
**Post date:** [September 29, 2026, 1:56pm UTC](https://community.sonarsource.com/t/increased-scanning-time-using-java-25/188786/3 "2026-09-29T13:56:02Z")

</div>

Thank you for the recommendation. We will update to Java 25 after upgrading to 2026.1.
