Buscar este blog

17 dic 2009

Problemas con el administrador de Terminal Server.

Bueno, esto me ha pasado en un cliente.
En el administrador de Terminal server aparecía el servidor con un interrogante amarillo y no se podía conectar nadie a los servicios de Terminal Server.
No aparecía ningún tipo de error en el visor de sucesos.
Brujuleando un poco por internet he encontrado muchas preguntas sobre este error y muy pocas respuestas, pero al final una de ellas me ha llevado a una página de Microsoft donde he encontrado una solución que parece que funciona.
La página es la siguiente:
http://support.microsoft.com/default.aspx?scid=kb;en-us;324446
En resumen, el error viene de un problema de rendimiento de la máquina y de Terminal Server.
La solución propuesta es la siguiente:
Step 1. Turn on the "Enable advanced performance" feature in Windows Server 2003 or the Power Protect option in Windows 2000
Windows Server 2003
To turn on the Enable advanced performance feature on a Windows Server 2003-based computer, follow these steps:
Warning We recommend that you only enable the Enable advanced performance feature for disks that have a backup power supply. This setting improves disk performance, but it also increases the risk of data loss if the disk loses power.
  1. Click Start, right-click My Computer, and then click Manage.
  2. Under System Tools, click Device Manager.
  3. In the right pane, expand Disk drives.
  4. Right-click the disk drive that you want to configure, and then click Properties.
  5. Click the Policies tab.
  6. If the Enable write caching on the disk check box is selected, click to select the Enable advanced performance check box.
  7. Click OK.
Step 2. Configure registry subkeys
You must also configure the following registry subkeys on the Terminal server and on all file servers:
Note This section applies to both Windows Server 2003 and to Windows 2000.
  • In the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Lanmanserver\Parameters subkey, configure the following entries:
    • Name: MaxWorkItems
      Data Type: REG_DWORD
      Value data: 8192 (decimal)
    • Name: MaxMpxCt
      Data Type: REG_DWORD
      Value data: 2048 (decimal)
    • Name: MaxRawWorkItems
      Data Type: REG_DWORD
      Value data: 512 (decimal)
    • Name: MaxFreeConnections
      Data Type: REG_DWORD
      Value data: 100 (decimal)
    • Name: MinFreeConnections
      Data Type: REG_DWORD
      Value data: 32 (decimal)
  • In the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Lanmanworkstation\Parameters subkey, configure the following entry:
    • Name: MaxCmds
      Data Type: REG_DWORD
      Value data: 2048 (decimal)
  • By default, your registry does not have a Configuration Manager subkey. To create the key, locate and then right-click the following subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager
    Point to New, and then click Key. Type Configuration Manager, and then press ENTER.
    In the new HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Configuration Manager subkey, configure the following entry:

    • Name: RegistryLazyFlushInterval
      Data Type: REG_DWORD
      Value data: 60 (decimal)
Bueno, y después de todo esto y de reiniciar el servidor, todo parece funcionar correctamente.
Espero que os resulte útil.

3 comentarios:

Anónimo dijo...

Aunque ha pasado mucho tiempo desde esta solución, a mi me ha sucedido lo mismo en un Windows 2003 server R2. Y el problema es que se queda bloqueado alguna impresora en los equipos conectados por terminal server, y la solución es reiniciar el servicio de cola de impresión y se levanta otra vez el servicio de terminal server. Por lo menos a mi me ha funcionado.

RBarbarin dijo...

Hola "Anónimo"
Muchas gracias por tu aportación.
Lo tendré en cuenta si me vuelvo a encontrar el error.

Jose dijo...

Hola, Ricardo, al hacer lo que explicas, efectivamente se arregló el problema que tenía con las sesiones de Terminal Server, sin embargo, las sesiones de Citrix dejaron de funcionar dandome un error de E/S. No se si puedes estar relacionado con los parámetros del registro. ¿Se te ocurre algo que pueda ayudarme? Saludos!