Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Management help. Insert times out, but server is up and running.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vinko  
View profile  
 More options Jun 11 2008, 4:52 am
Newsgroups: microsoft.public.sqlserver.newusers
From: Vinko <vin...@gmail.com>
Date: Wed, 11 Jun 2008 01:52:40 -0700 (PDT)
Local: Wed, Jun 11 2008 4:52 am
Subject: Management help. Insert times out, but server is up and running.
Hi, everytime I put some load on my SQL Server, I get timeouts when
trying to insert in a specific table (the table that gets the most
insert activity). It does not matter if I do the insert in the
Management Console or programmatically, it still times out. It is
fixed by a server reboot.

It only happens after load, say some 50 processes continuously
inserting into this table for a while (around 12 hours). So it smells
like livelock but I'm newbie in SQL Server administration so I don't
know where to peek and how to solve it. I've been watching the
activity monitor, but see no weird state in any connection

If I insert in another tables of the same database, it works.

As extra information I can tell that there's a daily backup process
that still has not completed (some 4 hours after its start). But that
the timeouts started to occur this time some 6 hours before the time
the backup was scheduled for.

So, what I'd like to know is how to detect what is really happening
here and what can I do to fix this without rebooting the machine (or
the server), hopefully tweaking only SQL Server, as the code that does
the insert is not under my control, but if I can provide proof of a
bug on their part that would be great too, as it would serve to make
them generate a fix.

The insert that fails looks like

insert into calleventstbl
(callId,startTime,endTime,type,subType,term,found,confidence,resourceID,ite ration,resourceName,Text,language)
 SELECT '63401','79','83','3','1',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','86','118','3','4',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','208','309','3','4',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','335','364','3','4',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','372','387','3','1',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','388','393','3','1',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','394','407','3','1',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','435','440','3','1',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT
'63401','1','5','1','1','PSUT_Portales_y_comercios_1','1','37','1315','3',' Portales
y comercios','portales y comercios','2'

it also fails if I do

insert into calleventstbl
(callId,startTime,endTime,type,subType,term,found,confidence,resourceID,ite ration,resourceName,Text,language)
 SELECT
'63401','9','13','1','1','PSUT_Traspaso_10','1','71','1150','3','Traspaso', 'es
un traspaso a cuenta','2'

or

insert into calleventstbl
(callId,startTime,endTime,type,subType,term,found,confidence,resourceID,ite ration,resourceName,Text,language)
 VALUES
