Searched refs:MB (Results 1 - 15 of 15) sorted by relevance

/forgerock/openam-v13/openam-shared/src/test/java/org/forgerock/openam/utils/file/
H A DFileSizeUnitTest.java35 Assert.assertEquals(FileSizeUnit.MB.toGB(1024), 1);
36 Assert.assertEquals(FileSizeUnit.MB.toKB(1), 1024);
37 Assert.assertEquals(FileSizeUnit.MB.toB(1), 1024 * 1024);
/forgerock/openam/openam-shared/src/test/java/org/forgerock/openam/utils/file/
H A DFileSizeUnitTest.java35 Assert.assertEquals(FileSizeUnit.MB.toGB(1024), 1);
36 Assert.assertEquals(FileSizeUnit.MB.toKB(1), 1024);
37 Assert.assertEquals(FileSizeUnit.MB.toB(1), 1024 * 1024);
/forgerock/openam-v13/openam-shared/src/main/java/org/forgerock/openam/utils/file/
H A DFileSizeUnit.java34 return MB.toB(value) * 1024;
39 return MB.toKB(value) * 1024;
44 return MB.toMB(value) * 1024;
55 MB { enum constant in enum:FileSizeUnit
102 return MB.toMB(value) / 1024;
107 return MB.toGB(value) / 1024;
166 * Convert to MB.
169 * @return size in MB
/forgerock/openam/openam-shared/src/main/java/org/forgerock/openam/utils/file/
H A DFileSizeUnit.java34 return MB.toB(value) * 1024;
39 return MB.toKB(value) * 1024;
44 return MB.toMB(value) * 1024;
55 MB { enum constant in enum:FileSizeUnit
102 return MB.toMB(value) / 1024;
107 return MB.toGB(value) / 1024;
166 * Convert to MB.
169 * @return size in MB
/forgerock/openam-v13/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/record/
H A DRecordReport.java160 memoryJson.put(JVM_UNIT_MEMORY_LABEL, FileSizeUnit.MB);
/forgerock/openam/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/record/
H A DRecordReport.java162 memoryJson.put(JVM_UNIT_MEMORY_LABEL, FileSizeUnit.MB);
/forgerock/opendj2/src/server/org/opends/server/backends/jeb/importLDIF/
H A DImporter.java81 private static final int MB = (KB * KB); field in class:Importer
86 private static final int MAX_DB_CACHE_SIZE = 8 * MB;
87 private static final int MAX_DB_LOG_SIZE = 10 * MB;
88 private static final int MIN_DB_CACHE_SIZE = 4 * MB;
98 private static final int MAX_BUFFER_SIZE = 2 * MB;
108 private static final int SMALL_HEAP_SIZE = 256 * MB;
593 // Round up to minimum of 16MB (e.g. unit tests only use 2% cache).
595 Math.max(Math.min(usableMemory, configuredMemory), 16 * MB);
4124 long freeMemory = runtime.freeMemory() / MB;
4220 long freeMemory = runTime.freeMemory() / MB;
[all...]
/forgerock/opendj-b2.6/src/server/org/opends/server/backends/jeb/importLDIF/
H A DImporter.java74 private static final int MB = (KB * KB); field in class:Importer
79 private static final int MAX_DB_CACHE_SIZE = 8 * MB;
80 private static final int MAX_DB_LOG_SIZE = 10 * MB;
81 private static final int MIN_DB_CACHE_SIZE = 4 * MB;
91 private static final int MAX_BUFFER_SIZE = 2 * MB;
98 private static final int SMALL_HEAP_SIZE = 256 * MB;
578 // Round up to minimum of 16MB (e.g. unit tests only use 2% cache).
580 Math.max(Math.min(usableMemory, configuredMemory), 16 * MB);
4086 long freeMemory = runtime.freeMemory() / MB;
4182 long freeMemory = runTime.freeMemory() / MB;
[all...]
/forgerock/opendj2.6.2/src/server/org/opends/server/backends/jeb/importLDIF/
H A DImporter.java74 private static final int MB = (KB * KB); field in class:Importer
79 private static final int MAX_DB_CACHE_SIZE = 8 * MB;
80 private static final int MAX_DB_LOG_SIZE = 10 * MB;
81 private static final int MIN_DB_CACHE_SIZE = 4 * MB;
91 private static final int MAX_BUFFER_SIZE = 2 * MB;
98 private static final int SMALL_HEAP_SIZE = 256 * MB;
578 // Round up to minimum of 16MB (e.g. unit tests only use 2% cache).
580 Math.max(Math.min(usableMemory, configuredMemory), 16 * MB);
4086 long freeMemory = runtime.freeMemory() / MB;
4182 long freeMemory = runTime.freeMemory() / MB;
[all...]
/forgerock/opendj2-hg/src/server/org/opends/server/backends/jeb/importLDIF/
H A DImporter.java81 private static final int MB = (KB * KB); field in class:Importer
86 private static final int MAX_DB_CACHE_SIZE = 8 * MB;
87 private static final int MAX_DB_LOG_SIZE = 10 * MB;
88 private static final int MIN_DB_CACHE_SIZE = 4 * MB;
98 private static final int MAX_BUFFER_SIZE = 2 * MB;
108 private static final int SMALL_HEAP_SIZE = 256 * MB;
593 // Round up to minimum of 16MB (e.g. unit tests only use 2% cache).
595 Math.max(Math.min(usableMemory, configuredMemory), 16 * MB);
4124 long freeMemory = runtime.freeMemory() / MB;
4220 long freeMemory = runTime.freeMemory() / MB;
[all...]
/forgerock/opendj2-jel-hg/src/server/org/opends/server/backends/jeb/importLDIF/
H A DImporter.java74 private static final int MB = (KB * KB); field in class:Importer
79 private static final int MAX_DB_CACHE_SIZE = 8 * MB;
80 private static final int MAX_DB_LOG_SIZE = 10 * MB;
81 private static final int MIN_DB_CACHE_SIZE = 4 * MB;
91 private static final int MAX_BUFFER_SIZE = 2 * MB;
98 private static final int SMALL_HEAP_SIZE = 256 * MB;
578 // Round up to minimum of 16MB (e.g. unit tests only use 2% cache).
580 Math.max(Math.min(usableMemory, configuredMemory), 16 * MB);
4086 long freeMemory = runtime.freeMemory() / MB;
4182 long freeMemory = runTime.freeMemory() / MB;
[all...]
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/
H A DOnDiskMergeImporter.java165 private static final int SMALL_HEAP_SIZE = 256 * MB;
505 totalAvailableMemory = Math.max(availableMemory, 16 * MB);
814 private static final int MAX_BUFFER_SIZE = 2 * MB;
818 private static final int DB_CACHE_SIZE = 4 * MB;
820 private static final int REQUIRED_FREE_MEMORY = 50 * MB;
H A DVerifyJob.java1076 long freeMemory = runtime.freeMemory() / MB;
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/backends/pdb/
H A DPDBStorage.java110 private static final int IMPORT_DB_CACHE_SIZE = 4 * MB;
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/util/
H A DStaticUtils.java99 * int _10MB = 10 * MB;
102 public static final int MB = KB * KB; field in class:StaticUtils

Completed in 136 milliseconds