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
*/
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%
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;
ADJUSTMENT_MESSAGE = reason;
if (!quiet)
{
- System.out.println(reason);
+ ErrorLog.outPrintln(reason);
}
}