PVWA IIS "Private Virtual Memory" and "Private Memory Limit" Configuration
89
Created On 11/10/26 10:53 AM - Last Modified 11/10/26 15:52 PM
Objective
If there is a requirement to applying Secure Technical Implementation Guidelines (STIGs) to production IIS servers running on Windows Server 2016 and newer, then in IIS, the "Private Virtual Memory" and "Private Memory Limit" settings must be something other than 0. This article goes over how to apply these settings properly.
Reference Links:
https://stigviewer.com/stig/iis_8.5_site/2018-01-03/finding/V-76871
https://stigviewer.com/stig/iis_8.5_site/2019-01-08/finding/V-76869
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7
Procedure
- Identify IIS Worker Process Current Load
- Login to PVWA server and open IIS Console
- Select the Server level (in my case, my server is called COMPONENTSS)
- Double-click “Worker Processes” under IIS section
-
- Identify the App Pool that is in use for the PVWA and look at the “Virtual Bytes (KB)” section
-
- Write down that integer(in my case, 2,165,868,532 KB) This is my benchmark of what PVWA’s IIS App Pool is running as.
- Double that integer (in my case, 4,331,737,064 KB). For sake of rounding, I’m using 4,000,000,000 KB.
- Change IIS App Pool Load via Advanced Settings
- Login to PVWA server and open IIS Console
- Select “Application Pools”
- Select “PasswordVaultWebAccessPool” if it exists, if not, select the relevant App Pool identified above
- Select “Advanced Settings…” on the right pane
- Set “Private Memory Limit (KB)” to 4000000000 (4 and 9 zeros)
- Set “Virtual Memory Limit (KB)” to 4000000000 (4 and 9 zeros)
-
- Click OK
- Open elevated CMD prompt
- Execute “iisreset”
- Test PVWA by logging in and keeping an active session for more than a minute. If the session lasts more than 30 seconds, you've successfully set this STIG correctly that doesn't impeve the PVWA from performing properly.