Solved

Activity not captured by System Monitor (aka perfmon) when using the Log Reader Agent command line execution

Posted on 2011-09-06
4
194 Views
Last Modified: 2012-06-04
When running the LogRead.EXE instead of the SQL2k5 native Log Reader Agent UI, it appears that the System Monitor is not collecting the data points (the values are 0). Is there a way to collect these points?
However, when the Agent UI runs we see the collected data under the SQL Server: Replication Logreader Delivered Cmd/sec and Trans/sec counters. Here is the sample command line that is being executed every 10sec via SQL Job scheduler. As an aside, if anyone knows a way to execute the SQL job less than 10sec via the SQL Scheduler - please inform on it too :)
logread -Publisher S1 -PublisherDB DB1 -Distributor DB2 -DistributorLogin distributor_admin -DistributorPassword xxxxxxxxxxxx -MaxCmdsInTran 20000
0
Comment
Question by:DaJazzer
4 Comments
 
LVL 17

Expert Comment

by:dbaSQL
ID: 36502402
With regard to the job execution less than 10 seconds, as you know, the gui won't allow this.   You could schedule two job tasks offset by X seconds, but you need to be sure they don't overlap.

You could also get around the SQL Server Agent scheduling problem by using windows:
http://stackoverflow.com/questions/2809442/sql-server-job-with-precise-timing
0
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 36512639
Or you could just write your own sql in a infinite while loop
something like
while 0=0
begin
         --start job here or
         EXEC your_sp_name
end

only thing you need to exit/break somehow the execution and there are ways for that in BOL.


also check the level of logging you pass when you execute it manualy:

"This switch has between 3 and 5 logging levels depending on which command you are running.  0 (zero) is basically no logging, and as the number goes up more data will be shown.  The distrib.exe, replmerg.exe and snapshot.exe takes 0-2, while the logread.exe takes 0-4."
http://itknowledgeexchange.techtarget.com/sql-server/tag/logreadexe/


0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question