File: admin_stat.vsp

package info (click to toggle)
virtuoso-opensource 6.1.6+dfsg2-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 260,992 kB
  • ctags: 125,220
  • sloc: ansic: 652,748; sql: 458,419; xml: 282,834; java: 61,031; sh: 40,031; cpp: 36,890; cs: 25,240; php: 12,692; yacc: 9,523; lex: 7,018; makefile: 6,157; jsp: 4,484; awk: 1,643; perl: 1,013; ruby: 1,003; python: 326
file content (357 lines) | stat: -rw-r--r-- 13,017 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<?vsp 
--  
--  $Id$
--  
--  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
--  project.
--  
--  Copyright (C) 1998-2012 OpenLink Software
--  
--  This project is free software; you can redistribute it and/or modify it
--  under the terms of the GNU General Public License as published by the
--  Free Software Foundation; only version 2 of the License, dated June 1991.
--  
--  This program is distributed in the hope that it will be useful, but
--  WITHOUT ANY WARRANTY; without even the implied warranty of
--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
--  General Public License for more details.
--  
--  You should have received a copy of the GNU General Public License along
--  with this program; if not, write to the Free Software Foundation, Inc.,
--  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--  
--  

 adm_pre_page(lines);


  declare _q, _state, _msg, _stmt varchar;
  declare err integer;

  if (not adm_check_auth (lines))
    {
      adm_tell_unauth (lines);
      return 0;
    }

  exec ('status (''c'')', _state, _msg);

  _q := get_keyword ('q', params, '');

  if ('' = _q)
    _q := 'db';

  status();
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
  <head>
    <link rel="stylesheet" type="text/css" href="<?=adm_what_css()?>">
    <title>Virtuoso VDBMS Server Statistics</title>
    <meta name="AUTHOR" content="OpenLink Software">
    <meta name="DESCRIPTION" content="General statistics">
  </head>
<?vsp adm_page_header('Virtuoso Database Server Statistics', NULL); ?>

<?vsp
      if (not is_empty_or_null (get_keyword ('help', params)))
        {
?>
          <hr>
          <hr>
<?vsp
        }
?>
<table class="ctrlmain" border="0" cellpadding="0" cellspacing="0" width="100%">
<TR><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="15" ALT=""></TD></TR>
<tr><td align="left">
      <table class="statlist" border="0" cellpadding="0">
          <TR><TD class="stathead" COLSPAN="2">General Info</TD></TR>
          <TR><TD CLASS="admborders" COLSPAN="2"><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="2" ALT=""></TD></TR>
        <tr>
	  <td CLASS="statlisthead">DBMS Name</td>
	  <td CLASS="statdata"><?= sys_stat('st_dbms_name') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">DBMS Version</td>
	  <td CLASS="statdata"><?= sys_stat('st_dbms_ver') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Threading model</td>
	  <td CLASS="statdata"><?= sys_stat('st_build_thread_model') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Server OS</td>
	  <td CLASS="statdata"><?= sys_stat('st_build_opsys_id') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Build Date</td>
	  <td CLASS="statdata"><?= sys_stat('st_build_date') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Replication Server Name</td>
	  <td CLASS="statdata"><?= sys_stat('st_repl_serv_name') ?></td>
	</tr>
    </table>
