Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Lots of blocking from SQLNS

 
   Database Forums (Home) -> Notification Services RSS
Next:  proxy  
Author Message
brooks

External


Since: May 04, 2005
Posts: 1



(Msg. 1) Posted: Wed May 04, 2005 3:43 pm
Post subject: Lots of blocking from SQLNS
Archived from groups: microsoft>public>sqlserver>notificationsvcs (more info?)

Hi, everyone. I'm embarassed to admit that I set up a SQLNS app some
time ago, and it's been so long since I worked with it that I'm at a
loss for where to start troubleshooting.

A SQLNS server that I work with is experiencing an inordinately high
volume of blocking. In particular, the procedure
NSAssignNextWorkItemToDistributor seems to be blocking itself quite a
bit, presumably meaning that it's being launched more frequently than
it completes.

Can some kind soul give me a couple of tips:

- Could this procedure be bogging down due to a poor maintenance scheme
in the NS config? If so, what should I look for?

- Alternatively, could I have misconfigured it to run too frequrntly?
Again, what should I be looking for?

Thanks much
-Brooks

 >> Stay informed about: Lots of blocking from SQLNS 
Back to top
Login to vote
Joe Webb1

External


Since: Apr 28, 2004
Posts: 408



(Msg. 2) Posted: Wed May 04, 2005 10:09 pm
Post subject: Re: Lots of blocking from SQLNS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Brooks -

It's good to have apps that run without problem for so long without
problems that you almost forget about them. Smile

I'm assuming you're using SQLNS 2.0 SP1. Are you running Standard
Edition or Enterprise?

What's the QuantumDurantion for the Generator?

What about for the Distributor? (When the Distributor component is
idle, you can control how often it checks for work items to process by
adjusting the <QuantumDuration> element in the <Distributor> node of
the ADF. This *only* effects the Distributor when it's idle. As long
as it's processing work items, it'll keep checking before going into
an idle state.)

How many Delivery Channels do you have defined for the protocols
supported by the Notification Class? The more Delivery Channels, the
more possible work items that will be created. Each is considered
independent and will be processed in parallel.

How many Distributors do you have defined? And what's the
ThreadPoolSize?

Have you adjusted the Notification Batch Size (assuming Enterprise
version)?

Other general performance considerations: Scheduled the vacuumer to
run periodically during non-peak times to clean up old data and
curtail distributor logging.


HTH...

--
Joe Webb
SQL Server MVP


~~~
Get up to speed quickly with SQLNS
<a rel="nofollow" style='text-decoration: none;' href="http://www.amazon.com/exec/obidos/tg/detail/-/0972688811" target="_blank">http://www.amazon.com/exec/obidos/tg/detail/-/0972688811</a>

I support PASS, the Professional Association for SQL Server.
(www.sqlpass.org)


On 4 May 2005 15:43:45 -0700, brooks.DeleteThis@frnk.com wrote:

 >Hi, everyone. I'm embarassed to admit that I set up a SQLNS app some
 >time ago, and it's been so long since I worked with it that I'm at a
 >loss for where to start troubleshooting.
 >
 >A SQLNS server that I work with is experiencing an inordinately high
 >volume of blocking. In particular, the procedure
 >NSAssignNextWorkItemToDistributor seems to be blocking itself quite a
 >bit, presumably meaning that it's being launched more frequently than
 >it completes.
 >
 >Can some kind soul give me a couple of tips:
 >
 >- Could this procedure be bogging down due to a poor maintenance scheme
 >in the NS config? If so, what should I look for?
 >
 >- Alternatively, could I have misconfigured it to run too frequrntly?
 >Again, what should I be looking for?
 >
 >Thanks much
 >-Brooks

 >> Stay informed about: Lots of blocking from SQLNS 
Back to top
Login to vote
Shyam Pather MSFT

External


Since: Aug 05, 2004
Posts: 96



