public interface MemoryStatistics
| Modifier and Type | Interface and Description |
|---|---|
static class |
MemoryStatistics.Default |
| Modifier and Type | Method and Description |
|---|---|
long |
committed()
Returns the amount of memory in bytes that is committed for
the Java virtual machine to use.
|
long |
max()
Returns the maximum amount of memory in bytes that can be
used for memory management.
|
static MemoryStatistics |
New(long max,
long committed,
long used) |
long |
used()
Returns the amount of used memory in bytes.
|
long max()
-1
if the maximum memory size is undefined.
This amount of memory is not guaranteed to be available for memory management if it is greater than the amount of committed memory. The Java virtual machine may fail to allocate memory even if the amount of used memory does not exceed this maximum size.
-1 if undefined.long committed()
long used()
static MemoryStatistics New(long max, long committed, long used)
Copyright © 2022 MicroStream Software. All rights reserved.