InnoTecSol >ICS >ICS Version: 0.4.8888 Documentation >ics statistics
ICS Version: 0.4.8888
ics statistics
The internet communication server keeps internal statistic records, which can be displayed via its stats command line option.

		ics stats ICSSERVICE [[-|/]stlevel level]
	

The detail of the output can be controlled by the [-|/]stlevel option. The option can have the following values:

  • ALL - displays all information
  • SUMMARY - displays a summary of the available information
  • SESSIONS - displays the currently active sessions

The output provides the following information:


The following statistics were received:
<ICS:PM PID="8972">
	<ICS:INF>
		<ID>ICSSERVICE</ID>
		<CFG>c:\Program Files\ics\config\ics.xml</CFG>
		<SHD>N</SHD>
		<ST>2015.04.26 20:49:39,554</ST>
		<CFT>2015.04.26 22:25:23,1176349</CFT>
	</ICS:INF>
	<ICS:LP RESTARTS="0">
		<PID>10528</PID><ST>2015.04.26 20:49:39,554</ST>
	</ICS:LP>
	<ICS:WPS NOCFG="2" COUNT="2" RESTARTS="0">
		<ICS:WPE><PID>2880</PID><ST>2015.04.26 20:49:39,554</ST></ICS:WPE>
		<ICS:WPE><PID>8400</PID><ST>2015.04.26 20:49:39,585</ST></ICS:WPE>
	</ICS:WPS>
</ICS:PM>
<ICS:LT>
</ICS:LT>
<ICS:WT PID="8400">
	<ICS:SM MAX="5" COUNT="3">
		<ICS:SE>
			<SEP>1</SEP>
			<SER>127.0.0.1:53216</SER>
			<SEL>0.0.0.0:80</SEL>
			<SEA>2015.04.26 22:25:23,1176349</SEA>
			<SET>1.06753</SET>
			<SEREQ>2</SEREQ>
			<SERC>2</SERC>
			<SEWC>0</SEWC>
			<SEER>0<SEER>
			<SEI>773</SEI>
			<SEO>3058</SEO>
		</ICS:SE>
		<ICS:SE>
			...
		</ICS:SE>
			...
		<ICS:SS>
			<SET>6311.28</SET>
			<SEREQ>154</SEREQ>
			<SERC>256</SERC>
			<SEWC>0</SEWC>
			<SEER>0</SEER>
			<SEI>59700</SEI>
			<SEO>1092950</SEO>
		</ICS:SS>
	</ICS:SM>
	<ICS:TH>
		<ICS:TP COUNT="5">
			<ICS:TW><TS>W</TS><TP>81</TP></ICS:TW>
			<ICS:TW><TS>W</TS><TP>74</TP></ICS:TW>
			<ICS:TW><TS>W</TS><TP>77</TP></ICS:TW>
			<ICS:TW><TS>W</TS><TP>90</TP></ICS:TW>
			<ICS:TW><TS>W</TS><TP>69</TP></ICS:TW>
			<ICS:TE>
				<TC>3</TC>
				<TMAP>3044.41</TMAP>
				<TMIP>0.02738</TMIP>
				<TAVP>29.262</TAVP>
				<TMAW>46.5408</TMAW>
				<TMIW>0.000582554</TMIW>
				<TAVW>2.22031</TAVW>
			</ICS:TE>
		</ICS:TP>
		<ICS:TQ><QS>0</QS><MQS>3</MQS></ICS:TQ>
		<ICS:TN><QS>0</QS><MQS>3</MQS></ICS:TN>
	</ICS:TH>
	<ICS:LS>
	</ICS:LS>
</ICS:WT>
<ICS:WT PID="2880">
...
</ICS:WT>

The first section introduced by the <ICS:PM> tag


<ICS:PM PID="8972">
		

provides information about the ics process manager which starts and monitors all ics child processes. The PID attribute identifies the operating system process identifier that ics is running with.

General information

General information is introduced by the <ICS:INF> tag

		
<ICS:INF>
	<ID>ICSSERVICE</ID>
	<CFG>c:\Program Files\ics\config\ics.xml</CFG>
	<SHD>N</SHD>
	<ST>2015.04.26 20:49:39,554</ST>
	<CFT>2015.04.26 22:25:23,1176349</CFT>
</ICS:INF>
  • The <ID> tag provides the identifier that ics was started with.

  • The <CFG> tag provides the main configuration file that ics was started with.

  • The <SHD> tag indicates whether a shutdown is pending (Y) or not (N).

  • The <ST> tag provides the start time of the service.

  • The <CFT> tag provides the last configuration time of the service.

Logger Process

Information about the logger process is introduced by the <ICS:LP> tag. The RESTARTS attribute indicates the number of restarts of the logger process

				
<ICS:LP RESTARTS="0">
	<PID>10528</PID><ST>2015.04.26 20:49:39,554</ST>
</ICS:LP>
  • The <PID> tag provides the operating system identifier of the ics logger process.

  • The <ST> tag provides the start time of the logger process.

Worker Processes

Information about the started worker processes is introduced by the <ICS:WPS> tag.

The NOCFG attribute indicates the number of configured worker processes.

