mbeckerle commented on a change in pull request #135: Show different error
message for OOM
URL: https://github.com/apache/incubator-daffodil/pull/135#discussion_r232813576
##########
File path: daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala
##########
@@ -1355,6 +1355,19 @@ object Main extends Logging {
log(LogLevel.Error, "%s", e.getMessage())
1
}
+ case e: OutOfMemoryError => {
+ System.err.println("""|
+
|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ |!! Daffodil ran out of memory!
!!
+
|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ |
+ | Try increasing the amount of memory by changing
or
+ | setting the DAFFODIL_JAVA_OPTS environment
variable.
Review comment:
Might as well tell them how to set it i.e., for the OpenJDK JVM the
parameter value is -Xmx5G for 5 gigabytes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services