(Msg. 3) Posted: Fri May 06, 2005 3:16 pm
Post subject: Re: Lots of blocking from SQLNS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Brooks,
Do you perhaps have extra delivery channels defined in your application that
aren't used (i.e. there are no/very few subscriber devices configured for
those delivery channels)? There is a bug in Notification Services SP1 where,
if you have defined many delivery channels in your ICF (config file) that
aren't used, the distributor mistakenly tries to grab new work items too
often. THis leads to the blocking you're describing.

We do have a hotfix available for this problem. You will need to contact
Product Support to obtain it.

Thanks
-shyam

--
Learn more about SQL-NS:
<a rel="nofollow" style='text-decoration: none;' href="http://www.amazon.com/exec/obidos/tg/detail/-/0672326647/" target="_blank">http://www.amazon.com/exec/obidos/tg/detail/-/0672326647/</a>
---------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
<a rel="nofollow" style='text-decoration: none;' href="http://www.microsoft.com/info/cpyright.htm." target="_blank">http://www.microsoft.com/info/cpyright.htm.</a>
---------------------------------------------
wrote in message

 > Hi, everyone. I'm embarassed to admit that I set up a SQLNS app some
 > time ago, and it's been so long since I worked with it that I'm at a
 > loss for where to start troubleshooting.
 >
 > A SQLNS server that I work with is experiencing an inordinately high
 > volume of blocking. In particular, the procedure
 > NSAssignNextWorkItemToDistributor seems to be blocking itself quite a
 > bit, presumably meaning that it's being launched more frequently than
 > it completes.
 >
 > Can some kind soul give me a couple of tips:
 >
 > - Could this procedure be bogging down due to a poor maintenance scheme
 > in the NS config? If so, what should I look for?
 >
 > - Alternatively, could I have misconfigured it to run too frequrntly?
 > Again, what should I be looking for?
 >
 > Thanks much
 > -Brooks
 >
 >> Stay informed about: Lots of blocking from SQLNS 
Back to top
Login to vote
Ram

External


Since: Jan 23, 2009
Posts: 1



(Msg. 4) Posted: Thu Jan 22, 2009 9:25 pm
Post subject: RE: Lots of blocking from SQLNS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

below two sps are participating in the deadlock
• NSAssignNextWorkItemToDistributor (Exclusive lock)
• NSMarkWorkItemDistributionStart (Update lock)
on the below indexes
indid name
------ -----------------------------
1 NSDistributorWorkItemsPK
10 status_distributor_workitems
on NSDistributorWorkItems table. this occurestwice or thrice in an hour. can anyone suggest the soln.


From http://www.google.co.in/search?hl=en&q=SQL+server+Notification+service...SAssign

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/
 >> Stay informed about: Lots of blocking from SQLNS 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Integrating an existing application with SQLNS - Hi I am facing a problem similar to a previous post in this forum. I have an existing application and we need to integrate SQLNS inorder to cater our Notification requirements. I'm not able to figure out how the appADF.xml file has to be configured..

Notification when Locked Process is Blocking - Hello We have an issue with our SQL database, where when a Process ID locks and then starts to block other process id's. This then has a knock on affect then other process id's get block and in a couple of minutes we have a database that is un-useabl...

NS API Question - Is it possible to have an arseembly in SQL 2005 to expose the NS API? The idea is to have interfaces exposed as web services from SQL 2005 directly that allow for the management of NS subscriptions. This would allow the existing ASP.Net 1.1 code to cal...

Clean out??? - I was asked to look into a problem a customer was having , Turned out they moved SMTP server and in the process the generator got disabled. This was back in May. So I have that all squared away and now I'm looking for a quick way to clear out the..

sql mail integration - i have configured sql mail in sql server 2000. the mailid is also successfully getting tested. but when i execute the xp_sendmail command i get the following error Server: Msg 18025, Level 16, State 1, Line 0 xp_sendmail: failed with mail error..
   Database Forums (Home) -> Notification Services All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]