Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
2e32af84
Commit
2e32af84
authored
Oct 23, 2017
by
Greg Thomas
Committed by
Guus der Kinderen
Oct 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1408: Display acount of entries/hits/misses on the Cache summary screen
parent
8e65e483
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
system-cache.jsp
src/web/system-cache.jsp
+16
-9
No files found.
src/web/system-cache.jsp
View file @
2e32af84
<%@ page
import=
"org.jivesoftware.util.
cache.Cache
"
%>
<%@ page
import=
"org.jivesoftware.util.
CookieUtils
"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.StringUtils"
%>
<%@ page
import=
"org.jivesoftware.util.
CookieUtils
"
%>
<%@ page
import=
"org.jivesoftware.util.
cache.Cache
"
%>
<%@ page
import=
"java.text.DecimalFormat"
%>
<%--
-
...
...
@@ -171,9 +171,9 @@
<th
width=
"39%"
nowrap
><fmt:message
key=
"system.cache.head.name"
/></th>
<th
width=
"10%"
nowrap
><fmt:message
key=
"system.cache.head.max"
/></th>
<th
width=
"10%"
nowrap
><fmt:message
key=
"system.cache.head.lifetime"
/></th>
<th
width=
"10%"
nowrap
><fmt:message
key=
"system.cache.head.current"
/></th>
<th
width=
"10%"
nowrap
style=
"text-align: center;"
colspan=
"2"
><fmt:message
key=
"system.cache.head.current"
/></th>
<th
width=
"10%"
nowrap
><fmt:message
key=
"system.cache.head.percent"
/></th>
<th
width=
"20%"
nowrap
><fmt:message
key=
"system.cache.head.effectiveness"
/></th>
<th
width=
"20%"
nowrap
style=
"text-align: center;"
colspan=
"2"
><fmt:message
key=
"system.cache.head.effectiveness"
/></th>
<th
width=
"1%"
class=
"c5"
><input
type=
"checkbox"
name=
""
value=
""
onclick=
"handleCBClick(this);"
></th>
</tr>
</thead>
...
...
@@ -185,6 +185,7 @@
if
(
cache
.
getMaxCacheSize
()
!=
-
1
&&
cache
.
getMaxCacheSize
()
!=
Integer
.
MAX_VALUE
)
{
overallTotal
+=
(
double
)
cache
.
getMaxCacheSize
();
}
int
entries
=
cache
.
size
();
memUsed
=
(
double
)
cache
.
getCacheSize
()/(
1024
*
1024
);
totalMem
=
(
double
)
cache
.
getMaxCacheSize
()/(
1024
*
1024
);
freeMem
=
100
-
100
*
memUsed
/
totalMem
;
...
...
@@ -226,8 +227,11 @@
<fmt:message
key=
"global.unlimited"
/>
<%
}
%>
</td>
<td
class=
"c3"
>
<%=
mbFormat
.
format
(
memUsed
)
%>
MB
<td
class=
"c3"
style=
"text-align: right; padding-right:0;"
>
<%=
entries
%>
</td>
<td
class=
"c3"
style=
"text-align: left; padding-left:0;"
>
/
<%=
mbFormat
.
format
(
memUsed
)
%>
MB
</td>
<td
class=
"c3"
>
<%
if
(
cache
.
getMaxCacheSize
()
!=
-
1
&&
cache
.
getMaxCacheSize
()
!=
Integer
.
MAX_VALUE
)
{
%>
...
...
@@ -236,8 +240,11 @@
N/A
<%
}
%>
</td>
<td
class=
"c4"
>
<%=
hitPercent
%>
<td
class=
"c4"
style=
"text-align: right; padding-right:0;"
>
<%=
hits
%>
/
<%=
(
hits
+
misses
)
%>
</td>
<td
class=
"c4"
style=
"text-align: left; padding-left:0;"
>
(
<%=
hitPercent
%>
)
</td>
<td
width=
"1%"
class=
"c5"
>
...
...
@@ -256,7 +263,7 @@
<td
class=
"c2"
>
<%=
mbFormat
.
format
(
overallTotal
/(
1024.0
*
1024.0
))
%>
MB
</td>
<td
align=
"right"
colspan=
"
4
"
>
<td
align=
"right"
colspan=
"
7
"
>
<input
type=
"submit"
name=
"clear"
value=
"
<fmt:message
key=
"system.cache.clear-selected"
/>
"
disabled
>
</td>
</tr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment