mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-07-28 20:42:58 +00:00
[Web] Add JVM memory indiator and add minor fixes
This commit is contained in:
parent
b178326736
commit
0487f5ea1d
5 changed files with 43 additions and 11 deletions
|
|
@ -76,11 +76,17 @@ else {
|
|||
<?php
|
||||
if ($solr_status !== false):
|
||||
?>
|
||||
<p><?=$lang['debug']['solr_uptime'];?>: ~<?=round($solr_status['uptime'] / 1000 / 60 / 60);?>h</p>
|
||||
<p><?=$lang['debug']['solr_started_at'];?>: <?=$solr_status['startTime'];?></p>
|
||||
<p><?=$lang['debug']['solr_last_modified'];?>: <?=$solr_status['index']['lastModified'];?></p>
|
||||
<p><?=$lang['debug']['solr_size'];?>: <?=$solr_status['index']['size'];?></p>
|
||||
<p><?=$lang['debug']['solr_docs'];?>: <?=$solr_status['index']['numDocs'];?></p>
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-info" role="progressbar" style="width:<?=round($solr_status['jvm']['memory']['raw']['used%']);?>%"></div>
|
||||
</div>
|
||||
<p><?=$lang['debug']['jvm_memory_solr'];?>: <?=$solr_status['jvm']['memory']['total'] - $solr_status['jvm']['memory']['free'];?> / <?=$solr_status['jvm']['memory']['total'];?>
|
||||
(<?=round($solr_status['jvm']['memory']['raw']['used%']);?>%)</p>
|
||||
<hr>
|
||||
<p><?=$lang['debug']['solr_uptime'];?>: ~<?=round($solr_status['status']['dovecot-fts']['uptime'] / 1000 / 60 / 60);?>h</p>
|
||||
<p><?=$lang['debug']['solr_started_at'];?>: <?=$solr_status['status']['dovecot-fts']['startTime'];?></p>
|
||||
<p><?=$lang['debug']['solr_last_modified'];?>: <?=$solr_status['status']['dovecot-fts']['index']['lastModified'];?></p>
|
||||
<p><?=$lang['debug']['solr_size'];?>: <?=$solr_status['status']['dovecot-fts']['index']['size'];?></p>
|
||||
<p><?=$lang['debug']['solr_docs'];?>: <?=$solr_status['status']['dovecot-fts']['index']['numDocs'];?></p>
|
||||
<?php
|
||||
else:
|
||||
?>
|
||||
|
|
@ -124,9 +130,9 @@ else {
|
|||
$started = '?';
|
||||
}
|
||||
?>
|
||||
<small>(Started on <?=$started;?>),
|
||||
<small>(<?=$lang['debug']['started_on'];?> <?=$started;?>),
|
||||
<a href data-toggle="modal" data-container="<?=$container;?>" data-target="#RestartContainer"><?=$lang['debug']['restart_container'];?></a></small>
|
||||
<span class="pull-right label label-<?=($container_info['State'] !== false && !empty($container_info['State'])) ? (($container_info['State']['Running'] == 1) ? 'success' : 'danger') : 'default'; ?>"> </span>
|
||||
<span class="pull-right container-indicator label label-<?=($container_info['State'] !== false && !empty($container_info['State'])) ? (($container_info['State']['Running'] == 1) ? 'success' : 'danger') : 'default'; ?>"> </span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue