Java exit codes and meanings

Viewed 58453

Is there a list of exit codes and meanings for java process terminations? Because I have an exit code 23 and i don't know what it can be (I cannot change the log to see the full stack trace because it sits in a different remote server).

I browsed it for hours and couldn't find any mentioning of exit code 23.

5 Answers

Exit code 23 could mean "Too many open files in system"

On some Linux installs you can simply run perror 23 to look that up. If that command isn't available you can get it via a simple C program:

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char **argv) {
    int e = 23;
    printf("%i: %s\n", e, strerror(e));
    return 0;
}
Related