---
title: Restoring the preserved JVM options
description: When administrators run the PingFederate service-installation program install-service.bat, the upgrade utility creates a new installation based on the source installation and copies the jvm-memory.options file from the source installation to the new installation. You can edit the jvm-memory.options file with a time stamp to restore the preserved JVM options that exist in the jvm-memory.options file from the source installation.
component: pingfederate
version: 13.1
page_id: pingfederate:performance_tuning_guide:pf_restore_preserve_jvm
canonical_url: https://docs.pingidentity.com/pingfederate/13.1/performance_tuning_guide/pf_restore_preserve_jvm.html
llms_txt: https://docs.pingidentity.com/pingfederate/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: November 10, 2022
section_ids:
  about-this-task: About this task
  steps: Steps
  result: Result
---

# Restoring the preserved JVM options

When administrators run the PingFederate service-installation program `install-service.bat`, the upgrade utility creates a new installation based on the source installation and copies the `jvm-memory.options` file from the source installation to the new installation. You can edit the `jvm-memory.options` file with a time stamp to restore the preserved JVM options that exist in the `jvm-memory.options` file from the source installation.

## About this task

Use the command prompt to edit the `jvm-memory.options` file with a time stamp.

## Steps

1. Rename the current`jvm-memory.options` file. For example,`jvm-memory.options.backup`.

2. Look for the preserved `jvm-memory.options` file.

   |   |                                                   |
   | - | ------------------------------------------------- |
   |   | The preserved file was renamed with a time stamp. |

3. Remove the time stamp from the file name.

   |   |                                                                              |
   | - | ---------------------------------------------------------------------------- |
   |   | The `jvm-memory.options` is the file preserved from the source installation. |

4. Open a command prompt and go to the `<pf_install>/pingfederate/sbin/wrapper` directory.

5. Run `generate-wrapper-jvm-options.bat`.

   |   |                                                                                                                                                                                       |
   | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | This helper utility reads the JVM options from the `jvm-memory.options` file and creates a resource file that the PingFederate Windows service requires to configure its JVM options. |

6. Close the command prompt.

   The preserved file was renamed with a time stamp.

7. Restart the PingFederate Windows service.

## Result

The preserved JVM options are activated as the PingFederate service starts.