('63401','9','13','1','1','PSUT_Traspaso_10','1','71','1150','3','Traspaso' ,'es
un traspaso a cuenta','2')


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Moreau  
View profile  
 More options Jun 11 2008, 8:27 am
Newsgroups: microsoft.public.sqlserver.newusers
From: "Tom Moreau" <t...@dont.spam.me.cips.ca>
Date: Wed, 11 Jun 2008 08:27:03 -0400
Local: Wed, Jun 11 2008 8:27 am
Subject: Re: Management help. Insert times out, but server is up and running.
This sounds like you have an open transaction somewhere.  Run DBCC OPENTRAN
in that DB.  If it ha something to report, take note of the SPID and the
time the transaction was begun.  Do this when the backup is NOT running.  If
the SPID and time never change, then it looks like a connection has begun a
transaction and never committed it or rolled it back.

--
   Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON   Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau

"Vinko" <vin...@gmail.com> wrote in message

news:b648f48a-27a8-465a-b03f-fc6f5a29590d@x35g2000hsb.googlegroups.com...
Hi, everytime I put some load on my SQL Server, I get timeouts when
trying to insert in a specific table (the table that gets the most
insert activity). It does not matter if I do the insert in the
Management Console or programmatically, it still times out. It is
fixed by a server reboot.

It only happens after load, say some 50 processes continuously
inserting into this table for a while (around 12 hours). So it smells
like livelock but I'm newbie in SQL Server administration so I don't
know where to peek and how to solve it. I've been watching the
activity monitor, but see no weird state in any connection

If I insert in another tables of the same database, it works.

As extra information I can tell that there's a daily backup process
that still has not completed (some 4 hours after its start). But that
the timeouts started to occur this time some 6 hours before the time
the backup was scheduled for.

So, what I'd like to know is how to detect what is really happening
here and what can I do to fix this without rebooting the machine (or
the server), hopefully tweaking only SQL Server, as the code that does
the insert is not under my control, but if I can provide proof of a
bug on their part that would be great too, as it would serve to make
them generate a fix.

The insert that fails looks like

insert into calleventstbl
(callId,startTime,endTime,type,subType,term,found,confidence,resourceID,ite r
ation,resourceName,Text,language)
 SELECT '63401','79','83','3','1',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','86','118','3','4',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','208','309','3','4',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','335','364','3','4',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','372','387','3','1',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','388','393','3','1',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','394','407','3','1',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT '63401','435','440','3','1',' ','1','-1','0','0','x','0','-1'
 UNION ALL
 SELECT
'63401','1','5','1','1','PSUT_Portales_y_comercios_1','1','37','1315','3',' P
ortales
y comercios','portales y comercios','2'

it also fails if I do

insert into calleventstbl
(callId,startTime,endTime,type,subType,term,found,confidence,resourceID,ite r
ation,resourceName,Text,language)
 SELECT
'63401','9','13','1','1','PSUT_Traspaso_10','1','71','1150','3','Traspaso', '
es
un traspaso a cuenta','2'

or

insert into calleventstbl
(callId,startTime,endTime,type,subType,term,found,confidence,resourceID,ite r
ation,resourceName,Text,language)
 VALUES
('63401','9','13','1','1','PSUT_Traspaso_10','1','71','1150','3','Traspaso' ,
'es
un traspaso a cuenta','2')


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinko  
View profile  
 More options Jun 11 2008, 11:25 am
Newsgroups: microsoft.public.sqlserver.newusers
From: Vinko <vin...@gmail.com>
Date: Wed, 11 Jun 2008 08:25:26 -0700 (PDT)
Local: Wed, Jun 11 2008 11:25 am
Subject: Re: Management help. Insert times out, but server is up and running.
On 11 jun, 14:27, "Tom Moreau" <t...@dont.spam.me.cips.ca> wrote:

> This sounds like you have an open transaction somewhere.  Run DBCC OPENTRAN
> in that DB.  If it ha something to report, take note of the SPID and the
> time the transaction was begun.  Do this when the backup is NOT running.  If
> the SPID and time never change, then it looks like a connection has begun a
> transaction and never committed it or rolled it back.

Happened again, and it seems your prognosis was spot on.

Oldest active transaction:
    SPID (server process ID): 12s
    UID (user ID) : -1
    Name          : SetExpectedRowCount
    LSN           : (121363:7464:59)
    Start time    : Jun 11 2008  5:18:32:497PM
    SID           : 0x0
DBCC execution completed. If DBCC printed error messages, contact your
system administrator

now is 5:24 PM so it certainly seems stuck, and it never changes.

so, what do I do now? I can't find the process id "12s"

V.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinko  
View profile  
 More options Jun 11 2008, 11:29 am
Newsgroups: microsoft.public.sqlserver.newusers
From: Vinko <vin...@gmail.com>
Date: Wed, 11 Jun 2008 08:29:48 -0700 (PDT)
Local: Wed, Jun 11 2008 11:29 am
Subject: Re: Management help. Insert times out, but server is up and running.
On 11 jun, 17:25, Vinko <vin...@gmail.com> wrote:

this is the result of select * from sys.sysprocesses where spid = 12

12      5404    0       0x00CC  579781  MSSEARCH

        1       1       0       62      0       2008-06-11 11:18:11.763 2008-06-11 11:18:11.763 0       0
background
0x0100000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000

                        FT CATLG
MONITOR

sa

0x0000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000
0x0000000000000000000000000000000000000000      0       0       0


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Moreau  
View profile  
 More options Jun 11 2008, 11:35 am
Newsgroups: microsoft.public.sqlserver.newusers
From: "Tom Moreau" <t...@dont.spam.me.cips.ca>
Date: Wed, 11 Jun 2008 11:35:13 -0400
Local: Wed, Jun 11 2008 11:35 am
Subject: Re: Management help. Insert times out, but server is up and running.
You need to find out what the 12s means.  I've never seen that and I don't
think it relates to SPID 12.  Is there anything else in sys.sysprocesses
that looks like 12s?

--
   Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON   Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau

"Vinko" <vin...@gmail.com> wrote in message

news:8f7581bc-1a88-48d1-906a-c1ef3f9084b3@k37g2000hsf.googlegroups.com...
On 11 jun, 17:25, Vinko <vin...@gmail.com> wrote:

this is the result of select * from sys.sysprocesses where spid = 12

12 5404 0 0x00CC 579781 MSSEARCH

1 1 0 62 0 2008-06-11 11:18:11.763 2008-06-11 11:18:11.763 0 0
background
0x0100000000000000000000000000000000000000000000000000000000000000000000000 0
000000000000000000000000000000000000000000000000000000000000000000000000000 0
0000000000000000000000

          FT CATLG
MONITOR

sa

0x0000000000000000000000000000000000000000000000000000000000000000000000000 0
000000000000000000000000000000000000000000000000000000000000000000000000000 0
000000000000000000000000000000000000000000000000000000000000000000000000000 0
000000000000000000000000000000
0x0000000000000000000000000000000000000000 0 0 0


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinko  
View profile  
 More options Jun 11 2008, 12:08 pm
Newsgroups: microsoft.public.sqlserver.newusers
From: Vinko <vin...@gmail.com>
Date: Wed, 11 Jun 2008 09:08:11 -0700 (PDT)
Local: Wed, Jun 11 2008 12:08 pm
Subject: Re: Management help. Insert times out, but server is up and running.
Okay, that's part of the Full Text indexing service, and the
problematic table is the only one that has FT enabled. I killed the
msftesql process and restarted full text indexing service and it
worked.

So we now know the culprit, but not yet the why.

If you see my other problems posted today, at least one of them also
seem related to full text issues (restores that fail).
Is it that unstable? Do I have it misconfigured?

The catalog was created as on a "template" database that is later
copied to (or restored into) the production database (I mean that this
was only ran once, not on the current production database, is this
relevant?)

On the template DB it was created as:

  EXEC sp_fulltext_database 'enable'

  CREATE FULLTEXT CATALOG [myFullText]
  WITH ACCENT_SENSITIVITY = ON

  CREATE FULLTEXT INDEX ON [dbo].[callEventsTbl] KEY INDEX
[PK_callEventsTbl] ON [myFullText] WITH CHANGE_TRACKING AUTO
  ALTER FULLTEXT INDEX ON [dbo].[callEventsTbl] ADD ([Text])
  ALTER FULLTEXT INDEX ON [dbo].[callEventsTbl] ENABLE

  SET NOCOUNT OFF


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Moreau  
View profile  
 More options Jun 11 2008, 12:16 pm
Newsgroups: microsoft.public.sqlserver.newusers
From: "Tom Moreau" <t...@dont.spam.me.cips.ca>
Date: Wed, 11 Jun 2008 12:16:03 -0400
Local: Wed, Jun 11 2008 12:16 pm
Subject: Re: Management help. Insert times out, but server is up and running.
Not sure.  Could you please post this in the .fulltext newsgroup?  They may
have a solution there.  At least, we have found the source...

--
   Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON   Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau

"Vinko" <vin...@gmail.com> wrote in message

news:bfaa7949-9cb1-4d1b-9c67-3e993dbaa026@8g2000hse.googlegroups.com...
Okay, that's part of the Full Text indexing service, and the
problematic table is the only one that has FT enabled. I killed the
msftesql process and restarted full text indexing service and it
worked.

So we now know the culprit, but not yet the why.

If you see my other problems posted today, at least one of them also
seem related to full text issues (restores that fail).
Is it that unstable? Do I have it misconfigured?

The catalog was created as on a "template" database that is later
copied to (or restored into) the production database (I mean that this
was only ran once, not on the current production database, is this
relevant?)

On the template DB it was created as:

  EXEC sp_fulltext_database 'enable'

  CREATE FULLTEXT CATALOG [myFullText]
  WITH ACCENT_SENSITIVITY = ON

  CREATE FULLTEXT INDEX ON [dbo].[callEventsTbl] KEY INDEX
[PK_callEventsTbl] ON [myFullText] WITH CHANGE_TRACKING AUTO
  ALTER FULLTEXT INDEX ON [dbo].[callEventsTbl] ADD ([Text])
  ALTER FULLTEXT INDEX ON [dbo].[callEventsTbl] ENABLE

  SET NOCOUNT OFF


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinko  
View profile  
 More options Jun 11 2008, 12:46 pm
Newsgroups: microsoft.public.sqlserver.newusers
From: Vinko <vin...@gmail.com>
Date: Wed, 11 Jun 2008 09:46:46 -0700 (PDT)
Local: Wed, Jun 11 2008 12:46 pm
Subject: Re: Management help. Insert times out, but server is up and running.
On 11 jun, 18:16, "Tom Moreau" <t...@dont.spam.me.cips.ca> wrote:

> Not sure.  Could you please post this in the .fulltext newsgroup?  They may
> have a solution there.  At least, we have found the source...

Excellent. Many thanks for your help, moving on to .fulltext...

V.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google