Issue with the iTrace log file, truncated to 640KB


  • We are trying to get Itrace file from production domain.

    Steps followed to get sample iTrace file.

    1. After download and expand cab file the IntelliTraceSC.exe resides in C:\IntelliTraceCollector

    2. If the iTrace log file is collected from LAUNCH command , file is in proper size  and able to investigate in VS Enterprise 2017.

    C:\IntelliTraceCollector\IntelliTraceSC.exe launch /cp:"C:\IntelliTraceCollector\collection_plan.ASP.NET.Trace.xml" /f:"C:\DumpFile\testlog.itrace" "CApplicationFullPath"

    3. But the scenario expected is to get the iTrace log in the background. i.e user will launch the application is installed folder and Itrace should be logged in case of exception.

    Tried with start command.

    C:\IntelliTraceCollector\IntelliTraceSC.exe start /name:logger /cp:"C:\IntelliTraceCollector\collection_plan.ASP.NET.Trace.xml" /f:"C:\DumpFile\itracefile.itrace"

    set VSLOGGERNAME=logger

    and  COR_ENABLE_PROFILING=1  COR_PROFILER={aaaaaa70-dfed-4cb4-a1d6-920f51e9674a} is set in System Environment variable.

    After executing the START command , the size of itracefile is 16432KB .

    Process is started from installed application path eg C:\Program Files\ApplicationFolder\test.exe

    After the application is exit , IntelliTraceSC is not releasing the iTrace log file and its not Logger is not stopped.

    So stopped logger using STOP command.

    C:\IntelliTraceCollector\IntelliTraceSC.exe stop /name:logger /cp:"C:\IntelliTraceCollector\collection_plan.ASP.NET.Trace.xml"

    After STOP Command logging file size is back to 640kb.

    We tried changing MaximumFileSizes in Collection_Plan  but still we could not get ITrace log file.

    Referred Link :

    How to get the itrace log file after the application is exited ?

    Thanks in advance. 


    Thursday, August 9, 2018 3:54 PM

All replies

  • Not that familiar with Intellitrace, but does it help in any way, when you also set COR_PROFILER_PATH - please note the different paths for x86/x64 applications.
    set COR_PROFILER={aaaaaa70-dfed-4cb4-a1d6-920f51e9674a}
    set COR_PROFILER_PATH=C:\IntellitraceCollector\x64\Microsoft.IntelliTrace.Profiler.14.0.0.SC.dll
    set VSLOGGERNAME=session1
    C:\IntellitraceCollector\IntelliTraceSC.exe start /name:session1 /cp:"C:\IntellitraceCollector\collection_plan.ASP.NET.Trace.xml" /f:"C:\IntellitraceCollector\itracefile.itrace"
    C:\IntellitraceCollector\IntelliTraceSC.exe stop /name:session1 /cp:"C:\IntellitraceCollector\collection_plan.ASP.NET.Trace.xml

    What says
    C:\IntellitraceCollector\Intellitracesc status
    Any ouput in Event-Viewer.

    With kind regards

    Friday, August 10, 2018 12:21 PM
  • Hi,

    Thanks for your valuable feedback. Value for COR_PROFILER_PATH is set in System Environment variable along with COR_ENABLE_PROFILING and COR_PROFILER.

    Problem solved.

    After START command of IntelliTrace ,I tried launching the application from location C:\ProgramFiles\ApplicationInstalledFolder\test.exe , so intellitrace has not collected the information about the solution test.exe. The maximum iTrace file size is 16384KB and its not increasing beyond that.

    C:\IntellitraceCollector\IntellitraceSC.exe status

    Running loggers:

    Logger: logger
            Log file: C:\DumpFile\itracefile.itrace
            Process ID: 18452
            SessionID: 1
            Attached Process:
                    Process ID: 0
                    SessionID: 0
                    Launch Time: 0

    Test.exe process is not attached to IntelliTraceSC.exe

    But after launching test.exe in command prompt say C:\IntellitraceCollector>test.exe , IntellitraceSc started to collect information from test.exe . Size of Itrace file increases exponentially depends on workflow .

    C:\IntellitraceCollector\IntellitraceSC.exe status

    Running loggers:

    Logger: logger
            Log file: C:\DumpFile\itracefile.itrace
            Process ID: 13736
            SessionID: 1
            Attached Process: C:\Program Files\ApplicationInstalledFolder\test.exe
                    Process ID: 6132
                    SessionID: 1
                    Launch Time: 131788918690579035

    This seems the expected condition is  the process test.exe should be launched in command prompt and the folder location in prompt should be  IntelliTrace installed path say C:\IntelliTraceCollector. 


    Thursday, August 16, 2018 11:53 AM