dbTalk Databases Forums  

Re: PSQL 2000i and Win2000 Terminal Server troubles

comp.databases.btrieve comp.databases.btrieve


Discuss Re: PSQL 2000i and Win2000 Terminal Server troubles in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christopher Altmann
 
Posts: n/a

Default Re: PSQL 2000i and Win2000 Terminal Server troubles - 07-14-2003 , 04:10 AM






Hello all!

Sorry for any inconvenience, but since it's been a while I
rather repost some relevant parts of my old message first.:

On Tue, 29 Apr 2003 11:40:37 +0200, Christopher Altmann
<dtbv0s3n02 (AT) sneakemail (DOT) com> wrote:

Quote:
Hello!

We have some annoying troubles with PSQL2000i SP3
(SP4 tested, did not help) on a Win2000 Terminal Server
setup. 1 Win2000 TS + 1 Win2000 (database)-server with PSQL.
Every now and then, clients exiting one of our applications
(Magic V7,Magic V8) bring the other clients accessing the same
data to an abnormal halt. Imagine 5 Users accessing the same database.
If one of them exits (succesfully) the remaining 4 get stuck and
the application runtime (MGRNTW.EXE) has to be killed via the
task manager. Other users working on a different database are not
affected at that time. Only when one of their group exits.
Any ideas? Too bad this error is not reproducable. It sometimes
happens twice a day, sometimes only twice a week.
This mostly happens on the end of the day,
after a couple of hours work.
I already tuned the "operation bundle" and "initiation time"
parameters. Made no difference.
From another magic-user I got the hint to modify/add a registry value
for the Win2000 autodisconnect "feature". Will this help?
Or is there some other "known problem"?
What about the "optimize for applicaionts/background tasks" settings
in the Win2000 system-settings?
Since the problem only affects our applications,
the admins are (understandably) hesitating to apply
each and every registry hack I forward to them.
We have a couple of applications running on MSSQL.
They don't show such a problem.
Should we forget pervasive and go to MSSQL?
[...]

I don't know if it's of importancet, but it's not plain
MS-terminal serverm, but Citrix-Nfuse instead.

I'm already in direct contact with R.Wickersham on this subject
(many thanks, Randy!), but since there have been new facts and
the issue has not been resolved yet, I'll try again here.
Furthermore, I'm trying to get as many opinions/ideas as possible.

Ok, so we are here now.
We tried the

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\LanmanServer\Parameters>]
"Autodisconnect"
parameter already without success.

We switched the database from the seperate db-server to the
terminal-server.

No success.

I read about the limitation of 2048 files in NT4-Terminal server,
but since this is Win200 it's 8192 files per session which should do.

What we found out meanwhile:

