---
title: Windows tuning
description: Follow these recommendations for your Windows environment to prevent deployment issues, to increase the performance and the capacity of the networking stack, specifically the TCP socket, and to enable PingFederate to handle a high volume of concurrent requests.
component: pingfederate
version: 13.1
page_id: pingfederate:performance_tuning_guide:pf_windows_tuning
canonical_url: https://docs.pingidentity.com/pingfederate/13.1/performance_tuning_guide/pf_windows_tuning.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: July 5, 2022
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Windows tuning

Follow these recommendations for your Windows environment to prevent deployment issues, to increase the performance and the capacity of the networking stack, specifically the TCP socket, and to enable PingFederate to handle a high volume of concurrent requests.

## About this task

Use Command Prompt and a Registry Editor to edit the `cmd.exe` file and the `regedit.exe` file respectively.

## Steps

1. Edit the `jvm-memory.options` file with a time stamp.

   1. Start the Command Prompt application `cmd.exe`.

   2. Enter `netsh int ipv4 show dynamicportrange tcp` to view the ephemeral ports.

   3. Enter `netsh int ipv4 set dynamicport tcp start=1025 num=64510` to increase the range of the ephemeral ports using administrative privileges.

   4. Reboot the server.

   5. Enter `netsh int ipv4 show dynamicportrange tcp` to confirm the updated port range.

2. Reduce socket TIME\_WAIT delay.

   1. Start the Registry Editor application `regedit.exe`.

   2. Go to `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters`.

   3. Create a new DWORD 32 bit value and set the name as `TcpTimedWaitDelay`.

   4. Set a decimal value of `30`.

   5. Reboot the server.