</td></tr>
<TR><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="15" ALT=""></TD></TR>
<tr><td align="left">
      <table class="statlist" border="0" cellpadding="0">
        <TR><TD class="stathead" COLSPAN="2">License &amp; Connection Info &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#info"><small>More information</small></a></TD></TR>
        <TR><TD CLASS="admborders" COLSPAN="2"><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="2" ALT=""></TD></TR>
        <tr>
    <?vsp
     declare lown varchar;
     lown := sys_stat('st_lic_owner');
     if (lown = '')
       lown := 'Demo version';
    ?>
      <td class="statlisthead">Licensed to</td>
      <td class="statdata"><?= lown ?></td><td><td>
    </tr>
        <tr>
      <td class="statlisthead">License Serial Number</td>
      <td class="statdata"><?= sys_stat('st_lic_serial_number') ?></td><td><td>
    </tr>
        <tr>
      <td class="statlisthead">Licensed concurrent connections</td>
      <td class="statdata"><?= sys_stat('st_lic_max_connections') ?></td><td><td>
    </tr>
        <tr>
      <td class="statlisthead">Current active connections</td>
      <td class="statdata"><?= sys_stat('st_cli_n_current_connections') ?></td><td><td>
    </tr>
        <tr>
      <td class="statlisthead">Total ODBC/SQL connections since server startup</td>
      <td class="statdata"><?= sys_stat('st_cli_connects') ?></td><td><td>
    </tr>
        <tr>
      <td class="statlisthead">Maximum concurrent connections since server startup</td>
      <td class="statdata"><?= sys_stat('st_cli_max_connected') ?></td><td><td>
    </tr>
        <tr>
      <td class="statlisthead">HTTP Threads</td>
      <td class="statdata"><?= sys_stat('st_cli_n_http_threads') ?></td><td><td>
    </tr>
        <tr>
      <td class="statlisthead">RPC Statistics</td>
      <td class="statdata"><?= sys_stat('st_rpc_stat') ?></td><td><td>
    </tr>
    </table>
</td></tr>
</td></tr>
<TR><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="15" ALT=""></TD></TR>
<tr><td align="middle">
      <table class="statlist" border="0" cellpadding="0">
      <tr><td valign=top>
      <table class="statlist" border="0" cellpadding="0">
	  <TR><TD class="stathead" COLSPAN="2">Server Status</TD></TR>
	  <TR><TD CLASS="admborders" COLSPAN="2"><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="2" ALT=""></TD></TR>
		<tr>
		  <td class="statlisthead">Served sessions</td>
		  <td class="statdata"><?= sys_stat('st_proc_served') ?></td>
		</tr>
		<tr>
		  <td class="statlisthead">Active threads</td>
		  <td class="statdata"><?= sys_stat('st_proc_active') ?></td>
		</tr>
		<tr>
		  <td class="statlisthead">Running threads</td>
		  <td class="statdata"><?= sys_stat('st_proc_running') ?></td>
		</tr>
		<tr>
		  <td class="statlisthead">Queued requests</td>
		  <td class="statdata"><?= sys_stat('st_proc_queued_req') ?></td>
		</tr>
	    </table>
	</td>
          <td align=left valign=top>
      <table class="statlist" border="0" cellpadding="0">
	  <TR><TD class="stathead" COLSPAN="2">Lock Status</TD></TR>
	  <TR><TD CLASS="admborders" COLSPAN="2"><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="2" ALT=""></TD></TR>
		<tr>
		  <td class="statlisthead">Deadlocks</td>
		  <td class="statdata"><?= sys_stat('lock_deadlocks') ?></td>
		</tr>
		<tr>
		  <td class="statlisthead">2r1w deadlocks</td>
		  <td class="statdata"><?= sys_stat('lock_2r1w_deadlocks') ?></td>
		</tr>
		<tr>
		  <td class="statlisthead">Forced deadlocks</td>
		  <td class="statdata"><?= sys_stat('lock_killed_by_force') ?></td>
		</tr>
		<tr>
		  <td class="statlisthead">Waits</td>
		  <td class="statdata"><?= sys_stat('lock_waits') ?></td>
		</tr>
		<!--tr>
		  <td class="stat_listhead">Enters</td>
		  <td class="stat_data"><?= sys_stat('lock_enters') ?></td>
		</tr>
		<tr>
		  <td class="stat_listhead">Leaves</td>
		  <td class="stat_data"><?= sys_stat('lock_leaves') ?></td>
		</tr-->
	    </table>
	  </td>
        <td align=left valign=top>

      <table class="statlist" border="0" cellpadding="0">
	  <TR><TD class="stathead" COLSPAN="2">Committed Log Space</TD></TR>
	  <TR><TD CLASS="admborders" COLSPAN="2"><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="2" ALT=""></TD></TR>
		<tr>
		  <td class="statlisthead">Pages changed</td>
		  <td class="statdata"><?= sys_stat('st_inx_pages_changed') ?></td>
		</tr>
		<tr>
		  <td class="statlisthead">New pages</td>
		  <td class="statdata"><?= sys_stat('st_inx_pages_new') ?></td>
		</tr>
	    </table>

	  </td>
        <td align=left valign=top>


       <table class="statlist" border="0" cellpadding="0">
           <TR><TD class="stathead" COLSPAN="2">Last Checkpoint</TD></TR>
           <TR><TD CLASS="admborders" COLSPAN="2"><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="2" ALT=""></TD></TR>
                 <tr>
                   <td class="statlisthead">Remap pages</td>
                   <td class="statdata"><?= sys_stat('st_chkp_remap_pages') ?></td>
                 </tr>
                 <tr>
                   <td class="statlisthead">Pages mapped back</td>
                   <td class="statdata"><?= sys_stat('st_chkp_mapback_pages') ?></td>
                 </tr>
                 <tr>
                   <td class="statlisthead">Atomic time</td>
                   <td class="statdata"><?= sys_stat('st_chkp_atomic_time') ?></td>
                 </tr>
             </table>



	  </td></tr>
	</table>
	 </td></tr>
	 <TR><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="15" ALT=""></TD></TR>
	 <tr>
	 <td align=left>

      <table CLASS="statlist" border="0" cellpadding="0">
	  <TR><TD CLASS="stathead" COLSPAN="2">Database Status</TD></TR>
	  <TR><TD CLASS="AdmBorders" COLSPAN="2"><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="2" ALT=""></TD></TR>
        <tr>
	  <td CLASS="statlisthead">File size (bytes)</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_file_size') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Total pages</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_pages') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Free pages</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_free_pages') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Buffers</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_buffers') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Buffers used</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_used_buffers') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Dirty buffers</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_dirty_buffers') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Wired down buffers</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_wired_buffers') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Disk reads</td>
	  <td CLASS="statdata"><?= sys_stat('disk_reads') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Disk read average (msec)</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_disk_read_avg') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Disk read percent</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_disk_read_pct') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Last disk read time (sec)</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_disk_read_last') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Disk writes</td>
	  <td CLASS="statdata"><?= sys_stat('disk_writess') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Disk read aheads</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_disk_read_aheads') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Disk read ahead batch</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_disk_read_ahead_batch') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Second in read</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_disk_second_reads') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">In while read</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_disk_in_while_read') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Multithreaded write</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_disk_mt_write') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Log file name</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_log_name') ?></td>
	</tr>
        <tr>
	  <td CLASS="statlisthead">Log file length (bytes)</td>
	  <td CLASS="statdata"><?= sys_stat('st_db_log_length') ?></td>
	</tr>
    </table>
