# Optimize OrientDB in Nexus2

**URL:** <https://community.sonatype.com/t/optimize-orientdb-in-nexus2/9281>\
**Category:** Sonatype Nexus Repository\
**Created:** [September 9, 2022, 10:40am UTC](https://community.sonatype.com/t/optimize-orientdb-in-nexus2/9281 "2022-09-09T10:40:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![malice](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@malice](https://community.sonatype.com/u/malice)\
**Post date:** [September 9, 2022, 10:40am UTC](https://community.sonatype.com/t/optimize-orientdb-in-nexus2/9281/1 "2022-09-09T10:40:31Z")

</div>

I noticed some messages in Nexus’ log about changing some settings for the OrientDB:

```auto
2022-09-09 07:00:21 INFO [Timer-0] - com.orientechnologies.common.profiler.OAbstractProfiler$MemoryChecker - Database 'npm' uses 3,480MB/4,096MB of DISKCACHE memory, while Heap is not completely used (usedHeap=4398MB maxHeap=7282MB). To improve performance set maxHeap to 5277MB and DISKCACHE to 6100MB
2022-09-09 07:00:21 INFO [Timer-0] - com.orientechnologies.common.profiler.OAbstractProfiler$MemoryChecker - -> Open server.sh (or server.bat on Windows) and change the following variables: 1) MAXHEAP=-Xmx5277M 2) MAXDISKCACHE=6100

```

After googling this, I found blog post about how to optimize the DB for Nexus3: [https://support.sonatype.com/hc/en-us/articles/115007093447-Optimizing-OrientDB-Database-Memory-](https://support.sonatype.com/hc/en-us/articles/115007093447-Optimizing-OrientDB-Database-Memory-)  
However, since I am running a Nexus2 instance, this is not directly helpful for me.

Is there any documentation out there on how to do the same thing as mentioned in the article but for Nexus2? If no documentation exists, but someone knows how to set this up, a reply to this post would obviously be really helpful as well.
