JAL-4409 Allow more URI schemes (e.g. file) to filter through to Jalview
[jalview.git] / getdown / src / getdown / core / src / main / java / jalview / bin / MemorySetting.java
index bb545cb..dbef0d9 100644 (file)
@@ -24,6 +24,8 @@ package jalview.bin;
 
 import java.util.Locale;
 
+import jalview.util.ErrorLog;
+
 /**
  * Methods to decide on appropriate memory setting for Jalview based on two
  * optionally provided values: jvmmempc - the maximum percentage of total
@@ -37,8 +39,10 @@ import java.util.Locale;
  */
 public class MemorySetting
 {
+  // This must match the value of Arg.JVMMEMPC.getName()
   public static final String MAX_HEAPSIZE_PERCENT_PROPERTY_NAME = "jvmmempc";
 
+  // This must match the value of Arg.JVMMEMMAX.getName()
   public static final String MAX_HEAPSIZE_PROPERTY_NAME = "jvmmemmax";
 
   private static final int MAX_HEAPSIZE_PERCENT_DEFAULT = 90; // 90%
@@ -354,7 +358,7 @@ public class MemorySetting
     else
     {
       // number too big for a Long. Limit to Long.MAX_VALUE
-      System.out.println("Memory parsing of '" + memString
+      ErrorLog.outPrintln("Memory parsing of '" + memString
               + "' produces number too big.  Limiting to Long.MAX_VALUE="
               + Long.MAX_VALUE);
       return Long.MAX_VALUE;
@@ -395,7 +399,7 @@ public class MemorySetting
     ADJUSTMENT_MESSAGE = reason;
     if (!quiet)
     {
-      System.out.println(reason);
+      ErrorLog.outPrintln(reason);
     }
   }