Solved

trouble shooting '03 term server disconnects

Posted on 2008-06-19
15
561 Views
Last Modified: 2010-04-21
SO,
I'm having users complain that they get disconnected from their term server connection intermittently.

There's 3 servers in the cluster and I'm using session directory on a 4th server.

I've set the logging on in the registry, and recently re-started it, so as to get a new clean TSSDIS.LOG file
(btw ... open in wordpad, not notepad ... it's an ugly file)

Trying to track users' sessions through this file is dificult, let me include a small snippet

So, the question is, once I have a username (in this case dviskoe), how do I tell what the dissconnect is?
do the codes at the begining of each line have a meaning ?
can I change the time stamp to reflect local time (and date?)

or am I going the wrong way totally on this, is there a better method of tracking users' sessions ?

any help would be greatly appreciated...

 
9944: 14:27:54 PM In DeleteExistingServerSession, ServID=2, SessID=34

9944: 14:27:54 PM Deleted 0 for ServID=2, SessID=34

9944: 14:27:54 PM RepopAllSess: ServID = 2, SessionId = 34, dowens FHSM...

9944: 14:30:54 PM In GetUserDiscSess: ServID = 1, User: dbirkholz, Domain: FHSM

9944: 14:30:54 PM Inside TSSDRpcCreateSession, ServID=1, UserName=dbirkholz, Domain=FHSM, SessID=17, TSProt=2, AppType=, ResWidth=1024, ResHeight=768, ColorDepth=4

9944: 14:30:54 PM  CreateTime=6/18/2008 9:30:54 AM

9944: 14:30:54 PM In DeleteExistingServerSession, ServID=1, SessID=17

9944: 14:30:54 PM Deleted 0 for ServID=1, SessID=17

9944: 14:38:12 PM In GetUserDiscSess: ServID = 1, User: mmonteiro, Domain: FHSM

9944: 14:38:12 PM Inside TSSDRpcCreateSession, ServID=1, UserName=mmonteiro, Domain=FHSM, SessID=21, TSProt=2, AppType=, ResWidth=1024, ResHeight=768, ColorDepth=4

9944: 14:38:12 PM  CreateTime=6/18/2008 9:38:12 AM

9944: 14:38:12 PM In DeleteExistingServerSession, ServID=1, SessID=21

9944: 14:38:12 PM Deleted 0 for ServID=1, SessID=21

6152: 14:38:45 PM In GetUserDiscSess: ServID = 3, User: rporro, Domain: FHSM

6152: 14:38:45 PM Inside TSSDRpcCreateSession, ServID=3, UserName=rporro, Domain=FHSM, SessID=16, TSProt=2, AppType=, ResWidth=1024, ResHeight=768, ColorDepth=4

6152: 14:38:45 PM  CreateTime=6/18/2008 9:38:45 AM

6152: 14:38:45 PM In DeleteExistingServerSession, ServID=3, SessID=16

6152: 14:38:45 PM Deleted 0 for ServID=3, SessID=16

6152: 14:42:06 PM In GetUserDiscSess: ServID = 2, User: dviskoe, Domain: FHSM

6152: 14:42:06 PM Inside TSSDRpcCreateSession, ServID=2, UserName=dviskoe, Domain=FHSM, SessID=9, TSProt=2, AppType=, ResWidth=800, ResHeight=600, ColorDepth=4

6152: 14:42:06 PM  CreateTime=6/18/2008 9:42:06 AM

6152: 14:42:06 PM In DeleteExistingServerSession, ServID=2, SessID=9

6152: 14:42:06 PM Deleted 0 for ServID=2, SessID=9

6152: 14:53:30 PM In DelSession, ServID=1, SessID=6

Open in new window

0
Comment
Question by:CorpTechLLC
  • 7
  • 7
15 Comments
 
LVL 5

Expert Comment

by:virtuatech
ID: 21824813
There is a paid software: http://www.terminalserviceslog.com
But it looks like it does the same thing that the registry setting does, it just gives it to you in plain English.  
From reading your log file though, it doesn't look like there were any disconnects.
0
 
LVL 1

Author Comment

by:CorpTechLLC
ID: 21825349
Hmm,
OK, I've downloaded the Demo of that term services logging, hopefully it will help, i'll have to install tonight.

Here's another snippet of a user (janderson)  that had problems jus this afternoon:

The ServID=13 is confusing, I've only 3 servers ?
Should the rest of those #'s mean anything too me ?? (sessID; TSProt) or the cryptic log codes (SetSessDisc, GetUserDiscSess, TSSDRpcCreateSession ) ??


4180: 17:43:11 PM In GetUserDiscSess: ServID = 13, User: janderson, Domain: FHSM

4180: 17:43:11 PM Inside TSSDRpcCreateSession, ServID=13, UserName=janderson, Domain=FHSM, SessID=18, TSProt=2, AppType=, ResWidth=1024, ResHeight=768, ColorDepth=4

4180: 17:43:11 PM  CreateTime=6/19/2008 12:43:11 PM

4180: 17:43:11 PM In DeleteExistingServerSession, ServID=13, SessID=18

4180: 17:43:11 PM Deleted 0 for ServID=13, SessID=18

4180: 17:44:01 PM In SetSessDisc, ServID=13, SessID=18

4180: 17:44:01 PM  DiscTime=6/19/2008 12:44:01 PM

4180: 17:45:11 PM In DelSession, ServID=13, SessID=18

4180: 17:47:10 PM In GetUserDiscSess: ServID = 13, User: janderson, Domain: FHSM

4180: 17:47:10 PM Inside TSSDRpcCreateSession, ServID=13, UserName=janderson, Domain=FHSM, SessID=18, TSProt=2, AppType=, ResWidth=1024, ResHeight=768, ColorDepth=4

4180: 17:47:10 PM  CreateTime=6/19/2008 12:47:10 PM

4180: 17:47:10 PM In DeleteExistingServerSession, ServID=13, SessID=18

4180: 17:47:10 PM Deleted 0 for ServID=13, SessID=18

4180: 17:52:17 PM In DelSession, ServID=16, SessID=9

4180: 17:55:51 PM In DelSession, ServID=13, SessID=18

4180: 18:02:22 PM In DelSession, ServID=16, SessID=4

4180: 18:03:39 PM In SetSessDisc, ServID=13, SessID=19

4180: 18:03:39 PM  DiscTime=6/19/2008 1:03:39 PM

4180: 18:04:13 PM In SetSessRec, ServID=13, SessID=19, TSProt=2, ResWid=1024, ResHt=768, ColDepth=4

4180: 18:08:30 PM In GetUserDiscSess: ServID = 13, User: janderson, Domain: FHSM

4180: 18:08:30 PM Inside TSSDRpcCreateSession, ServID=13, UserName=janderson, Domain=FHSM, SessID=18, TSProt=2, AppType=, ResWidth=1024, ResHeight=768, ColorDepth=4

4180: 18:08:30 PM  CreateTime=6/19/2008 1:08:30 PM

4180: 18:08:30 PM In DeleteExistingServerSession, ServID=13, SessID=18

4180: 18:08:30 PM Deleted 0 for ServID=13, SessID=18

4180: 18:10:04 PM In DelSession, ServID=13, SessID=18

4180: 18:10:40 PM In DelSession, ServID=15, SessID=8

Open in new window

0
 
LVL 5

Expert Comment

by:virtuatech
ID: 21828262
Where is the user located?  I've had this issue before where users were on a WAN and their connection would time-out occasionally.
0
 
LVL 1

Author Comment

by:CorpTechLLC
ID: 21831545
*most* compliants are coming from home users, We've a secure VPN tunnel that we allow RDP through,
I'm pretty sure nothing is wrong on the VPN side, error log looks clean.
0
 
LVL 5

Accepted Solution

by:
virtuatech earned 500 total points
ID: 21831884
In that case, take a look at this:
http://terminal.servebeer.com/php/flaky_connections.php

Here are the reg keys you will need to modify

Basically you will make sure that the TS will maintain a KeepAlive "heartbeat" to each client, as well as the TCP/IP portion of it.

I haven't messed around with the TcpMaxDataRetransmissions yet, so I would recommend you try the KeepAlives first.
Let me know how it goes.
Windows Registry Editor Version 5.00
 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]

