---
title: Memory allocation and database cache
description: "Explains PingDirectory memory allocation and database cache fundamentals behind the setup tool's automated JVM tuning."
component: pingdirectory
version: 11.1
page_id: pingdirectory:pingdirectory_server_administration_guide:pd_ds_memory_alloc_db_cache
canonical_url: https://docs.pingidentity.com/pingdirectory/11.1/pingdirectory_server_administration_guide/pd_ds_memory_alloc_db_cache.html
llms_txt: https://docs.pingidentity.com/pingdirectory/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: September 13, 2023
---

# Memory allocation and database cache

Memory allocation and database cache comprise the basic components of the PingDirectory server footprint and logic behind the automated tuning of the `setup` tool.

The PingDirectory server's optimal performance is dependent on:

* The proper allocation of memory to the Java Virtual Machine (JVM) heap

* The number of processor cores in the system

* The correct combination of JVM options for optimized garbage collection

The `setup` tool for the PingDirectory server automatically assigns the JVM options and determines the memory allocation based on the total amount of memory on the system; however, in most production deployments, additional tuning might be required to meet the performance objectives for your system.

Often server performance tuning can be accomplished by adjusting a few settings. Tuning these settings, which include both JVM and configuration options, requires an understanding of the JVM heap structure and the expected database usage.
