# \#memory

**URL:** https://community.sonarsource.com/tag/memory/117.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [Java analysis went from 18 to 60+ minutes. JVM spends half its time in GC](https://community.sonarsource.com/t/java-analysis-went-from-18-to-60-minutes-jvm-spends-half-its-time-in-gc/187613)

<div class="topic-metadata">

**Author:** [@Yura\_Kalemi](https://community.sonarsource.com/u/Yura_Kalemi)\
**Replies:** 3\
**Last updated:** [September 7, 2026, 7:24am UTC](https://community.sonarsource.com/t/java-analysis-went-from-18-to-60-minutes-jvm-spends-half-its-time-in-gc/187613 "2026-09-07T07:24:03Z")

</div>

Our main-branch analysis ran in ~18–20 minutes through May and June, had drifted to ~26 by mid-August, and since 18 August takes anywhere between 25 and 67 minutes — on the same code, same heap and same quality profile. …

---

## [Custom functions not detected in SonarQube](https://community.sonarsource.com/t/custom-functions-not-detected-in-sonarqube/152575)

<div class="topic-metadata">

**Author:** [@emily.kinne](https://community.sonarsource.com/u/emily.kinne)\
**Replies:** 12\
**Last updated:** [November 20, 2025, 3:40pm UTC](https://community.sonarsource.com/t/custom-functions-not-detected-in-sonarqube/152575 "2025-11-20T15:40:15Z")

</div>

Hello, I am using a non-standard memory allocation function in C that is not being detected by SonarQube. Is there a way to configure SonarQube to detect our custom function and scan for memory leaks? One work around I …

---

## [SonarQube for IDE crash VS Code when I open a JavaScript file](https://community.sonarsource.com/t/sonarqube-for-ide-crash-vs-code-when-i-open-a-javascript-file/133100)

<div class="topic-metadata">

**Author:** [@danilogeodados](https://community.sonarsource.com/u/danilogeodados)\
**Replies:** 4\
**Last updated:** [February 17, 2025, 10:34am UTC](https://community.sonarsource.com/t/sonarqube-for-ide-crash-vs-code-when-i-open-a-javascript-file/133100 "2025-02-17T10:34:22Z")

</div>

Operating system: Windows 10 Pro SonarLint plugin version: 4.14.1 Programming language you’re coding in: C#, SQL, HTML, CSS e JavaScript. Is connected mode used: Yes Connected to SonarCloud or SonarQube (and which vers…

---

## [BackendService consumes GBs of Heap (cause OOMs) saving content of all changed files](https://community.sonarsource.com/t/backendservice-consumes-gbs-of-heap-cause-ooms-saving-content-of-all-changed-files/131102)

<div class="topic-metadata">

**Author:** [@Maxim\_Kolmakov](https://community.sonarsource.com/u/Maxim_Kolmakov)\
**Replies:** 4\
**Last updated:** [December 5, 2024, 2:26pm UTC](https://community.sonarsource.com/t/backendservice-consumes-gbs-of-heap-cause-ooms-saving-content-of-all-changed-files/131102 "2024-12-05T14:26:54Z")

</div>

Report we get with OOM: \[ 266K/ 13%/1.15GB\] 1.22GB 1 ROOT: Java Frame: com.intellij.openapi.application.impl.ApplicationImpl.runUnlockingIntendedWrite(ApplicationImpl.java:842) \[ 266K/ 13%/1.15GB\] 1.22GB …

---

## [How to properly configure memory to JVM on SonarQube](https://community.sonarsource.com/t/how-to-properly-configure-memory-to-jvm-on-sonarqube/107974)

<div class="topic-metadata">

**Author:** [@Amine\_Tanboura](https://community.sonarsource.com/u/Amine_Tanboura)\
**Replies:** 9\
**Last updated:** [March 22, 2024, 4:06pm UTC](https://community.sonarsource.com/t/how-to-properly-configure-memory-to-jvm-on-sonarqube/107974 "2024-03-22T16:06:11Z")

</div>

Versions SonarQube 10.2.0 , Sonarlint 7.6.0 , Sonarqube Extension for Azure DevOps v5.17.2) \*SonarQube is deployed with zip, Description : We are are using SonarQube Enterprise Edition, version : 10.2.0.77647 and …

---

## [SQ Community Edition is unexpectedly slow on AWS ECS](https://community.sonarsource.com/t/sq-community-edition-is-unexpectedly-slow-on-aws-ecs/106783)

<div class="topic-metadata">

**Author:** [@lancedikson](https://community.sonarsource.com/u/lancedikson)\
**Replies:** 5\
**Last updated:** [August 14, 2024, 9:16am UTC](https://community.sonarsource.com/t/sq-community-edition-is-unexpectedly-slow-on-aws-ecs/106783 "2024-08-14T09:16:25Z")

</div>

Hi all! I’ve just rolled out a service with SQ Community Edition on AWS ECS and can’t get over it’s slow processing. There’re few things bothering me now: The UI is noticeably slow, takes up 4-5 seconds to load the lis…

---

## [How can I configure SonarQube so that it knows the pointer size for my architecture (32-bit, ARM)?](https://community.sonarsource.com/t/how-can-i-configure-sonarqube-so-that-it-knows-the-pointer-size-for-my-architecture-32-bit-arm/110221)

<div class="topic-metadata">

**Author:** [@jacobq](https://community.sonarsource.com/u/jacobq)\
**Replies:** 4\
**Last updated:** [March 5, 2024, 12:32pm UTC](https://community.sonarsource.com/t/how-can-i-configure-sonarqube-so-that-it-knows-the-pointer-size-for-my-architecture-32-bit-arm/110221 "2024-03-05T12:32:58Z")

</div>

I am trying out SonarCloud for the first time and was able to link my GitHub organization and analyze a C project. However, there seem to be many incorrectly flagged bugs. For example, one that I see says “An integral t…

---

## [Javascript out of heap memory issue](https://community.sonarsource.com/t/javascript-out-of-heap-memory-issue/91359)

<div class="topic-metadata">

**Author:** [@Keval\_Purohit](https://community.sonarsource.com/u/Keval_Purohit)\
**Replies:** 5\
**Last updated:** [May 24, 2023, 2:17pm UTC](https://community.sonarsource.com/t/javascript-out-of-heap-memory-issue/91359 "2023-05-24T14:17:13Z")

</div>

Hello, We are currently examining our Node.js project using the sonar-scanner-4.7.0.2747-linux tool. Unfortunately, we keep encountering an out-of-heap memory error, as depicted in the attached screenshot. To addres…

---

## [Sonar Docker failed to map 44695552 bytes for committing reserved memory.and stops](https://community.sonarsource.com/t/sonar-docker-failed-to-map-44695552-bytes-for-committing-reserved-memory-and-stops/81658)

<div class="topic-metadata">

**Author:** [@theonlyroboboro](https://community.sonarsource.com/u/theonlyroboboro)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 11:46am UTC](https://community.sonarsource.com/t/sonar-docker-failed-to-map-44695552-bytes-for-committing-reserved-memory-and-stops/81658 "2023-01-20T11:46:01Z")

</div>

When using the sonarqube:lts-community image and providing the following param SONAR\_CE\_JAVAOPTS=-Xmx2G -Xms2G On startup it wil crash with the following message. # There is insufficient memory for the Java Runtime En…

---

## [Last analysis failed Analysis ID "AYVZsYYTf4C7KiZs6Lwq" - exceeded the maximum memory](https://community.sonarsource.com/t/last-analysis-failed-analysis-id-ayvzsyytf4c7kizs6lwq-exceeded-the-maximum-memory/79473)

<div class="topic-metadata">

**Author:** [@neerajhiretual](https://community.sonarsource.com/u/neerajhiretual)\
**Replies:** 1\
**Last updated:** [January 2, 2023, 4:39pm UTC](https://community.sonarsource.com/t/last-analysis-failed-analysis-id-ayvzsyytf4c7kizs6lwq-exceeded-the-maximum-memory/79473 "2023-01-02T16:39:34Z")

</div>

ALM used - GitHub Languages of the repository - JS / TS Error observed Last analysis failed Analysis ID "AYVZsYYTf4C7KiZs6Lwq" Your analysis with ID "AYVZsYYTf4C7KiZs6Lwq" has failed: the analysis of your p…

---

## [All scans now fail! SonarScanner 4.6.2.2472 java.lang.OutOfMemoryError: Java heap space](https://community.sonarsource.com/t/all-scans-now-fail-sonarscanner-4-6-2-2472-java-lang-outofmemoryerror-java-heap-space/71035)

<div class="topic-metadata">

**Author:** [@maco](https://community.sonarsource.com/u/maco)\
**Replies:** 1\
**Last updated:** [September 7, 2022, 11:34am UTC](https://community.sonarsource.com/t/all-scans-now-fail-sonarscanner-4-6-2-2472-java-lang-outofmemoryerror-java-heap-space/71035 "2022-09-07T11:34:07Z")

</div>

Version SonarQube 9.5 Enterprise, Scanner: SonarScanner 4.6.2.2472 what are you trying to achieve?: Full Scan of our product what have you tried so far to achieve this?: We tried to run this locally with more…

---

## [Maximum memory exeeded on Android project](https://community.sonarsource.com/t/maximum-memory-exeeded-on-android-project/58777)

<div class="topic-metadata">

**Author:** [@svasquezm](https://community.sonarsource.com/u/svasquezm)\
**Replies:** 3\
**Last updated:** [March 9, 2022, 9:48am UTC](https://community.sonarsource.com/t/maximum-memory-exeeded-on-android-project/58777 "2022-03-09T09:48:50Z")

</div>

In SonarCloud, an Android project throws the following error: Your analysis with ID "2e1e0938-b83e-409d-80ec-085c6a7f9aba" has failed: the analysis of your project exceeded the maximum memory available for Automatic Ana…

---

## [OutOfMemory Error for an XL Project on Azure DevOps Pipeline](https://community.sonarsource.com/t/outofmemory-error-for-an-xl-project-on-azure-devops-pipeline/45071)

<div class="topic-metadata">

**Author:** [@aozmez](https://community.sonarsource.com/u/aozmez)\
**Replies:** 8\
**Last updated:** [July 5, 2021, 3:59pm UTC](https://community.sonarsource.com/t/outofmemory-error-for-an-xl-project-on-azure-devops-pipeline/45071 "2021-07-05T15:59:54Z")

</div>

versions used: SonarQube EE v8.9.0, Sonar Scanner on Azure DevOps (latest) error observed: 2021-06-18T08:56:15.5579959Z INFO: ------------------------------------------------------------------------ 2021-06-18T08…

---

## [Memory issue using Sonarqube with Gradle](https://community.sonarsource.com/t/memory-issue-using-sonarqube-with-gradle/35767)

<div class="topic-metadata">

**Author:** [@ArnaudUrbain](https://community.sonarsource.com/u/ArnaudUrbain)\
**Replies:** 1\
**Last updated:** [December 14, 2020, 2:35pm UTC](https://community.sonarsource.com/t/memory-issue-using-sonarqube-with-gradle/35767 "2020-12-14T14:35:16Z")

</div>

which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) Developer Edition - Version 8.4.2 (build 36762) Hello, I’m trying to get Sonarqube running on a multi-project Gradle to automate t…

---

## [Unable to run the SonarScan to complete the task](https://community.sonarsource.com/t/unable-to-run-the-sonarscan-to-complete-the-task/35397)

<div class="topic-metadata">

**Author:** [@uhlhosting](https://community.sonarsource.com/u/uhlhosting)\
**Replies:** 11\
**Last updated:** [December 9, 2020, 1:02am UTC](https://community.sonarsource.com/t/unable-to-run-the-sonarscan-to-complete-the-task/35397 "2020-12-09T01:02:30Z")

</div>

Must-share information (formatted with Markdown): which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) latest stable what are you trying to achieve run a scan on my wordpress what hav…

---

## [Level=error msg="error waiting for container: unexpected EOF"](https://community.sonarsource.com/t/level-error-msg-error-waiting-for-container-unexpected-eof/32116)

<div class="topic-metadata">

**Author:** [@Eric\_Sousa](https://community.sonarsource.com/u/Eric_Sousa)\
**Replies:** 7\
**Last updated:** [October 21, 2020, 7:21pm UTC](https://community.sonarsource.com/t/level-error-msg-error-waiting-for-container-unexpected-eof/32116 "2020-10-21T19:21:23Z")

</div>

Hi all, I’m trying to perform a Sonar Cloud validation in my code using Bitbucket pipeline, but I’m getting the error message bellow: level=error msg="error waiting for container: unexpected EOF" I tried to increase …

---

## [SonarQube Memory Tuning Guidelines](https://community.sonarsource.com/t/sonarqube-memory-tuning-guidelines/31361)

<div class="topic-metadata">

**Author:** [@bcipollone](https://community.sonarsource.com/u/bcipollone)\
**Replies:** 0\
**Last updated:** [September 16, 2020, 4:35pm UTC](https://community.sonarsource.com/t/sonarqube-memory-tuning-guidelines/31361 "2020-09-16T16:35:30Z")

</div>

To keep SonarQube running at peak performance, it is important to allocate enough memory to the JVM processes that SonarQube runs on your host. This guide will provide some direction on what settings to use. The confi…

---

## [Impossible to increase memory using sonar.properties](https://community.sonarsource.com/t/impossible-to-increase-memory-using-sonar-properties/14520)

<div class="topic-metadata">

**Author:** [@morgane\_lu](https://community.sonarsource.com/u/morgane_lu)\
**Replies:** 2\
**Last updated:** [September 26, 2019, 12:03pm UTC](https://community.sonarsource.com/t/impossible-to-increase-memory-using-sonar-properties/14520 "2019-09-26T12:03:40Z")

</div>

Hello, Using Sonar 7.9 Developer edition, and we’d need to increase the allocated memory. As mentionned in the documentation, i updated the JVM settings in conf/sonar.properties : sonar.web.javaOpts=-Xmx4G -Xms4G -X…

---

## [GC overhead limit exceeded using the VSTS task](https://community.sonarsource.com/t/gc-overhead-limit-exceeded-using-the-vsts-task/2528)

<div class="topic-metadata">

**Author:** [@gregpakes](https://community.sonarsource.com/u/gregpakes)\
**Replies:** 19\
**Last updated:** [August 13, 2019, 8:25am UTC](https://community.sonarsource.com/t/gc-overhead-limit-exceeded-using-the-vsts-task/2528 "2019-08-13T08:25:01Z")

</div>

Hi, I am using the VSTS tasks and am getting the error “GC overhead limit exceeded”. I can’t see how to pass into the VSTS task the memory settings as specified here: SonarQube java.lang.OutOfMemoryError: GC overhead l…

---

## [Out of memory error while scanning](https://community.sonarsource.com/t/out-of-memory-error-while-scanning/7275)

<div class="topic-metadata">

**Author:** [@Rob\_Duff](https://community.sonarsource.com/u/Rob_Duff)\
**Replies:** 1\
**Last updated:** [February 28, 2019, 9:23am UTC](https://community.sonarsource.com/t/out-of-memory-error-while-scanning/7275 "2019-02-28T09:23:21Z")

</div>

I receive an out-of-memory stack trace when scanning a project: Versions: SonarQube 6.7.5 (build 38563) SonarQube Scanner for Jenkins Plugin v2.8.1 Sonargraph Plugin v1.6.4 Sonar Gerrit Plugin v2.3 Jenkins v2.138.2 T…

---

## [java.lang.OutOfMemoryError while starting , disk space usage](https://community.sonarsource.com/t/java-lang-outofmemoryerror-while-starting-disk-space-usage/2216)

<div class="topic-metadata">

**Author:** [@eraonel](https://community.sonarsource.com/u/eraonel)\
**Replies:** 18\
**Last updated:** [September 13, 2018, 10:29am UTC](https://community.sonarsource.com/t/java-lang-outofmemoryerror-while-starting-disk-space-usage/2216 "2018-09-13T10:29:25Z")

</div>

Hi, Do I need to add disc or memory? I am using SQ 5.6.5 2018.08.31 11:24:22 INFO es\[o.e.monitor.jvm\] \[sonar-1535706608232\] \[gc\]\[old\]\[362\]\[56\] duration \[7.5s\], collections \[1\]/\[7.7s\], total \[7.5s\]/\[7.7m\], memory \[1.…

---

## [SonarQube post processing fails with unknown reason](https://community.sonarsource.com/t/sonarqube-post-processing-fails-with-unknown-reason/1798)

<div class="topic-metadata">

**Author:** [@pkamath](https://community.sonarsource.com/u/pkamath)\
**Replies:** 7\
**Last updated:** [August 23, 2018, 8:14am UTC](https://community.sonarsource.com/t/sonarqube-post-processing-fails-with-unknown-reason/1798 "2018-08-23T08:14:23Z")

</div>

(already posted at stackoverflow - https://stackoverflow.com/questions/51848961/sonarqube-post-processing-fails-with-unknown-reason) SonarQube is failing without any meaningful error message for a .NET C# project. I tr…

---

## [SonarQube 6.7.3 OutOfMemoryError: Java heap space](https://community.sonarsource.com/t/sonarqube-6-7-3-outofmemoryerror-java-heap-space/317)

<div class="topic-metadata">

**Author:** [@mihai.cristescu](https://community.sonarsource.com/u/mihai.cristescu)\
**Replies:** 2\
**Last updated:** [July 19, 2018, 6:04pm UTC](https://community.sonarsource.com/t/sonarqube-6-7-3-outofmemoryerror-java-heap-space/317 "2018-07-19T18:04:05Z")

</div>

Hi, I have a problem with one of our PL/SQL project analysis which constantly fails. On the other hand, another larger PL/SQL project that is analyzed with the same tool completes successfully. What is the source of thi…
