AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 25.03.2011, 21:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
axinthefield: Dynamics AX Tracing (Part 2)
Источник: http://blogs.msdn.com/b/axinthefield...ng-part-2.aspx
==============

In part 1 of the series we covered the basic prerequisites of taking a trace. In this post I'm going to cover some best practices around capturing trace data and how to troubleshoot some common issues that may prevent trace files from being created. The steps below apply to both Dynamics AX 2009 and Dynamics AX 4.0. In part 3 we'll be covering the steps necessary to load and review a trace using the Trace Parser tool available on CustomerSource.

AX Tracing Best Practices
  • There can be noticeable overhead associated with this type of application tracing, so it's best not to trace in a production environment. If you need to trace in a production environment, the best way to ensure other users are not negatively affected by this activity is to use a dedicated AOS for your tracing or trace when other activity is at a minimum.
  • Be as specific as possible when tracing to minimize the size of the trace files and any unnecessary background noise that may be recorded outside of the specific process you're interested in.
  • Tracing on a "cold" system can introduce some unnecessary background noise such as things that only happen once at client startup or form load and are then cached. This can distract from the main issue being analyzed, so it's best to warm up the system first before capturing a trace. Step through the scenario you want to trace once end-to-end, then start the trace and step through the scenario again.
  • When tracing client activity, it is best to only have one instance of the Dynamics AX client open. Close all other instances and perform all actions through one client instance only.
AX Tracing Checklist
  1. Verify the server configuration and client configuration utilities are setup to allow tracing and the appropriate values are being captured as covered in part 1 of the series.
  2. Prior to starting the trace, warm up the system (prime the cache) by opening the Dynamics AX client and stepping through the scenario you want to trace once end-to-end.
  3. Because client tracing settings are dependent on the HKCU registry settings discussed in part 1 of the series, we recommend you launch the client from the Start Menu while logged into Windows as the user whose activity will be traced.
    • Do not launch the client from a configuration (.axc) file.
    • Do not launch the client using "Run As" functionality.
  4. Keeping the client open, navigate back to the AX client form where you want to start the trace collection.
  5. Start the client trace from the client configuration utility. This should trigger both the client and server traces to start tracing. Only the session activity for the client you have open will be traced.
  6. Verify the client and server traces are running by typing the following from a command prompt: logman -ets query(This is for Windows Server 2008) or logman -ets query providers (This is for Windows Server 2003). This will show a list of active traces. Make sure the AX client and server traces are running. If the traces don't show up in the list, you'll have to investigate the problem. Check the troubleshooting section for common issues.
  7. Perform the task you wish to trace in the Dynamics AX client.
  8. Stop the trace from the client configuration utility.
  9. Verify the client and server traces are stopped by typing the following from a command prompt: logman -ets query(This is for Windows Server 2008) orlogman -ets query providers(This is for Windows Server 2003).
  10. Two trace files (1with client activity and 1 with server activity) should have been generated. The files are located in the client and server log folders.
    • Refer to the General tab on the client configuration utility for the client log location.
    • Refer to the Tracing tab on the server configuration utility for the server log location.
Now you're ready to supply these trace files to a support engineer or load them into a tool such as Trace Parser yourself to view the results.

Troubleshooting Trace Collection Issues

Security is the most common issue that prevents tracing from starting successfully. Below are some things to consider when troubleshooting security issues.
  1. Check the application event log for errors. Error code 5 indicates an access denied issue.
  2. The account running the AOS instance must belong to the 'Performance Log Users' local group on the AOS if it is running on Windows Server 2003 or 2008. The WMI event tracing subsystem requires that tracing can be started only from a user belonging to this local group or to the local Administrators group.
  3. The client trace is initiated by the currently logged on user, so verify that user has access to the log path defined in the client configuration utility. You can adjust the location of the log in the client configuration utility if necessary for testing.
  4. The server trace is initiated by the account running the AOS instance, so verify that user has access to the log path defined in the server configuration utility. The log path cannot be changed in the server configuration utility, but it can be changed directly in the registry if necessary. Here is the registry path where the log directory is defined for a Dynamics AX 2009 instance using the Original installed configuration. HKEY_CURRENT_USER\Software\Microsoft\Dynamics\5.0\Configuration\Original (installed configuration)\logdir
  5. User Account Control (UAC) has prevented traces from starting from time to time. When opening the client utility try right-clicking and selecting "Run as Administrator." If that doesn't help, try tracing with UAC disabled on the server.
Other Issues
  1. Check to make sure you have enough drive space to satisfy the value you entered in the registry for tracemaxfilesize. If you specify 10GB for that value, you'll actually need 12GB of free space available because an additional 20% is necessary for trace overhead. Adjust the setting down if disk free space is an issue.
  2. If the Dynamics AX client has been installed but never launched or only launched via axc files, the client registry settings will not exist. The Dynamics key under HKCU\Software\Microsoft gets created the first time the currently logged on user launches the AX client application from the start menu. Tracing will not start if the registry settings don't exist.




Источник: http://blogs.msdn.com/b/axinthefield...ng-part-2.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axinthefield: Dynamics AX Event IDs Blog bot DAX Blogs 0 01.03.2011 22:11
axinthefield: Dynamics AX Tracing (Part 1) Blog bot DAX Blogs 0 29.12.2010 02:16
fed: Tracing in Dynamics AX 4 and 2009 Blog bot DAX Blogs 0 10.03.2010 20:05
Microsoft Dynamics CRM Team Blog: List Web Part for Microsoft Dynamics CRM 4.0 Deployment Scenarios Blog bot Dynamics CRM: Blogs 0 30.01.2009 22:05
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 10:07.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.