Troubleshooting of paged or nonpaged memory pool shortage

August 19th, 2008 by keith Leave a reply »

Virtuozzo shares NP pool between VEs so it is not recommended to run more than 40-45 VEs on one  x86 node  (w2k3 x64 has 128GB NP pool limit so there are possible to run more VEs without any  problems).

The problem can be tracked in the following way:

1. Open Task Manager, go to Performance tab and see Non-paged pool usage in Kernel Memory Usage area. Nonpaged value should be less than 220000K . Non-paged pool size limit is about 256000K, so if it’s overloaded,  physical server becomes unresponsive ( It is valid for x86 (Non-64Bit)  architecture only).

2. To find out the process which consumes Non paged memory pools, please open Processes tab, go to the top menu View, Select columns, check PID, Session ID and Non-paged Pool checkboxes.

3. Sort processes list by NP Pool column and look for the process with the largest NP Pool value.  Remember the PID value of this process.

4. Please open cmd and use vzquery command line tool to find out which VE runs the process.

vzquery p2v <PID_found_at_previous_step>

5. Then you can try to determinate which services belong to the process:

vzctl exec VEID tasklist /svc

Example:

PID is 10872, the process is svchost.exe

vzquery p2v 10872
Process ID: 10872
Session ID: 7 (ROOT)

VE ID: 119

Image Name                     PID Services
========================= ========
============================================
System Idle Process              0 N/A
System                           4 N/A
smss.exe                       868 N/A
csrss.exe                     4388 N/A
winlogon.exe                  6032 N/A
services.exe                  2628 Eventlog, PlugPlay
lsass.exe                     3316 Netlogon, PolicyAgent, ProtectedStorage,                                SamSs
svchost.exe                  10104 DcomLaunch
svchost.exe                   8248 RpcSs
svchost.exe                   3112 Dhcp, Dnscache
svchost.exe                  10440 LmHosts
svchost.exe                  10872 AeLookupSvc, BITS, Browser, CryptSvc,
EventSystem, helpsvc, lanmanserver,
lanmanworkstation, Messenger, Nla,
Schedule, seclogon, SENS, winmgmt, wuauserv
spoolsv.exe                  11680 Spooler
msdtc.exe                    12044 MSDTC

Command 'exec' is successfully finished

So, svchost.exe grabs the memory from the pool and the recommendation could be  the following:

Disable BITS and Automatic updates (wuauserv) service:
vzctl exec VEID sc config wuauserv start= disabled

vzctl exec VEID sc config bits start= disabled
vzctl restart VEID
Advertisement

Leave a Reply