Error Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again.
Kesalahan terjadi karena core file untuk user biasa di disable. Fitur ini bisa di enable ketika menjalankan Java misalnya untuk menjalankan sebuah aplikasi.
To enable writing core files you use the ulimit command, it controls the resources available to a process started by the shell, on systems that allow such control.
Solusinya cukup mudah. Ketikkan sebagai user biasa di Terminal ulimit -a
Jika yang tampil adalah sebagai berikut :
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 26563
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 26563
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
SOLUSI LAIN Core dumps have been disabled :
- Log off Linux kemudian Log in kembali. Buka Terminal dan ketikkan ulimit -c
- Jika hasilnya 0 maka, masuk sebagai user root (ketikkan su – tekan enter), selanjutnya ketikkan di Terminal lagi unlimit -c unlimited
