Index: openacs-4/packages/xotcl-request-monitor/xotcl-request-monitor.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-request-monitor/xotcl-request-monitor.info,v diff -u -r1.15.2.16 -r1.15.2.17 --- openacs-4/packages/xotcl-request-monitor/xotcl-request-monitor.info 25 Mar 2022 19:49:55 -0000 1.15.2.16 +++ openacs-4/packages/xotcl-request-monitor/xotcl-request-monitor.info 30 Oct 2022 12:13:51 -0000 1.15.2.17 @@ -8,7 +8,7 @@ t request-monitor - + Gustaf Neumann WU Vienna Request Monitor with user tracking functionality @@ -33,10 +33,10 @@ BSD-Style 2 - + - + Index: openacs-4/packages/xotcl-request-monitor/tcl/throttle_mod-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-request-monitor/tcl/throttle_mod-procs.tcl,v diff -u -r1.67.2.49 -r1.67.2.50 --- openacs-4/packages/xotcl-request-monitor/tcl/throttle_mod-procs.tcl 8 Oct 2022 19:57:38 -0000 1.67.2.49 +++ openacs-4/packages/xotcl-request-monitor/tcl/throttle_mod-procs.tcl 30 Oct 2022 12:13:51 -0000 1.67.2.50 @@ -270,7 +270,8 @@ set var :running_url($requestKey,$url) # - # Never block embedded requests + # Never block certain requests, such as embedded requests, range + # requests, system requests, requests from the fast pool, ... # if { $fetchDest in $::never_blocked_fetchDest @@ -284,7 +285,7 @@ application/javascript application/x-javascript } - || [string match "/system/*" $url] + || [string match "/SYSTEM/*" $url] || [string match "/shared/*" $url] || "/proctoring/upload" eq $url } { Index: openacs-4/packages/xotcl-request-monitor/www/active-communities.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-request-monitor/www/active-communities.tcl,v diff -u -r1.4.2.3 -r1.4.2.4 --- openacs-4/packages/xotcl-request-monitor/www/active-communities.tcl 25 Mar 2022 19:49:55 -0000 1.4.2.3 +++ openacs-4/packages/xotcl-request-monitor/www/active-communities.tcl 30 Oct 2022 12:13:52 -0000 1.4.2.4 @@ -1,5 +1,5 @@ ad_page_contract { - Displays active commnities + Displays active communities @author Gustaf Neumann Index: openacs-4/packages/xotcl-request-monitor/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-request-monitor/www/index.adp,v diff -u -r1.9.2.1 -r1.9.2.2 --- openacs-4/packages/xotcl-request-monitor/www/index.adp 22 Mar 2021 08:37:20 -0000 1.9.2.1 +++ openacs-4/packages/xotcl-request-monitor/www/index.adp 30 Oct 2022 12:13:52 -0000 1.9.2.2 @@ -4,7 +4,8 @@ - + Index: openacs-4/packages/xotcl-request-monitor/www/long-calls.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-request-monitor/www/long-calls.adp,v diff -u -r1.3.2.2 -r1.3.2.3 --- openacs-4/packages/xotcl-request-monitor/www/long-calls.adp 15 Jul 2020 19:45:18 -0000 1.3.2.2 +++ openacs-4/packages/xotcl-request-monitor/www/long-calls.adp 30 Oct 2022 12:13:52 -0000 1.3.2.3 @@ -3,6 +3,20 @@

Long Calls

