Users can collect AX 2012 event traces with the Tracing Cockpit tool (see previous posting), the xClassTrace X++ class or the Windows Performance Monitor. Windows Performance Monitor is commonly used in the scenarios where AX 2012 client is not available, for example, collecting event traces for Enterprise Portal scenarios.
Steps to collect AX 2012 event traces with Windows Performance Monitor:
3. Check [Event Trace Data] under [Create Data Logs], and then click the [Next] button.
4. In the step “Which Event Trace Provider you like to enable”, click the [Add] button and select “Microsoft-DynamicsAX-Tracing” from the Event Trace Provider list, then click [OK].
Some keywords in the list are not performance related and selecting them will produce bigger size of trace files that contain irrelevant information. For performance diagnostic with Trace Parser, we recommend you checking the following keywords:
XPPMarker, TraceInfo, RPC XPP, SQL, Database Detailed, TTS, BindParameter and XPPParm.
If BindParameter is selected, the resulting event traces contain bind parameters for all SQL statements; if XPPParm is selected, the resulting event traces contain arguments for all X++ calls. SQL bind parameters and X++ arguments may contain sensitive data such as Personal Identifiable Information (PII), and you should take extra caution to protect these trace files.
(Note that the data collector will collect all types of events if you don’t select any keyword. This is not recommended).
Click the [OK] button.
In the Properties window, switch to the [Trace Buffers] tab and modify the default buffer settings. The default buffer setting does not work well for collecting AX event traces where large amount of events could be generated in short time and fill the buffers quickly. We recommend the following settings (leave the rest setting as default):
9. Now you can start or stop collecting AX event traces by clicking the start/stop buttons on the tool bar:
9. You may want to save the data collector set as a template and reuse the template on a different box, or share it with other users: Right click the Data Collector Sets and select [Save Template] menu item: