This commit is contained in:
Greg DiCristofaro 2023-09-12 09:52:00 -04:00
parent 5ad95a9e71
commit cc2d687b41
2 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,10 @@ Installer.closing.confirmationDialog.message=Ingest is running, are you sure you
Installer.closing.confirmationDialog.title=Ingest is Running Installer.closing.confirmationDialog.title=Ingest is Running
# {0} - exception message # {0} - exception message
Installer.closing.messageBox.caseCloseExceptionMessage=Error closing case: {0} Installer.closing.messageBox.caseCloseExceptionMessage=Error closing case: {0}
# {0} - maxMemory
Installer_checkMemoryAvailable_maxMemExpected_desc=Maximum JVM memory: {0}, is less than the 2 GB required. Some aspects of the application may not work as expected.
# {0} - physicalMemory
Installer_checkMemoryAvailable_physicalRamExpected_desc=Physical memory: {0}, is less than the 8 GB required. Some aspects of the application may not work as expected.
OpenIDE-Module-Display-Category=Infrastructure OpenIDE-Module-Display-Category=Infrastructure
OpenIDE-Module-Long-Description=\ OpenIDE-Module-Long-Description=\
This is the core Autopsy module.\n\n\ This is the core Autopsy module.\n\n\

View File

@ -402,15 +402,15 @@ public class Installer extends ModuleInstall {
*/ */
@Messages({ @Messages({
"# {0} - physicalMemory", "# {0} - physicalMemory",
"Installer_checkMemoryAvailable_physicalRamExpected_desc=Physical memory: {0}, is less than the 8GB required. Some aspects of the application may not work as expected.", "Installer_checkMemoryAvailable_physicalRamExpected_desc=Physical memory: {0}, is less than the 8 GB required. Some aspects of the application may not work as expected.",
"# {0} - maxMemory", "# {0} - maxMemory",
"Installer_checkMemoryAvailable_maxMemExpected_desc=Maximum JVM memory: {0}, is less than the 2GB required. Some aspects of the application may not work as expected." "Installer_checkMemoryAvailable_maxMemExpected_desc=Maximum JVM memory: {0}, is less than the 2 GB required. Some aspects of the application may not work as expected."
}) })
private void checkMemoryAvailable() { private void checkMemoryAvailable() {
try { try {
long memorySize = ((com.sun.management.OperatingSystemMXBean) ManagementFactory long memorySize = ((com.sun.management.OperatingSystemMXBean) ManagementFactory
.getOperatingSystemMXBean()).getTotalMemorySize(); .getOperatingSystemMXBean()).getTotalMemorySize();
if (memorySize < 8_000_000) { if (memorySize < 8_000_000_000L) {
String desc = Bundle.Installer_checkMemoryAvailable_physicalRamExpected_desc( String desc = Bundle.Installer_checkMemoryAvailable_physicalRamExpected_desc(
FileUtils.byteCountToDisplaySize(memorySize)); FileUtils.byteCountToDisplaySize(memorySize));
logger.log(Level.SEVERE, desc); logger.log(Level.SEVERE, desc);
@ -421,7 +421,7 @@ public class Installer extends ModuleInstall {
try { try {
long maxMemory = Runtime.getRuntime().maxMemory(); long maxMemory = Runtime.getRuntime().maxMemory();
if (maxMemory < 2_000_000) { if (maxMemory < 2_000_000_000L) {
String desc = Bundle.Installer_checkMemoryAvailable_maxMemExpected_desc( String desc = Bundle.Installer_checkMemoryAvailable_maxMemExpected_desc(
FileUtils.byteCountToDisplaySize(maxMemory)); FileUtils.byteCountToDisplaySize(maxMemory));
logger.log(Level.SEVERE, desc); logger.log(Level.SEVERE, desc);