+
+
+Connection Pools:  + +
+ + +
+
+ + + +
+
 Lines: 20, 50, Index: openacs-4/packages/xotcl-request-monitor/www/long-calls.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-request-monitor/www/long-calls.tcl,v diff -u -r1.4.2.8 -r1.4.2.9 --- openacs-4/packages/xotcl-request-monitor/www/long-calls.tcl 15 Sep 2021 10:25:15 -0000 1.4.2.8 +++ openacs-4/packages/xotcl-request-monitor/www/long-calls.tcl 30 Oct 2022 12:13:52 -0000 1.4.2.9 @@ -7,6 +7,7 @@ } -query { {lines:naturalnum 20} {readsize:naturalnum 100000} + {pool:word,multiple ""} } -properties { title:onevalue context:onevalue @@ -32,13 +33,13 @@ nsf::proc ::xo::colorize_slow_calls {-fast:required -warning:required -danger:required value} { if {$value > $danger} { - return danger + return "danger bg-danger bg-opacity-10" } elseif {$value > $warning} { - return warning + return "warning bg-warning bg-opacity-10" } elseif {$value > $fast} { - return info + return "info bg-info bg-opacity-10" } else { - return success + return "success bg-success bg-opacity-10" } } @@ -60,11 +61,53 @@ set offset [lindex $offsets 0 0] } set c1 [string range $c $offset+1 end] -set rows "" +set logLines [lreverse [split $c1 \n]] -foreach line [lreverse [split $c1 \n]] { +# +# Determine the pools which where used in line range of the log lines, +# that we are looking at? +# +set foundPoolsDict "" +foreach line $logLines { if {$line eq ""} continue + dict set foundPoolsDict [lindex $line 12] 1 +} +# +# Map in the found pools empty to "default" +# +set foundPools [lmap p [lsort [dict keys $foundPoolsDict]] { + expr {$p eq "" ? "default" : $p} +}] + +# +# In case, no "pool" filter value was provided, show all found pools. +# +if {$pool eq ""} { + set pool $foundPools +} +set inputPools $pool + +# +# Create a multirow to let templating make some work +# +template::multirow create poolcheckboxes name checked +foreach name $foundPools { + template::multirow append poolcheckboxes $name [expr {$name in $inputPools ? "checked" : ""}] +} + +# +# Provide the reverse mapping for "default" to "" avoid doing the test +# in the loop. +# +set pools [lmap p $inputPools {expr {$p eq "default" ? "" : $p}}] + +set rows "" +foreach line $logLines { + if {$line eq ""} continue lassign $line wday mon day hours tz year dash url time uid ip contentType pool + if {$pool ni $pools} { + continue + } set userinfo [::xo::userid_link $uid] set iplink [subst {[ns_quotehtml $ip]}] if {[llength $time] > 1} { @@ -108,14 +151,17 @@ set context [list $doc(title)] # -# We always want bootstrap for the coloring. +# We always want bootstrap for the coloring and the filter. The markup +# in the .adp file is supposed to render reasonably for Bootstrap 3 +# and Bootstrap 5 themes to ease maintenance. # -if {[template::head::can_resolve_urn urn:ad:js:bootstrap3]} { +if {[template::head::can_resolve_urn urn:ad:css:bootstrap5] && [string match "*bootstrap5*" [subsite::get_theme]]} { + template::head::add_css -href urn:ad:css:bootstrap5 -media all +} elseif {[template::head::can_resolve_urn urn:ad:css:bootstrap3]} { template::head::add_css -href urn:ad:css:bootstrap3 -media all } else { # - # We have no xowiki or bootstrap based theme installed, so load it - # manually. + # We have no Bootstrap based theme installed, so load it manually. # template::head::add_css -href //maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css -media all security::csp::require style-src maxcdn.bootstrapcdn.com Index: openacs-4/packages/xotcl-request-monitor/www/whos-online.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-request-monitor/www/whos-online.tcl,v diff -u -r1.16.2.5 -r1.16.2.6 --- openacs-4/packages/xotcl-request-monitor/www/whos-online.tcl 25 Mar 2022 19:49:55 -0000 1.16.2.5 +++ openacs-4/packages/xotcl-request-monitor/www/whos-online.tcl 30 Oct 2022 12:13:52 -0000 1.16.2.6 @@ -33,7 +33,7 @@ TableWidget create t1 \ -actions [subst { - Action new -label "$label($all)" -url $url -tooltip "$tooltip($all)" + Action new -CSSclass "double-click-prevention btn" -label "$label($all)" -url $url -tooltip "$tooltip($all)" }] \ -columns [subst { AnchorField name -label "User" -orderby name @@ -59,7 +59,8 @@ return "$peer ($pa)" #return "$peer" } -ns_log notice USERS=[throttle users active -full] + +#ns_log notice USERS=[throttle users active -full] set users [list] foreach element [throttle users active -full] { lassign $element user_id pa timestamp hits smooth switches
Active Users:@active_user_string;noquote@#acs-subsite.parameters##acs-subsite.parameters# +
Current System Activity:@current_system_activity@