esp_monitor

Reads performance data from a running instance of Event Stream Processor and prints it out in XML format on standard output.

Monitoring data is available only if the time granularity option is set in the project configuration (CCR) file. The time granularity option specifies, in seconds, how often the set of performance records —one per stream and one per gateway connection— is obtained from the running Event Stream Processor. The _ESP_Clients_Monitor stream contains basic information about the connected clients but performance-related fields are populated only with the monitoring option.

A record in this format is produced for each stream.

<_ESP_Streams_Monitor ESP_OPS="i"
	stream="stream1" 
 cpu_pct="0.000000"
	trans_per_sec="0.499451"	rows_per_sec="1.098791"
	inc_trans="5" inc_rows="11"
	queue="0"
	store_rows="2"
	last_update="2008-08-26 14:17:14"
	sequence="123" 
 posting_to_client="-1"
/>

A record in this format is produced for each gateway client.

<_ESP_Clients_Monitor ESP_OPS="i"
	handle="130"
	ip="127.0.0.1"
	host="localhost"
	port="59645"
	login_time="2011-08-11 06:35:27.647137"
/>
<_ESP_Clients_Monitor ESP_OPS="u"  
    handle="129" user_name="user" ip="127.0.0.1" host="localhost" 
    port="12345" login_time="2008-08-26 12:05:01" conn_tag="rdr"
    cpu_pct="0.000000" last_update="2008-08-26 14:17:14" 
    subscribed="1" sub_trans_per_sec="0.499451" 
    sub_rows_per_sec="1.098791" sub_inc_trans="5" 
    sub_inc_rows="11" sub_total_trans="502" sub_total_rows="1018" 
    sub_dropped_rows="0" sub_accum_size="0"  
    sub_queue="0" sub_queue_fill_pct="0.000000" sub_work_queue="0" 
    pub_trans_per_sec="0.000000" pub_rows_per_sec="0.000000" 
    pub_inc_trans="0" pub_inc_rows="0" pub_total_trans="0" 
    pub_total_rows="0" pub_stream_id="-1"
    />

Syntax

esp_monitor -p [<host>:]<port>/workspace-name/project-name -c user[:password] [OPTION...]

Required Arguments

Options

Note: Ensure that the ESP Server has been started with the -k option specifying the directory in which to store the RSA keys.

Examples