RE: EIF: Trace Session Manager service warning on startup

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mike Hayton [MS] (mikehayt__at_online.microsoft.com)
Date: 09/20/04


Date: Mon, 20 Sep 2004 16:00:22 GMT

Hi there,

The minBuffers in the TS.config below is set to 3 (in the
<defaultParameters>) its standard default value is 4 ,so I suspect that
someone has changed this value from 4 to 3. This updated default will flow
through to any <session> defined in the TS.config (you have two) unless
that <session> specifies its own minBuffers attribute (i.e. it overrides
the default).

I'd do the following:

1. ensure that the TraceSessionManager (TSM) service is running
2. Bring up the Windows Event Log (WEL) viewer (right click on My Computer
and choose Manage...)
3. notepad the TraceSessions.config file (TS.config).
4. <optional> set the minBuffers back to 4 and save the file.
5. disable all the sessions in the TS.config - i.e. set enabled="false" for
all the sessions - e.g.
 <configuration
xmlns="http://www.microsoft.com/schema/EnterpriseInstrumentation/v1/TraceSes
sions.xsd">
         <defaultParameters minBuffers="3" maxFileSize="10" maxBuffers="25"
bufferSize="20" logFileMode="sequential" flushTimer="3" />
         <sessionList>
                 <session name="TraceSession" enabled="false" fileName="C:\Program
Files\Microsoft Enterprise Instrumentation\Bin\Trace
Service\Logs\TraceLog.log" />
                 <session name="TraceSession2" enabled="false" fileName="C:\Program
Files\Microsoft Enterprise Instrumentation\Bin\Trace
Service\Logs\TraceLog2.log" />
         </sessionList>
 </configuration>
6. Save the updated TS.config, (wait a couple of secs) Refresh the WEL
viewer and check that the TSM service has picked up the TS.config file.
7. re-enable all the sessions in the TS.config - i.e. set enabled="true"
for all the sessions - e.g.
 <configuration
xmlns="http://www.microsoft.com/schema/EnterpriseInstrumentation/v1/TraceSes
sions.xsd">
         <defaultParameters minBuffers="3" maxFileSize="10" maxBuffers="25"
bufferSize="20" logFileMode="sequential" flushTimer="3" />
         <sessionList>
                 <session name="TraceSession" enabled="true" fileName="C:\Program
Files\Microsoft Enterprise Instrumentation\Bin\Trace
Service\Logs\TraceLog.log" />
                 <session name="TraceSession2" enabled="true" fileName="C:\Program
Files\Microsoft Enterprise Instrumentation\Bin\Trace
Service\Logs\TraceLog2.log" />
         </sessionList>
 </configuration>
8. Save the updated TS.config, (wait a couple of secs) Refresh the WEL
viewer and check that the TSM service has picked up the TS.config file.

The error message is asking you to disable & re-enable the sessions in the
TS.config - the TSM service needs to be running during this. Also there
needs to be a few seconds between each save (as the TSM takes a second or
two to pick up the new TS.config file). Possibly why you were having so
much trouble is that multiple sessions had to be re-enabled since it was a
default value (flowing into all the session definitions) that had changed.

Hope this helps

Mike

-- 
This posting is provided "AS IS" with no warranties, and confers no rights. 
Use of included script samples are subject to the terms specified at 
http://www.microsoft.com/info/cpyright.htm 
--------------------
| 
| At one point in last couple of days we started getting this warning in 
the 
| event log whenever restarting the trace session manager service:
| 
| "Description:
| The parameter named 'minBuffers' in the 'TraceSession' session has been 
| changed. These changes will not be reflected until the trace session is 
| disabled and re-enabled."
| 
| I never modified the 'minBuffers' and I tried doing just what it says 
with 
| no luck. The tracing seems to work fine just whenever the service is 
| restarted the warning always shows up in the eventlog. Removing sessions 
from 
| the config file, restarting service, etc. all works but the moment I put 
the 
| TraceSession back I get the same msg. The tracesessions.config is as 
follows:
| 
| <configuration 
| 
xmlns="http://www.microsoft.com/schema/EnterpriseInstrumentation/v1/TraceSes
sions.xsd">
| 	<defaultParameters minBuffers="3" maxFileSize="10" maxBuffers="25" 
| bufferSize="20" logFileMode="sequential" flushTimer="3" />
| 	<sessionList>
| 		<session name="TraceSession" enabled="true" fileName="C:\Program 
| Files\Microsoft Enterprise Instrumentation\Bin\Trace 
| Service\Logs\TraceLog.log" />
| 		<session name="TraceSession2" enabled="true" fileName="C:\Program 
| Files\Microsoft Enterprise Instrumentation\Bin\Trace 
| Service\Logs\TraceLog2.log" />
| 	</sessionList>
| </configuration> 
| 
| Maros
| 
|