</td></tr>
<tr><td><hr /></td></tr>
 <tr><td>
 <div align="center"><a name="info"><b><i>Notes:</i></b></a></div>
 <ul style="margin-left: 40px; margin-right: 40px; text-align: left;">
     <li>
       <b>Licensed to</b> field displays the name of the license owner. If your version is not registered, the field will display "Demo version".<br /><br />
     </li>
     <li>
       <b>License Serial Number</b> field displays the serial number contained in the license file.<br /><br />
     </li>
     <li>
       <b>Licensed concurrent connections</b> displays the number of connections which your server is licensed to accept. This number comprises both HTTP server threads and ODBC/SQL connections. Non-registered servers are allowed three connections.<br /><br />
     </li>
     <li>
       <b>Current active connections</b> displays the current count of active connections (pending HTTP connections included).<br /><br />
     </li>
     <li>
       <b>Total ODBC/SQL connections since server startup</b> counter displays the total connection attempts (including rejected ones) of ODBC/SQL clients from server startup. This value will be reset to zero at server startup.<br /><br />
     </li>
     <li>
       <b>Maximum concurrent connections since server startup</b> displays the maximum number of simultaneous connections (HTTP threads included). This value will be reset to zero at server startup.<br /><br />
     </li>
     <li>
       <b>HTTP Threads</b> displays the total number of HTTP threads made available by the server. (This value is included in the active connection count.)<br /><br />
     </li>
 </ul>
</td></tr>
<TR><TD><IMG SRC="images/1x1.gif" WIDTH="1" HEIGHT="15" ALT=""></TD></TR>
</table>
<tr>
<?vsp adm_page_footer(); ?>
</html>