aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-14 02:07:11 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-14 02:07:11 -0400
commit8e4d710a0d8b47bb6ceabe5a640a9097c19223f5 (patch)
tree59e7f59e4a9e584fa1ed1741ac2ca20f3b94b7bb /config
parente16ee5566ea37d56c8776b4eb1e5f3e4ff2ad530 (diff)
downloadpfsense-packages-8e4d710a0d8b47bb6ceabe5a640a9097c19223f5.tar.gz
pfsense-packages-8e4d710a0d8b47bb6ceabe5a640a9097c19223f5.tar.bz2
pfsense-packages-8e4d710a0d8b47bb6ceabe5a640a9097c19223f5.zip
Add current memory usage
Diffstat (limited to 'config')
-rwxr-xr-xconfig/haproxy/haproxy_global.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/haproxy/haproxy_global.php b/config/haproxy/haproxy_global.php
index 0d60684b..d77595de 100755
--- a/config/haproxy/haproxy_global.php
+++ b/config/haproxy/haproxy_global.php
@@ -142,7 +142,11 @@ function enable_change(enable_change) {
</table>
Sets the maximum per-process number of concurrent connections to X.<br/>
<strong>NOTE:</strong> setting this value too high will result in haproxy not being able to allocate enough memory.<br/>
- </td><td>
+<?php
+ $hapcpu = `top | grep haproxy | awk '{ print $6 }'`;
+ if($hapcpu)
+ echo "<p>Current memory usage {$hascpu}.</p>";
+?> </td><td>
<table style="border: 1px solid #000;">
<tr>
<td><font size=-1>Connections</td>