|
@@ -519,7 +519,13 @@ abstract public class Shell {
|
|
};
|
|
};
|
|
try {
|
|
try {
|
|
errThread.start();
|
|
errThread.start();
|
|
- } catch (IllegalStateException ise) { }
|
|
|
|
|
|
+ } catch (IllegalStateException ise) {
|
|
|
|
+ } catch (OutOfMemoryError oe) {
|
|
|
|
+ LOG.error("Caught " + oe + ". One possible reason is that ulimit"
|
|
|
|
+ + " setting of 'max user processes' is too low. If so, do"
|
|
|
|
+ + " 'ulimit -u <largerNum>' and try again.");
|
|
|
|
+ throw oe;
|
|
|
|
+ }
|
|
try {
|
|
try {
|
|
parseExecResult(inReader); // parse the output
|
|
parseExecResult(inReader); // parse the output
|
|
// clear the input stream buffer
|
|
// clear the input stream buffer
|