I have a Java application running under JBoss AS 7 that is used to call a fairly complicated bash script using Runtime.getRuntime().exec(command). The bash script is failing because cvs is reporting that it is running out of memory (the error was “E342: Out of memory!” to be exact).
So should I be increasing the amount of memory available to JBoss AS (with JAVA_OPTS=”-Xms256m -Xmx2048m” or something similar), or does this indicate that the OS itself has run out of memory?
It turns out it was vim. I was running the script that called cvs under the empty command, which may have caused the issue. In the end I just created a script to edit the message file with a generic message:
Then set the EDITOR or CVSEDITOR environment variable to point to the script.