%! /* */ struct icm_info_type { int status; int pid; int ppid; string uptime; string cputime; int trace_level; int trace_lvl; int cur_thr; int peak_thr; int max_thr; int total_thr; int cur_conn; int peak_conn; int max_conn; int total_conn; int cur_queue; int peak_queue; int max_queue; int total_queue; }; struct icm_thr_info_type { string status; string rq_type; int rq_count; int conn; int guid; string thr_id; }; /* */ static string get_stat (int status) { switch (status) { case 0: return ("none"); break; case 1: return ("init"); break; case 2: return ("running"); break; case 3: return ("shutdown"); break; case 4: return ("down"); break; case 5: return ("maintenance"); break; default: return ("unknown"); } } %> <% int nr, rc, refresh_rate, t,h,m,s; string browser, appl, what, lastControlID; boolean is_admin; string iconname[3]; struct icm_info_type icm_info; struct icm_thr_info_type icm_thr_info[]; browser = __icm_get_browser_type(); appl = __icm_get_system_property ("app_name"); is_admin = __icm_get_system_property ("is_admin"); what = htmlenc(__icm_get_form_field ("what")); lastControlID = htmlenc(__icm_get_form_field ("lastControlID")); for (nr=0; nr<3;nr++){ iconname[nr] = "../public/icons/s_s_space.gif"; } if (what == "refresh") { refresh_rate = __icm_get_form_field ("p1"); if (refresh_rate == 10) iconname[0] = "../public/icons/s_s_okay.gif"; else iconname[1] = "../public/icons/s_s_okay.gif"; } else iconname[2] = "../public/icons/s_s_okay.gif"; __icm_get_info (icm_info); __icm_get_thr_info(icm_thr_info); %>
<%=appl%> Monitor | Refresh | |
Status: | <% if (is_admin) { %> <%=get_stat(icm_info.status)%> <% } else { %> <%=get_stat(icm_info.status)%> <% } %> <% if (icm_info.status == 2) { %> <% } else { %> <% } %> | |
Trace level: | <%= icm_info.trace_level %> | |
Process Id: | <%=icm_info.pid%> | |
Elapsed Time / CPU Time: | <%=icm_info.uptime%> / <%=icm_info.cputime%> | |
Watchdog Process Id: | <%=icm_info.ppid%> | |
current | <% if (is_admin) { %> peak <% } else { %> peak <% } %> | maximum | <% if (is_admin) { %> total <% } else { %> total <% } %> | ||
---|---|---|---|---|---|
Created Threads: | <%= icm_info.cur_thr %> | <%= icm_info.peak_thr %> | <%= icm_info.max_thr %> | <%= icm_info.total_thr %> | |
Connections used: | <%= icm_info.cur_conn %> | <%= icm_info.peak_conn %> | <%= icm_info.max_conn %> | <%= icm_info.total_conn %> | |
Queue entries used: | <%= icm_info.cur_queue %> | <%= icm_info.peak_queue %> | <%= icm_info.max_queue %> | <%= icm_info.total_queue %> |
No. | Thread ID | No. of Requests | Status | Request Type |
---|---|---|---|---|
<%= nr %> | <%= icm_thr_info[nr].thr_id %> | <%= icm_thr_info[nr].rq_count %> | <%= icm_thr_info[nr].status %> | <%= icm_thr_info[nr].rq_type %> |