| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you under the Apache License, Version 2.0 (the |
| ~ "License"); you may not use this file except in compliance |
| ~ with the License. You may obtain a copy of the License at |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <ng-container *ngIf="detail"> |
| <nz-card nzTitle="Memory"> |
| <nz-card nzType="inner" nzTitle="JVM (Heap/Non-Heap)"> |
| <nz-table |
| [nzData]="['']" |
| [nzShowPagination]="false" |
| [nzSize]="'small'" |
| class="no-border small"> |
| <thead> |
| <tr> |
| <th>Type</th> |
| <th>Committed</th> |
| <th>Used</th> |
| <th>Maximum</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr> |
| <td><strong>Heap</strong></td> |
| <td>{{ detail.metrics.heapCommitted | nzHumanizeBytes }}</td> |
| <td>{{ detail.metrics.heapUsed | nzHumanizeBytes }}</td> |
| <td>{{ detail.metrics.heapMax | nzHumanizeBytes }}</td> |
| </tr> |
| <tr> |
| <td><strong>Non-Heap</strong></td> |
| <td>{{ detail.metrics.nonHeapCommitted | nzHumanizeBytes }}</td> |
| <td>{{ detail.metrics.nonHeapUsed | nzHumanizeBytes }}</td> |
| <td>{{ detail.metrics.nonHeapMax | nzHumanizeBytes }}</td> |
| </tr> |
| <tr> |
| <td><strong>Total</strong></td> |
| <td>{{ (detail.metrics.heapCommitted + detail.metrics.nonHeapCommitted) | nzHumanizeBytes }}</td> |
| <td>{{ (detail.metrics.heapUsed + detail.metrics.nonHeapUsed) | nzHumanizeBytes }}</td> |
| <td>{{ (detail.metrics.heapMax + detail.metrics.nonHeapMax) | nzHumanizeBytes }}</td> |
| </tr> |
| </tbody> |
| </nz-table> |
| </nz-card> |
| <nz-card nzType="inner" nzTitle="Outside JVM"> |
| <nz-table |
| [nzData]="['']" |
| [nzShowPagination]="false" |
| [nzSize]="'small'" |
| class="no-border small"> |
| <thead> |
| <tr> |
| <th>Type</th> |
| <th>Count</th> |
| <th>Used</th> |
| <th>Capacity</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr> |
| <td><strong>Direct</strong></td> |
| <td>{{ detail.metrics.directCount | number }}</td> |
| <td>{{ detail.metrics.directUsed | nzHumanizeBytes }}</td> |
| <td>{{ detail.metrics.directMax | nzHumanizeBytes }}</td> |
| </tr> |
| <tr> |
| <td><strong>Mapped</strong></td> |
| <td>{{ detail.metrics.mappedCount | number }}</td> |
| <td>{{ detail.metrics.mappedUsed | nzHumanizeBytes }}</td> |
| <td>{{ detail.metrics.mappedMax | nzHumanizeBytes }}</td> |
| </tr> |
| </tbody> |
| </nz-table> |
| </nz-card> |
| </nz-card> |
| <nz-card nzTitle="Network"> |
| <nz-card nzType="inner" nzTitle="Memory Segments"> |
| <nz-table |
| [nzData]="['']" |
| [nzShowPagination]="false" |
| [nzSize]="'small'" |
| class="no-border small"> |
| <thead> |
| <tr> |
| <th>Type</th> |
| <th>Count</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr> |
| <td><strong>Available</strong></td> |
| <td>{{ detail.metrics.memorySegmentsAvailable | number }}</td> |
| </tr> |
| <tr> |
| <td><strong>Total</strong></td> |
| <td>{{ detail.metrics.memorySegmentsTotal | number }}</td> |
| </tr> |
| </tbody> |
| </nz-table> |
| </nz-card> |
| <nz-card nzType="inner" nzTitle="Garbage Collection"> |
| <nz-table |
| [nzData]="['']" |
| [nzShowPagination]="false" |
| [nzSize]="'small'" |
| class="no-border small"> |
| <thead> |
| <tr> |
| <th>Collector</th> |
| <th>Count</th> |
| <th>Time</th> |
| </tr> |
| </thead> |
| <tbody *ngFor="let g of detail.metrics.garbageCollectors"> |
| <tr> |
| <td><strong>{{ g.name }}</strong></td> |
| <td>{{ g.count | number }}</td> |
| <td>{{ g.time | number }}</td> |
| </tr> |
| </tbody> |
| </nz-table> |
| </nz-card> |
| </nz-card> |
| </ng-container> |