?
Solved

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

Posted on 2011-09-06
4
Medium Priority
?
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 40

Accepted Solution

by:
lcohan earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
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 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

770 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