blob: 5a0b9dcf80a2d7a5091159ce726b44dbf06575fe (
plain)
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>YaCy '#[clientname]#': Performance Settings for Memory</title>
#%env/templates/metas.template%#
<script type="text/javascript" src="js/html.js"></script>
</head>
<body id="PerformanceMemory">
<script type="text/javascript"><!--
function reloadGraph() {
if(document.forms["optionreloadGraph"].option.checked)
document.images["graph"].src="PerformanceGraph.png?nopeers=&time="+(new Date()).getTime();
window.status="";
}
window.setInterval("reloadGraph()", 1000);
//--></script>
#%env/templates/header.template%#
#%env/templates/submenuComputation.template%#
<h2>Performance Settings for Memory</h2>
<p><img src="PerformanceGraph.png?nopeers=" id="graph" alt="PerformanceGraph"/></p>
<form id="optionreloadGraph" method="get"><p>
<input type="checkbox" name="option" id="autoreload" #(autoreload.checked)#::checked="checked"#(/autoreload.checked)#/>
<label for="autoreload">refresh graph</label>
</p></form>
<form id="shortmemform" action="PerformanceMemory_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
<input type="hidden" name="dummy" value="0" />
<p>
<input type="checkbox" name="simulatedshortmemory" id="shortmem" onclick = 'this.form.submit()' #(simulatedshortmemory.checked)#:: checked="checked"#(/simulatedshortmemory.checked)#/>
<label for="shortmem">simulate short memory status</label>
</p><p>
<input type="checkbox" name="useStandardmemoryStrategy" id="dfltmem" onclick = 'this.form.submit()' #(useStandardmemoryStrategy.checked)#:: checked="checked"#(/useStandardmemoryStrategy.checked)#/>
<label for="dfltmem">use Standard Memory Strategy</label> (current: #[memoryStrategy]#)
</p></form>
<table style="border-width:0px;">
<caption><strong>Memory Usage</strong></caption>
<thead>
<tr class="TableHeader" style="vertical-align:bottom;">
<th> <br />Type</th>
<th>After Startup<br /> </th>
<th>After Initializations<br />before GC</th>
<th>After Initializations<br />after GC</th>
<th>Now<br />#(gc)#before <a href="PerformanceMemory_p.html?gc=">GC</a>::after GC#(/gc)#</th>
<th>Description<br /> </th>
</tr>
</thead>
<tbody>
<tr class="TableCellLight">
<th scope="row" class="TableCellDark" style="text-align:left;">Max</th>
<td style="text-align:center;" colspan="4">#[memoryMax]# MByte</td>
<td style="text-align:left;">maximum memory that the JVM will attempt to use</td>
</tr>
<tr class="TableCellLight">
<th scope="row" class="TableCellDark" style="text-align:left;">Available</th>
<td style="text-align:right;">#[memoryAvailAfterStartup]# MByte</td>
<td style="text-align:right;">#[memoryAvailAfterInitBGC]# MByte</td>
<td style="text-align:right;">#[memoryAvailAfterInitAGC]# MByte</td>
<td style="text-align:right;">#[memoryAvailNow]# MByte</td>
<td style="text-align:left;">total available memory including free for the JVM within maximum</td>
</tr>
<tr class="TableCellLight">
<th scope="row" class="TableCellDark" style="text-align:left;">Total</th>
<td style="text-align:right;">#[memoryTotalAfterStartup]# MByte</td>
<td style="text-align:right;">#[memoryTotalAfterInitBGC]# MByte</td>
<td style="text-align:right;">#[memoryTotalAfterInitAGC]# MByte</td>
<td style="text-align:right;">#[memoryTotalNow]# MByte</td>
<td style="text-align:left;">total memory taken from the OS</td>
</tr>
<tr class="TableCellLight">
<th scope="row" class="TableCellDark" style="text-align:left;">Free</th>
<td style="text-align:right;">#[memoryFreeAfterStartup]# MByte</td>
<td style="text-align:right;">#[memoryFreeAfterInitBGC]# MByte</td>
<td style="text-align:right;">#[memoryFreeAfterInitAGC]# MByte</td>
<td style="text-align:right;">#[memoryFreeNow]# MByte</td>
<td style="text-align:left;">free memory in the JVM within total amount</td>
</tr>
<tr class="TableCellLight">
<th scope="row" class="TableCellDark" style="text-align:left;">Used</th>
<td style="text-align:right;">#[memoryUsedAfterStartup]# MByte</td>
<td style="text-align:right;">#[memoryUsedAfterInitBGC]# MByte</td>
<td style="text-align:right;">#[memoryUsedAfterInitAGC]# MByte</td>
<td style="text-align:right;">#[memoryUsedNow]# MByte</td>
<td style="text-align:left;">used memory in the JVM within total amount</td>
</tr>
</tbody>
</table>
<table style="border-width:0px;">
<caption><strong>Table RAM Index</strong></caption>
<thead>
<tr class="TableHeader" style="vertical-align:bottom;">
<th rowspan="2">Table</th>
<th rowspan="2">Size</th>
<th colspan="2">Key</th>
<th colspan="2">Value</th>
</tr>
<tr class="TableHeader" style="vertical-align:bottom;">
<th>Chunk Size</th>
<th>Used Memory</th>
<th>Chunk Size</th>
<th>Used Memory</th>
</tr>
</thead>
<tbody>
#{EcoList}#
<tr class="TableCellLight">
<td style="text-align:left;" class="TableCellDark">#[tableIndexPath]#</td>
<td style="text-align:right;">#[tableSize]#</td>
<td style="text-align:right;">#[tableKeyChunkSize]#</td>
<td style="text-align:right;">#[tableKeyMem]#</td>
<td style="text-align:right;">#[tableValueChunkSize]#</td>
<td style="text-align:right;">#[tableValueMem]#</td>
</tr>
#{/EcoList}#
</tbody>
<tfoot>
<tr class="TableCellDark">
<td colspan="6">Total Mem = #[EcoIndexTotalMem]# MB</td>
</tr>
</tfoot>
</table>
<table style="border-width:0px;">
<caption><strong>Object Index Caches</strong></caption>
<thead>
<tr class="TableHeader" style="vertical-align:bottom;">
<th>Table</th>
<th>Size</th>
<th>Chunk Size</th>
<th>Needed Memory</th>
<th>Used Memory</th>
<!-- <th>Flushes</th> -->
</tr>
</thead>
<tbody>
#{indexcache}#
<tr class="TableCellLight">
<td style="text-align:left;" class="TableCellDark">#[Name]#</td>
<td style="text-align:right;">#[Count]#</td>
<td style="text-align:right;">#[ChunkSize]#</td>
<td style="text-align:right;">#[NeededMem]#</td>
<td style="text-align:right;">#[UsedMem]#</td>
</tr>
#{/indexcache}#
</tbody>
<tfoot>
<tr class="TableCellDark">
<td colspan="5">Total Mem: #[indexcacheTotalMem]# MB</td>
</tr>
</tfoot>
</table>
<!-- other cache sizes -->
<table style="border-width:0px;">
<caption><strong>Other Caching Structures</strong></caption>
<thead>
<tr class="TableHeader" style="vertical-align:bottom;">
<th>Type</th>
<th>Size</th>
<th>Hit</th>
<th>Miss</th>
<th>Insert</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<tr class="TableCellLight">
<th scope="row">DNSCache/Hit</th>
<td>#[namecacheHit.size]#</td>
<td>#[namecacheHit.Hit]#</td>
<td>#[namecacheHit.Miss]#</td>
<td>#[namecacheHit.Insert]#</td>
<td>(ARC)</td>
</tr>
<tr class="TableCellLight">
<th scope="row">DNSCache/Miss</th>
<td>#[namecacheMiss.size]#</td>
<td>#[namecacheMiss.Hit]#</td>
<td>#[namecacheMiss.Miss]#</td>
<td>#[namecacheMiss.Insert]#</td>
<td>(ARC)</td>
</tr>
<tr class="TableCellDark">
<th scope="row">DNSNoCache</th>
<td>#[namecache.noCache]#</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr class="TableCellLight">
<th scope="row">HashBlacklistedCache</th>
<td>#[blacklistcache.size]#</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr class="TableCellLight">
<th scope="row">Search Event Cache</th>
<td>#[searchevent.size]#</td>
<td>#[searchevent.hit]#</td>
<td>#[searchevent.miss]#</td>
<td>#[searchevent.insert]#</td>
<td>#[searchevent.delete]#</td>
</tr>
</tbody>
</table>
#%env/templates/footer.template%#
</body>
</html>
|