all groups > sql server replication > november 2006 >
You're in the

sql server replication

group:

Prcess could not execute 'sp_MSadd_repl_commands27hp'


Prcess could not execute 'sp_MSadd_repl_commands27hp' BATMAN
11/10/2006 11:52:01 AM
sql server replication:

Hello all,

Our log reader agent is failing at times with the error "The process could
not execute 'sp_MSadd_repl_commands27hp' on 'DistributorServerName'...

We have custom distribution agents that have -CommitBatchSize = 500 and
-CommitBatchThreshold = 1000...

I'm also noticing that our distribution agent cleanup agent progressively
takes longer through our peak. From 10 minutes to close to an hour...

So I'm thinking we are having contention between the distribution db cleanup
and maybe our -CommitBatchSize...

Any recommendations?

Re: Prcess could not execute 'sp_MSadd_repl_commands27hp' Hilary Cotter
11/10/2006 2:58:59 PM
Stop the distribution agent and run the log reader agent again. You may need
to enable logging and post the results back here if the condition does not
clear.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Re: Prcess could not execute 'sp_MSadd_repl_commands27hp' BATMAN
11/13/2006 12:35:02 PM
OK... Here is what is in the log... It goes from working fine to throwing
errors to working fine again:
-------------------------------------------------------
....
Status: 16384, code: 20007, text: 'No replicated transactions are available.'.
Status: 2, code: 1003, text: 'The process could not execute
'sp_MSadd_repl_commands27hp' on 'DistServerName'.'.
The process could not execute 'sp_MSadd_repl_commands27hp' on
'DistServerName'.
Status: 2, code: 1003, text: 'Timeout expired'.
Status: 0, code: 22020, text: 'Batches were not committed to the
Distributor.'.
The agent failed with a 'Retry' status. Try to run the agent at a later time.
Status: 4096, code: 20024, text: 'Initializing'.
Status: 4, code: 20051, text: 'Delivering replicated transactions'.
Status: 2, code: 1003, text: 'The process could not execute
'sp_MSadd_repl_commands27hp' on 'DistServerName'.'.
The process could not execute 'sp_MSadd_repl_commands27hp' on
'DistServerName'.
Status: 2, code: 1003, text: 'Timeout expired'.
Status: 0, code: 2000, text: 'IDistPut Interface has been shut down.'.
The agent failed with a 'Retry' status. Try to run the agent at a later time.
Status: 4096, code: 20024, text: 'Initializing'.
Status: 4, code: 20051, text: 'Delivering replicated transactions'.
....
-------------------------------------------------------

Thanks!

Michael


[quoted text, click to view]
Re: Prcess could not execute 'sp_MSadd_repl_commands27hp' BATMAN
11/13/2006 1:39:02 PM

At the time the below error occured, the "Distribution clean up:
distribution" job was running:
-------------------------------------------------------------------------------------
....
Status: 2, code: 1003, text: 'The process could not execute
'sp_MSadd_repl_commands27hp' on 'ANETREPUBVSQL1F'.'.
The process could not execute 'sp_MSadd_repl_commands27hp' on
'DistServerName'.
Status: 2, code: 1003, text: 'Timeout expired'.
Status: 0, code: 22020, text: 'Batches were not committed to the
Distributor.'.
The agent failed with a 'Retry' status. Try to run the agent at a later time.
....
-------------------------------------------------------------------------------------

As I noticed before, our distribution cleanup takes 30-50 minutes to
complete during peak traffic.

Thanks,

Michael




[quoted text, click to view]
Re: Prcess could not execute 'sp_MSadd_repl_commands27hp' Hilary Cotter
11/14/2006 12:00:00 AM
Stop the distribution clean up task until your log reader has processed all
of your commands in the log. Set readbatchsize to 500 and the querytimeout
and log timeout to something large - I would try 300. These settings are for
your log reader agent.

--
Hilary Cotter

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Re: Prcess could not execute 'sp_MSadd_repl_commands27hp' BATMAN
11/14/2006 12:06:02 PM
The default Log Reader agent profile has a -ReadBatchSize of 500 and a
-QueryTimeout of 300 already...

So when you say "log timeout to something large - I would try 300", are you
meaning the QueryTimeout? Again, FYI... This is SQL 2000.

Anyway, I upped the QueryTimeout to 600 and I'm still getting the timeout...

Thanks,

Michael



[quoted text, click to view]
Re: Prcess could not execute 'sp_MSadd_repl_commands27hp' BATMAN
11/14/2006 1:02:02 PM
OK... I upped the QueryTimout to 1800 and I got the error "The agent is
suspect. No response within last 10 minutes."...

Thanks,

Michael

[quoted text, click to view]
AddThis Social Bookmark Button