DBWEB: dbWeb Service Stops Responding During Concurrent RequestsID: Q152793
|
Moderate: Requires basic macro, coding, and interoperability skills.
When the dbWeb Service receives two or more hits at the same time, the
service may stop responding (hang) and display one of the following error
messages:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Catch -- dbWebClient
-or-
Request failed
The network connection encountered an error.
Please try again later.
Catch -- dbWebClient
When a site has two or more concurrent requests, the dbWeb service spawns a separate execution thread for each request. When a thread is no longer used, it must be terminated. When the dbWeb service enters a routine to clean up unused threads generated by the concurrent requests, and encounters a deadlock, it will not return from a wait state. This causes the dbWeb CGI client stub program to time out. This behavior can occur with the Microsoft Access ODBC driver (Odbcjt32.dll).
There are two workarounds for this problem:
net stop dbwebservice
net start dbwebservice
at 0:01 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 1:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 2:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 3:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 4:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 5:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 6:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 7:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 8:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 9:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 10:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 11:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 12:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 13:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 14:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 15:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 16:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 17:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 18:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 19:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 20:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 21:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 22:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 23:00 /every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,_
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 c:\strtstop.bat
at 00:01 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 01:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 02:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 03:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 04:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 05:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 06:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 07:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 08:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 09:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 10:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 11:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 12:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 13:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 14:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 15:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 16:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 17:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 18:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 19:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 20:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 21:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 22:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
at 23:00 /every M,T,W,Th,F,S,Su c:\strtstop,bat
Microsoft has confirmed this to be a problem in Microsoft dbWeb 1.0. This problem no longer occurs in Microsoft dbWeb version 1.1.
Each command loaded by the Dbwstop.bat file is entered into the Windows NT
Registry. Because each command is a Registry entry, the Dbwstop.bat file is
used only to load AT commands. The Registry values entered are static and
will remain until removed even after the server has been restarted. Setting
the "Schedule Service Startup Type" to Automatic ensures that the Schedule
Service will also restart.
The examples demonstrated in this article establish a schedule of stopping
and restarting the dbWeb service on a periodic basis. An analysis of the
dbWeb site should be performed to determine the best interval for the stop
and restart to occur. The Stop and Restart action only needs about 4
seconds or so on a 66mhz 486 computer with 32mb RAM. Faster hardware should
perform at least as well.
Altering the schedule will require you to make additional entries to the
Dbwstop.bat file for shorter intervals between actions or fewer entries for
longer intervals. You can control the interval by altering the time value
immediately following the AT in the command line. Once you make changes to
the Dbwstop.bat file, you must remove any previous schedule (if any) from
the Registry by typing the following command in an MS-DOS window:
AT /delete
For more information about AT commands, search for "NT Commands," and then "AT" using the Microsoft Windows NT Server Help Index.
Additional query words: CGI error failed locked up
Keywords : kberrmsg NpdOthr
Version : 1.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 22, 1999