The COUNT attribute indicates the number of current worker processes.

The RESTART attribute indicates the number of restarts.

The <ICS:WPE> tag provides information about each started worker process.

  • The <PID> tag provides the operating system identifier of the ics worker process.

  • The <ST> tag provides the start time of the ics worker process.

A list of worker process information is displayed, each worker process being introduced by the <ICS:WT> tag.

	
	<ICS:WT PID="8400">

The PID attribute identifies the operating system process identifier that the ics worker process is running with.

Session Manager

The worker process provides information from its session manager, which are introduced by the <ICS:SM> tag.

	
	<ICS:SM MAX="5" COUNT="3">

The MAX attribute identifies the maximum number of concurrent sessions that were handled by the worker process.

The COUNT attribute contains the current number of active sessions.

Sessions

It follows a list of sessions, each being introduced by the <ICS:SE> tag.

	
<ICS:SE>
	<SEP>1</SEP>
	<SER>127.0.0.1:53216</SER>
	<SEL>0.0.0.0:80</SEL>
	<SEA>2015.04.26 22:25:23,1176349</SEA>
	<SET>1.06753</SET>
	<SEREQ>2</SEREQ>
	<SERC>2</SERC>
	<SEWC>0</SEWC>
	<SEER>0<SEER>
	<SEI>773</SEI>
	<SEO>3058</SEO>
</ICS:SE>
  • The <SEP> tag identifies the protocol used by the ics session.

  • The <SER> tag identifies the remote IP address and port that the connection originates from.

  • The <SEL> tag identifies the listener that the connection was received on.

  • The <SEA> tag identifies the time of the last activity for this connection.

  • The <SET> tag identifies the processing time in ms used for the session.

  • The <SEREQ> tag identifies the number of requests performed by this session.

  • The <SERC> tag identifies the reads triggered for this session.

  • The <SEWC> tag identifies the writes triggered for this session.

  • The <SEER> tag identifies the out of bound triggered for this session.

  • The <SEI> tag identifies the bytes read by this session.

  • The <SEO> tag identifies the bytes written by this session.

Session Summary

It follows a summary of all sessions introduced by the <ICS:SS> tag.

	
	<ICS:SS>
		<SET>6311.28</SET>
		<SEREQ>154</SEREQ>
		<SERC>256</SERC>
		<SEWC>0</SEWC>
		<SEER>0</SEER>
		<SEI>59700</SEI>
		<SEO>1092950</SEO>
	</ICS:SS>
  • The <SET> tag identifies the processing time in ms used for all sessions.

  • The <SEREQ> tag identifies the number of requests performed by all sessions.

  • The <SERC> tag identifies the reads triggered for all sessions.

  • The <SEWC> tag identifies the writes triggered for all sessions.

  • The <SEER> tag identifies the out of bound triggered for all sessions.

  • The <SEI> tag identifies the bytes read by all sessions.

  • The <SEO> tag identifies the bytes written by all sessions.

Threads information

The worker process threads information is introduced by the <ICS:TH> tag.

	
	<ICS:TH>

Thread Pool

Information about the workers process Thread Pool is introduced by the <ICS:TP> tag.

	
	<ICS:TP COUNT="5">

The COUNT attribute identifies the number of threads currently active in the thread pool

It follows a list with detailed information about each worker thread introduced by the <ICS:TW> tag.

	
	<ICS:TW><TS>W</TS><TP>81</TP></ICS:TW>
  • The <TS> tag indicates whether the thread is currently waiting for (W) or processing (P) a request.

  • The <TP> tag indicates the number of tasks processed by this thread.

It follows a section with information regarding the thread processing introduced by the <ICS:TE> tag.

	
	<ICS:TE>
		<TC>3</TC>
		<TMAP>3044.41</TMAP>
		<TMIP>0.02738</TMIP>
		<TAVP>29.262</TAVP>
		<TMAW>46.5408</TMAW>
		<TMIW>0.000582554</TMIW>
		<TAVW>2.22031</TAVW>
	</ICS:TE>
  • The <TC> tag identifies the number of tasks created.

  • The <TMAP> tag identifies the maximum processing time in ms for any task.

  • The <TMIP> tag identifies the minimum processing time in ms for any task.

  • The <TAVP> tag identifies the average processing time in ms for any task.

  • The <TMAW> tag identifies the maximum wait time in ms for any task.

  • The <TMIW> tag identifies the minimum wait time in ms for any task.

  • The <TAVW> tag identifies the average wait time in ms for any task.

Tasks Queue

Information about the workers process shared task queue introduced by the <ICS:TQ> tag.

	
	<ICS:TQ><QS>0</QS><MQS>3</MQS></ICS:TQ>
  • The <QS> tag identifies the size of the notifier queue.

  • The <MQS> tag identifies the maximum number of tasks in the task queue at any time.

Tasks Notifier

Information about the workers process task notifier is introduced by the <ICS:TN> tag.

	
	<ICS:TN><QS>0</QS><MQS>3</MQS></ICS:TN>
  • The <QS> tag identifies the size of the notifier queue.

  • The <MQS> tag identifies the maximum number of tasks in the task queue at any time.