Thursday, November 5, 2009

JRockit, how to enable a .core file (core dump)

first, check with "ulimit -a" that you have no limits on core file size:

ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 137215
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 137215
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited



if your file is limited, then issue a
"ulimit -c unlimited"


check that no "-XXdumpSize" is specified in your java command options
(default is "large")

Also, run df -h to make sure you have enough space on disk

No comments: