-
Notifications
You must be signed in to change notification settings - Fork 94
Frequently Asked Questions
You can use the /E command line parameter. For example: PSSDIAG.CMD /E21:00:00 - Shut down at 9pm (current day, or following day if current time is >9pm) PSSDIAG.CMD /E+10:00:00 - Start, collect data for 10 hours, then shut down automatically
use command like "PSSDIAG.CMD /E 03:00:00 /L /Q /N2" to like pssdiag to recycle at certain time
If you want to delay the start of the PSSDiag collection for a specific amount of time (say 3 hours) from now you can use PSSDiag.CMD /B +03:00:00
Be sure to select the CPU platform (see the 32-bit Pentium, Itanium, or x64 buttons on the left pane of Diag Manager UI) before making other selections -- selecting a new platform loads new defaults for the rest of the form. Note that you should select the platform that matches the version of sqlservr.exe that you are targeting. For example, for a 32-bit SQL instance running in the WOW64 layer on x64 Windows, you should select 32-bit Pentium/x86. Select the AMD64 option only for native x64 SQL 2005 instances.
- Run the following to stop any active profiler trace EXEC tempdb.dbo.sp_traceXX 'OFF' -- where XX is the version number 10 for 2008 & R2, 11 for 2014, 12 for 2014, 13 for 2016
- ALTER EVENT SESSION [pssdiag_xevent] ON SERVER STATE = stop
- Run "logman query -ets" from a command prompt to identify any orphaned ETW perfmon logs. Run "logman stop -ets" to stop them (replace "" with the appropriate trace name).
- Kill sqlcmd.exe processes that were not launched by you manually
If you are not capturing a profiler trace, yes, you can run the collector on a remote machine. If you need to capture a profiler trace, it is srongly recommended to run the collector on the server being monitored. SQL Server itself always captures the profiler trace, so there is no way to offload profiler trace-related work to a remote machine. Because the primary performance impact of data collection is typically caused by the profiler trace, and because the trace is always captured by sqlservr.exe regardless of where PSSDIAG is running, there are generally no performance advantages to be gained by running the collector remotely.
The data collected by PSSDIAG (.trc and .out files) can be imported by SQL Nexus into a SQL Server database.
The set of data that PSSDIAG/SQLDIAG captures is completely configurable. The impact of data collection is equal to the combined impacts of the various log types that you configure for collection using the Diag Manager to capture (the collector itself has a negligible impact on the machine), which means that if a PSSDIAG/SQLDIAG data capture hurts performance on a server it is almost certainly due to the log types and trace events that were selected.