Re: SQL Server 2000 and Latching problem



Are these mostly read only requests or do they involve Inserts, Updates and
Deletes? That seems pretty limiting to have only a single thread processing
these requests. In any case that is no where near enough info to determine
what the issues are. My guess would be lack of proper indexes or poorly
formed queries. How much ram on the SQL Server? Oh and is there anything
else on the same server other than SQL Server?

--
Andrew J. Kelly SQL MVP


"Simon Goss" <s.goss@xxxxxxxxxxxx> wrote in message
news:R1BL71isFHA.8272@xxxxxxxxxxxxxxxxxxxxxxxxxxx
> hi all.
>
> got a question - wondered if you guys have come across this.
>
> I have an application that acts as a database "server" where it captures
> requests for information from many clients (1-100+ but 30 is typical)
> where it then interrogates a SQL server database on their behalf, and
> then returns the results. Its a single-threaded application, so various
> clients requests have to be queued.
>
> anyway - this is working ok, except ive noticed that occasionally my
> single connection to the odbc server seems to freeze for about 300sec
> before going on a bit more accepting some more connections and then
> freezes again.
> Searches on MS technet show this is evidence of latching - and also
> event log confirms this. advice from microsoft is - keep ldf and mdf on
> separate physical devices as latches are usually caused by i/o unable to
> keep up with the application. so we have done this, but still getting
> latches when the activity of the "server" (the gateway between the
> application clients and the sql server) seems to rise. worst case, the
> gateway application can be dealing with a request every 1ms , but i
> would have thought anywhere between 1-10ms is average - its not flat out
> all the time.
>
> so - i suppose the short question is - is there any way i can avoid
> latching completely? its an application that used to use ISAM database
> format, but this new gateway "captures" isam-style requests for info and
> converts them to a sql request as this is where the info is stored now.
> it was considered too expensive to rewrite the client software, so we
> emulate an ISAM situation by realtime "translation" of isam<->SQL
>
> any thoughts anyone ? please feel free to email me here or directly -
> but id really appreciate any pointers!
> thanks!
> -s
>
>
> _____________________________________
>
> Simon Goss
> Senior Products Consultant
> Marval Software Limited
>
>


.



Relevant Pages

  • Re: how do you handle multiple update request on the database?
    ... I made the assumption that the OP was using an RDBMS like SQL Server, ... requests that come in at the same time to the server. ... Any database will handle #2 fine. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ThreadAbort Exceptions !! HELP !!
    ... Well we checked for queued requests last night and there were none during ... Looks like our SQL server box is ... trace seems to usually point at a webservice not an aspx page. ... System.Threading.WaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean ...
    (microsoft.public.dotnet.framework.webservices)
  • SQL Server 2000 and Latching problem
    ... I have an application that acts as a database "server" where it captures ... clients requests have to be queued. ...
    (microsoft.public.sqlserver.connect)
  • SQL Server 2000 and Latching problem
    ... as the clients could talk to the database directly. ... anything if the SQL server is dedicated or not. ... Are these mostly read only requests or do they involve Inserts, ...
    (microsoft.public.sqlserver.connect)
  • Re: Update Performance
    ... First thing I would do would be to add a unique index on the id column. ... Pro SQL Server 2000 Database Design - ... >I have a stored procedure that is executed on every web request that we ... > If I comment out this line, I get about 350 Requests a second. ...
    (microsoft.public.sqlserver.programming)