Error during SonarScanner execution java.lang.OutOfMemoryError: Java heap space

Hello,

When I run sonar analysis for T-SQL, I get the following error.

2024.10.10 14:17:21 ERROR web[e0c39721-dead-456b-87f5-5aa058eab0ea][o.s.s.p.UpdateCenterClient] Fail to connect to update center
org.sonar.api.utils.SonarException: Fail to download: https://downloads.sonarsource.com/sonarqube/update/update-center.properties

Can you help me with the issue?

Hi,

This error is unrelated to analysis, and you can safely ignore it.

 
HTH,
Ann

Thank you for your feedback. However, I cannot see the analysis result. What is the problem?

Hi,

What you posted is a server-side log. Have you run analysis? Did that log end with success and a URL?

 
Ann

yes stars analys

16:40:47.419 INFO: EXECUTION FAILURE
16:40:47.419 INFO: ------------------------------------------------------------------------
16:40:47.419 INFO: Total time: 7:52.518s
16:40:47.437 INFO: Final Memory: 11M/54M
16:40:47.437 INFO: ------------------------------------------------------------------------
16:40:47.437 ERROR: Error during SonarScanner execution
java.lang.OutOfMemoryError: Java heap space
at com.sonarsource.tsql.B.F.C.A(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
at com.sonar.sslr.impl.typed.C.C(Unknown Source)
at com.sonar.sslr.impl.typed.C.B(Unknown Source)
16:40:47.437 ERROR:
16:40:47.437 ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
16:40:47.451 DEBUG: Cleanup org.eclipse.jgit.util.FS$FileStoreAttributes$$Lambda$353/0x00000008012b4808@1bfe3203 during JVM shutdown

Hi,

You can’t see your analysis result because there’s no analysis. Per this log snippet, analysis is failing.

Could you share the full analysis log, starting from the analysis command itself?

 
Thx,
Ann

Caused by: java.net.SocketTimeoutException: Connect timed out
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:546)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:221)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at org.sonar.core.util.DefaultHttpDownloader.executeCall(DefaultHttpDownloader.java:139)
at org.sonar.core.util.DefaultHttpDownloader.readString(DefaultHttpDownloader.java:96)
… 176 common frames omitted
Suppressed: java.net.SocketTimeoutException: Connect timed out
… 201 common frames omitted
Suppressed: java.net.SocketTimeoutException: Connect timed out
… 201 common frames omitted
Suppressed: java.net.SocketTimeoutException: Connect timed out
… 201 common frames omitted

Hi,

What do you make of that?

 
Ann

I encounter such an error code, what could be the reason?

Hi,

What does this mean to you?

 
Ann