Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java program terminate with java result: 137

I have a program written in netbeans. The program read about 1,000,000 data from cassandra, process them and again write the result in cassandra. my program was running bout 9 hours but suddenly it was terminate with this bellow error:

java result: 137

I was read that these error means (128 + signalnember). in my case signalnember = 9 that is KILLSIGNAL. does any body know how can I remove this error? please help me....

like image 345
Anse danesh Avatar asked Aug 30 '13 03:08

Anse danesh


People also ask

How do I resolve exit code 137?

If a few pods are consistently getting exit code 137 returned to them, then that is a sign that you need to increase the amount of space you afford to the pod. By increasing the maximum limit manually in the pods that are under the most strain, you'll be able to reduce the frequency with which this problem occurs.

What does Exit Code 137 mean?

When a container (Spark executor) runs out of memory, YARN automatically kills it. This causes the "Container killed on request. Exit code is 137" error.

What is exit status 143 in Java?

Exit code 143 corresponds to SIGTERM, which is the signal sent by default when you run kill .


2 Answers

If there is a cgroup configuration limiting resources it might kill the process if if exceeds the limits (like consumed memory). Check if the cgconfig service running. On RHEL:

service cgconfig status 

You can also check for Java crash log files hs_err_.log for more details.

like image 152
Sergey Shcherbakov Avatar answered Sep 25 '22 21:09

Sergey Shcherbakov


Exit-code above 128 means that the process died because of a received signal (exitCode = 128 + signalNumber). ==> In your case it was signal 9 (= SIGKILL

like image 32
user2600629 Avatar answered Sep 23 '22 21:09

user2600629