Re: too many connections



pardhi a via SQLMonster.com (u8956@uwe) writes:
> I am a dba for sql server recently we are facing problems with the no of
> connections.
>
> we have a database called ( x ) every day almost million users is using
> that databse after some time the cpu showing 100 percent utilization an
> error throwing like odbc error connection so in that case no one is able
> to connect to the server.when we pause it then restart the server for
> some time it looks good then again it will go to 100 % utilization.but
> there is no blocking occuring

You need to do some analysis to find out where this CPU usage is coming
from. Set up a Profiler trace which initially filters SQL:BatchCompleted
and SP:RPCCompleted for a events with a duration > 100 ms (or some other
limit you find reasonable). From that you may be able to dig down to
the exact queries that are causing problem.

As for running out of connections, this indicates a problem in the
application that never closes the connections. This may or may not be
related to the poor queries.

Is this a vendor application, or something which is developped in-house?


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

.



Relevant Pages

  • Re: Access 2007->SQL Server2005 "connection was forcibly closed",G
    ... connections need to be returned to the pool to be ... Enterprise version of SQL Server 2000. ... server user login to be sure that it is not mixed with other running clients). ... Every new client opens again 30 connections if I open 30 tables ...
    (microsoft.public.sqlserver.connect)
  • Re: Access 2007->SQL Server2005 "connection was forcibly closed",G
    ... an Access database in former times this was a lot of work which took me ... closed connections - but all of these errors are in the version which used ... the SQL Server 2000 and everything worked ... client for programming easy, fast and good applications. ...
    (microsoft.public.sqlserver.connect)
  • Re: Access 2007->SQL Server2005 "connection was forcibly closed",G
    ... I think it will ameliorate the situation if you clean up the client as ... And to come back to my problem: I think with help of the SQL Server admins ... closed connections - but all of these errors are in the version which used ... Every new client opens again 30 connections if I open 30 tables ...
    (microsoft.public.sqlserver.connect)
  • Re: Access 2007->SQL Server2005 "connection was forcibly closed",G
    ... And to come back to my problem: I think with help of the SQL Server admins ... closed connections - but all of these errors are in the version which used ... communication between ODBC (OLEDB and Native Client, ... Every new client opens again 30 connections if I open 30 tables ...
    (microsoft.public.sqlserver.connect)
  • Re: SQL server connection problem
    ... I've tried to change the user connections to 0, ... "SQL server connection time out. ... The following message appears when restart the server and before login ... I receive Error message: “A connection could not be established to ...
    (microsoft.public.sqlserver.clients)