Skip to content

Commit

Permalink
Warning on 32bit engine
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Sep 27, 2017
1 parent 4866a34 commit a4e6f52
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -314,7 +314,7 @@ private static void parseConfig(String configFile) throws ConfigurationException
* The parameterString is of the format parameterName1,parameterType1,parameterValue2,parameterName2,parameterType2,parameterValue2
* @param config
*
* @param parametersString
* @param parameterName
* @return Mapped paramaterString to an Object[] array that can be inputted to UIMA components
*/
private static Object[] parseParameters(Configuration config, String parameterName) throws ConfigurationException {
Expand Down Expand Up @@ -470,6 +470,9 @@ public static void main(String[] args) {
.mapToLong(pool -> pool.getUsage().getMax())
.sum() / (1024.0 * 1024 * 1024)));

if (System.getProperty("sun.arch.data.model", "").equals("32"))
logger.warn(MessageFormat.format("You are running a 32-bit java ({0}), try a 64-bit version for more memory", System.getProperty("java.vm.name")));

System.setErr(IoBuilder.forLogger(logger.getName() + ".stderr").setLevel(Level.WARN) .setMarker(MarkerManager.getMarker("STDERR")).buildPrintStream());
System.setOut(IoBuilder.forLogger(logger.getName() + ".stdout").setLevel(Level.DEBUG).setMarker(MarkerManager.getMarker("STDOUT")).buildPrintStream());

Expand Down

0 comments on commit a4e6f52

Please sign in to comment.