Product:
Search Type:

[FIX] VE stops extremely slow

Article ID: 2120 
Last Review: Aug,27 2007
APPLIES TO:
  • Virtuozzo for Windows 3.5.1 SP1

SYMPTOMS

Some VEs stop extremely slow.

CAUSE

The possible reason is terminal server registry settings set for the current VE.

"HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services"

KeepAliveEnable

KeepAliveInterval

RESOLUTION

Remove the registry values above:

reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveEnable /f
reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveInterval /f
To remove such values automatically for all VEs C:\Program Files\SWSoft\Virtuozzo\bin\on_vps_startup.cmd  file should be edited. It’s necessary to add the following code almost to the very end of on_vps_startup.cmd  before goto quit_cmd string :

REM

REM    Deleting  "KeepAlive..." value  - causes a long delay on VPS stop

REM

reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveEnable /f

reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveInterval /f


Note:
Please back up original on_vps_startup.cmd  file before doing any changes.

Additional information

Please see also VEs take quite much time for stopping

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields