# Nexus OSS throwing 50X errors due to JVM out of memory

**URL:** https://community.sonatype.com/t/nexus-oss-throwing-50x-errors-due-to-jvm-out-of-memory/9154
**Category:** Sonatype Nexus Repository
**Created:** [August 18, 2022, 5:09pm UTC](https://community.sonatype.com/t/nexus-oss-throwing-50x-errors-due-to-jvm-out-of-memory/9154 "2022-08-18T17:09:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![btucker](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@btucker](https://community.sonatype.com/u/btucker)
#### Post date: [August 18, 2022, 5:09pm UTC](https://community.sonatype.com/t/nexus-oss-throwing-50x-errors-due-to-jvm-out-of-memory/9154/1 "2022-08-18T17:09:28Z")

</div>

Machine has 16g of ram and the vm.options are configured as follows:

-Xms2703m  
-Xmx2703m  
-XX:MaxDirectMemorySize=2703m

The last 3 days running the JVM has run out of memory and crashed taking down the instance and requiring a restart of the instance or at least the service. This has started occurring since updating to the latest 3.41.0-01. Is this a bug? It looks like the max is 4g based on this document here: [System Requirements](https://help.sonatype.com/repomanager3/product-information/system-requirements)

Is anyone else seeing this?

---

<div class="post-metadata">

### Author: ![btucker](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@btucker](https://community.sonatype.com/u/btucker)
#### Post date: [August 25, 2022, 1:59pm UTC](https://community.sonatype.com/t/nexus-oss-throwing-50x-errors-due-to-jvm-out-of-memory/9154/2 "2022-08-25T13:59:30Z")

</div>

I have updated to the latest 3.41.1 and will observe to see if the error resurfaces. So far we have not seen it yet though it was not happening every day before either.

Will post back in a few days with more observations if nobody has responded.

---

<div class="post-metadata">

### Author: ![btucker](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@btucker](https://community.sonatype.com/u/btucker)
#### Post date: [August 30, 2022, 4:46pm UTC](https://community.sonatype.com/t/nexus-oss-throwing-50x-errors-due-to-jvm-out-of-memory/9154/3 "2022-08-30T16:46:32Z")

</div>

Hoping I don’t jinx things but the latest version update 3.41.1 has not had the issue for 5 days running where previously it was happening on an every day or every other day cadence.
