ulimit -c unlimited

tomcat 产生core日志:
app:/usr/local/apache-tomcat-7.0.55_8082/logs# 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) 30500
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) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 30500
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


app:/usr/local/apache-tomcat-7.0.55_8082/logs# ulimit  -c
0

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0x7) at pc=0x00007f783cc28ce8, pid=16374, tid=140153975727872
#
# JRE version: Java(TM) SE Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# v  ~StubRoutines::jbyte_disjoint_arraycopy
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /usr/local/apache-tomcat-7.0.55_8082/bin/hs_err_pid16374.log

加入到环境变量:
ulimit -c unlimited

posted @ 2016-09-09 10:02  czcb  阅读(485)  评论(0编辑  收藏  举报