# Java heap space ERROR in newly upgraded sonar

**URL:** <https://community.sonarsource.com/t/java-heap-space-error-in-newly-upgraded-sonar/7947>\
**Category:** SonarQube Server / Community Build\
**Created:** [March 20, 2019, 2:19pm UTC](https://community.sonarsource.com/t/java-heap-space-error-in-newly-upgraded-sonar/7947 "2019-03-20T14:19:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![raphael\_greger](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/raphael_greger/32/3279_2.png) [@raphael\_greger](https://community.sonarsource.com/u/raphael_greger)\
**Post date:** [April 10, 2019, 10:48am UTC](https://community.sonarsource.com/t/java-heap-space-error-in-newly-upgraded-sonar/7947/4 "2019-04-10T10:48:44Z")

</div>

Hi Ann  
Thank you for your answer.  
Your solution works. I set “-Dsonar.ce.javaOpts=-Xmx2048m” and the error do not occur anymore.

---

_[View the full topic](https://community.sonarsource.com/t/java-heap-space-error-in-newly-upgraded-sonar/7947)._