Imagine a 5 user setup, 3 users (User 1, 2 and 3)
are currently using the application (and are listed in
Pervasive-monitor).
If user 1 exits the application (successfully, no errors),
users 2 and 3 hang.
If their application window is minimized and in background,
they won't even notice what has happened just now.
Users 4 and 5 (they haven't been in the application yet) can enter
the application and work.
They also don't know of the fact user 2 and 3 hang.
So Pervasive is acting normally to the rest of the users.
Just user 2 and 3 are stuck.
If user 2 tries to maximize the application window
(for example: about 1 hour later), he realizes it's stuck.
His only way out is to kill his TS-session (via an admin login)
and start over.
Remember: User 3 is still stuck, but since he has not
yet tried to maximize the app, he just doesn't know.

So for me this looks like:

Pervasive is running fine until some "error" occurs and communication
between the DB-server and TS on the currently open
communication-channel
(socket?) is completely blocked. If a user starts over, there's no
problem, since a new connection-channel (socket?) is
established for the data-communication.
This runs fine, until another error occurs, and this new channel
is blocked also. Then the group of users currently using the same
connection-channel is blocked. Weird!
I am told by the client, moving the database to the
terminal-server didn't help.
So it seems to be PSQL-client related.
Again: We cannot forcibly reproduce this behaviour.
Everything runs fine for hours (connects,disconnects) up till
some point where this "error" happens (mostly in the evening,
when many users exit their apps).
Are there any known tools to prove my theory?
Any system-logging options, which could shed some more
light on this issue?
I read a lot on similar issues in this newsgroup, but could
not find any solution or success stories.
Since some users don't experience this behaviour,
I assume it's a conflict between PSQL/Magic and some very
common program running on the TS. (Fax-Solution/Antivirus Utilty/...)

Thanks for ANY info.
best regards
Chris



Reply With Quote
  #2  
Old   
Christopher Altmann
 
Posts: n/a

Default Re: PSQL 2000i and Win2000 Terminal Server troubles - 07-15-2003 , 12:19 AM






Hello Bartholomew!

Thank you for your input.
Find my answers below.

[...]
On Mon, 14 Jul 2003 23:09:45 +0200, "Bartłomiej Mełnicki"
<b.melnicki (AT) nova-trading (DOT) nospam.com> wrote:

[...]
Quote:
Just a thought:
Three users, when one exits, rest of them hangs. Application
will hang when it requests anything from DB. For me it
looks like all three instances of app are using exactly the same
session ID. When one of them close it, the rest cannot communicate
with DB engine, app has no support for this kind of DB connection state.
[...]

Do you know how I can find that out?
We already copied the runtime to several different .exes for
testing purposes. The PID shown in pervasive monitor (=Task No)
is definitely different.

[...]
Quote:
Auto reconnect can obfuscate situation and may in some cases
recover app even from this state, so at first glance everything looks OK.
Could you ask author/support for assistance ?
[...]

I'll turn Autoreconnect of. Further support is already initiated.


[...]
Quote:
I wonder what happens when client 1 and 2 run the app,
then client 1 exit, and BEFORE client 2 will do anything, client
3 log-in. Should client 2 proceed or hang ?
[...]

Client 2 hangs.
For example:
Client 2 is not currently using the app in foreground, because of some
office/mail work (also over terminal server session) to be done in
foreground.
About 4 hours later he decides to continue to work on the application
again. He is still stuck, although client 1 has probably reentered the
app 3 hours ago.
Since client 3 started AFTER client 1+2 hang, client 3 won't even
notice that 1+2 are stuck.


[...]
Quote:
Another scenario to
check: client 1 and 2 enter, then 1 exits. What will happen with client 2 ?
[...]

client 2 hangs.

[...]
Quote:
Try these with no other activity related to that app. Maybe there is
sort of hardcoded session/client ID based on MAC address, in
Terminal Server/Citrix all instance have exactly the same address.
How that app behaves on single non-TS Windows machine when
multiple instances are launched ?
[...]

No problem if accessing different databases,
even if it's the same .exe-file. Locks when accessing
the same db.
The application was running fine on their "normal" networks before.
The client then wanted to connect all branch offices via DSL
and Citrix-TS.



[...]
Quote:
Is it only Btrieve/Pervasive app that runs unstable in this environment ?
[...]

Yes, I'm afraid.
The same app based on MSSQL works like a charm.


[...]
Quote:
Maybe I'm totally wrong but at least it could give you some inspiration.
[...]

Thanks anyway. I'm already at the point where I accept
"quit your job and start selling cars"-messages.
...But on the other hand, I'm not really that good at lying ;-)

Anyone knows of a tool dumping a list of currently running
processes into a .txt file every X-seconds?

Thanks + best regards
Chris


Reply With Quote
  #3  
Old   
Christopher Altmann
 
Posts: n/a

Default Re: PSQL 2000i and Win2000 Terminal Server troubles - 07-15-2003 , 12:35 AM



On Tue, 15 Jul 2003 07:19:30 +0200, Christopher Altmann
<noemaillookintoreplyto (AT) sneakemail (DOT) com> wrote:

[...]
Quote:
Anyone knows of a tool dumping a list of currently running
processes into a .txt file every X-seconds?
[...]

Never mind, I'll try to figure out how to get pslist from
sysinternals looping.

Bye
Chris


Reply With Quote
  #4  
Old   
Christopher Altmann
 
Posts: n/a

Default Re: PSQL 2000i and Win2000 Terminal Server troubles - 07-20-2003 , 02:46 PM



On Wed, 16 Jul 2003 22:04:15 +0200, "Bartłomiej Mełnicki"
<b.melnicki (AT) nova-trading (DOT) nospam.com> wrote:

[...]
Quote:
Have you tried to switch communication protocol to another
(TCPI/IP => IPX or vice versa). It could give some hints if
it is network related or not.
[...]

I already suggested this to the admins.
Since they are running a lot of other software
there, I'll have to wait for them to find out
if it will interfere with anything else.
I did a cross-check on all available terminal-servers with
PSQL-problems of any kind and listed all running processes.
I'm not in the office yet, but I'l list them here later.
Some things I remember:
- they're all running CITRX (not simple MS-TS)
- they're all running a couple of Compaq-Utilities
(monitoring and such) in background

Any known issues with them?


[...]
Quote:
not related to one app only. Why not remove drivers completely -
by Pervasive's tool, not unistall - and check another (older) version
of client software ?
[...]

We already downgrade from SP4 to SP3 for that issue.
I also think this is client related.
Thank you for your ideas, I'm currently in waiting position,
since I'm not allowed to apply all the changes myself.
I'll be back ;-)

bye
Chris


Reply With Quote
  #5  
Old   
Christopher Altmann
 
Posts: n/a

Default Re: PSQL 2000i and Win2000 Terminal Server troubles - 07-24-2003 , 03:58 AM



On Sun, 20 Jul 2003 21:46:06 +0200, Christopher Altmann
<noemaillookintoreplyto (AT) sneakemail (DOT) com> wrote:

[...]
Quote:
I'm not in the office yet, but I'l list them here later.
[...]

Ok, so here's the list:

process what for
-------- ------------
beremote BACKUP EXEC
cdmsvc CITRIX
cpqnimgt Compaq NIC Agents Service
CpqRcmc Compaq Remote Monitor Service
cpqwmgmt Compaq Web Agent
cpushld Powerfuse
cqmghost Compaq Insight Host Agents
cqmgserv Compaq Server Agent
cqmgstor Compaq Storage Agents
CTFMON Language Bar
ctxxmlss Citrix Nfuse
encsvc ...yet to find out
facsys Fax-Software
guardian ...yet to find out
ImaSrv Citrix
mfcom Metaframe
pwrmenu Powerfuse
rdpclip Terminal Services clipboard facility
res Powerfuse
scardsvr Smart Card Control Manager
SMSS Windows NT Session Manager
snmp SNMP Agent Service
SpntSvc Trend Antivirus
surveyor Surveyor (Compaq Computer Corp.)
sysdown Compaq System Shutdown Service
vcagent ...yet to find out
wfshell Citrix WinFrame
WinMgmt Windows Management Service


Any known issues with one of these?
Thanks

Chris



Reply With Quote
  #6  
Old   
Dave Holt
 
Posts: n/a

Default Re: PSQL 2000i and Win2000 Terminal Server troubles - 09-02-2003 , 08:36 AM




We had a very similar problem with our application and Win2000 TS.



Do you run the Magic application along a mapped drive in a TS session to
another server?



If so we found that the first user who logs into a Win2K TS session and
loads the application creates the file control block. If other users
logged in and opened the same application, they used the same file
control block. If however the user who logged in first logs out all of
the other users would hang. There was also an exception on the screen
stating C0000006. But once the criteria was know it was very easy.



There is an article on the MS KB stating that it was a know error and
that it would not be fixed until Win 2003 server (which it has been).
There soultion was to either use a SUBST command and move the database
locally if the mapped drive letter was hard coded or use a local set of
program files.



For our application a local set of EXE and DLL files solved the error.



It may be nothing but it's worth trying.



Regards,



Dave


--
Posted via http://dbforums.com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.