all groups > sql server notification services > may 2005 >
You're in the

sql server notification services

group:

Lots of blocking from SQLNS


Lots of blocking from SQLNS brooks NO[at]SPAM frnk.com
5/4/2005 3:43:45 PM
sql server notification services:
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
Re: Lots of blocking from SQLNS Joe Webb
5/4/2005 10:09:28 PM
Hi Brooks -

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

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
http://www.amazon.com/exec/obidos/tg/detail/-/0972688811

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


[quoted text, click to view]
Re: Lots of blocking from SQLNS Shyam Pather [MSFT]
5/6/2005 3:16:04 PM
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:
http://www.amazon.com/exec/obidos/tg/detail/-/0672326647/
---------------------------------------------
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
http://www.microsoft.com/info/cpyright.htm.
---------------------------------------------
[quoted text, click to view]

AddThis Social Bookmark Button