# On-prem Nexpose Security Console - Database Optimization

**URL:** <https://discuss.rapid7.com/t/on-prem-nexpose-security-console-database-optimization/6399>\
**Category:** InsightVM\
**Created:** [August 16, 2021, 10:01pm UTC](https://discuss.rapid7.com/t/on-prem-nexpose-security-console-database-optimization/6399 "2021-08-16T22:01:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vedison3.0](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/v/a5b964/32.png) [@vedison3.0](https://discuss.rapid7.com/u/vedison3.0)\
**Post date:** [August 16, 2021, 10:01pm UTC](https://discuss.rapid7.com/t/on-prem-nexpose-security-console-database-optimization/6399/1 "2021-08-16T22:01:38Z")

</div>

Is there a way to optimize the database of on-prem Nexpose Security Console?

---

<div class="post-metadata">

**Author:** ![holly\_wilsey](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/holly_wilsey/32/78_2.png) [@holly\_wilsey](https://discuss.rapid7.com/u/holly_wilsey)\
**Post date:** [August 19, 2021, 7:58pm UTC](https://discuss.rapid7.com/t/on-prem-nexpose-security-console-database-optimization/6399/2 "2021-08-19T19:58:12Z")

</div>

We have some recommendations for optimizing database performance here:

[https://docs.rapid7.com/nexpose/configuring-maximum-performance-in-an-enterprise-environment/#tuning-the-postgresql-database](https://docs.rapid7.com/nexpose/configuring-maximum-performance-in-an-enterprise-environment/#tuning-the-postgresql-database)

One option is to create a `CustomRuntimeEnvironment.env` file, which enables you to limit the amount of memory that the Java Virtual Machine uses for the console and free up memory for the database. You just want to be cognizant of existing memory requirements for the console.

Another thing you can do is edit the `postgresql.conf` file to tune your settings based on the version of PostgreSQL you’re currently running. The link above walks you through these things in more detail.