"KeepAliveEnable"=dword:00000001
 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Tcpip\Parameters]

"KeepAliveInterval"=dword:1000

"KeepAliveTime"=dword:1800000

Open in new window

0
 
LVL 1

Author Comment

by:CorpTechLLC
ID: 21855466
Some good info there, thanks for the link, lemme me try it and see how it goes...

0
 
LVL 1

Expert Comment

by:juggernaughty
ID: 21857890
There is a local computer policy to enable keepalives in Windows TS 2003. Will this do the same thing that modifying the registry does?
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 5

Expert Comment

by:virtuatech
ID: 21859677
I'm running 2000 servers, so I can't check but I'm pretty sure it's the same thing.
0
 
LVL 1

Author Comment

by:CorpTechLLC
ID: 21920075
we're not using any policys on the Term servers, so I made the REG changes las weekend, so far so good, although one of the servers crashed yesterday, all his network connections dissapeared. Hopefully unrelated.

I'll keep an eye on them for a few more days and cross my fingers.
0
 
LVL 5

Expert Comment

by:virtuatech
ID: 22003231
How did the reg edits turn out?  Were you able to resolve this issue?
0
 
LVL 1

Author Comment

by:CorpTechLLC
ID: 22007096
Well, I thought it was fixed, but a user called late last week and again over the weekend,
When I went to her house last thurs, there was an odd screen that came up after logging into the term server...
It looked like it was going to connect, but instad of the IP of the term server, it had the loopback address listed in the window bar at the top(is there a name for that thing ??) it flashed for 1 sec. then the whole screen went away.

I might be going about this from the wrong side ... are there any client settings I should be tweaking ?

... it's still funnie to me that doing google searches about things in that !@#$%^ tssdis.log file will only return this thread ...
I guess it really is just me
0
 
LVL 5

Expert Comment

by:virtuatech
ID: 22008444
How are your users connecting to your Terminal servers remotely?  VPN? Public IP?
0
 
LVL 1

Author Comment

by:CorpTechLLC
ID: 22010461
just a NATed hole in the firewall via public IP
0
 
LVL 5

Expert Comment

by:virtuatech
ID: 22191682
Were you able to resolve this issue?
0
 
LVL 1

Author Closing Comment

by:CorpTechLLC
ID: 31468814
Well, it's still supposedly happening, but only from outside the firewall now.
So, I'm pretty sure this is going to be as good as it gets,
Thanks for your help!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
change home folder path 4 45
clearing an obsolete 2003 server from our domain 8 59
Moving RDP Server to New Server. 3 48
2003 File Server upgrade 11 54
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now