阿里云linux下每小时产生0字节的hs_err_pid<xxxx>.log

杨鬼 发布于 2014/12/18 21:30
阅读 1K+
收藏 0

服务器:阿里云

操作系统:linux

运行环境:2个tomcat7(各运行一个web项目)  jdk1.7  

问题描述:tomcat启动后,阿里云服务器每个小时准时产生一个hs_err_pid<xxxx>.log的日志文件.诡异的是里面的内容都是空的.0字节.想分析也分析不了.而且项目也能正常访问..也找不到对应的id进程.生成的文件路径在系统根目录下.

大家有没有遇到过这种情况?怎么解决的~给支支招~

加载中
0
yuyuyuyu
yuyuyuyu
看下什么位置
杨鬼
杨鬼
在系统根目录下
0
小红水
小红水
jdk的bug,头痛
杨鬼
杨鬼
就是不懂这个日志为什么是0字节.什么内容都没有
0
小红水
小红水
可能是经过处理了,我也遇到类似问题,迈不过去了:-[
0
z
zZzYZ
我的也是,但是我的有内容。#
# There is insufficient memory for the Java Runtime Environment to continue.
# pthread_getattr_np
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Use 64 bit Java on a 64 bit OS
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_linux_x86.cpp:718), pid=18519, tid=140259831293696
#
# JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#


---------------  T H R E A D  ---------------


Current thread (0x00007f90c40b1000):  JavaThread "Service Thread" daemon [_thread_new, id=18527, stack(0x0000000000000000,0x0000000000000000)]


Stack: [0x0000000000000000,0x0000000000000000],  sp=0x00007f90c96b9980,  free space=136972491494k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x99eb8a]
V  [libjvm.so+0x49721b]
V  [libjvm.so+0x8237ca]
V  [libjvm.so+0x823815]
V  [libjvm.so+0x952614]
V  [libjvm.so+0x958dd4]
V  [libjvm.so+0x81f988]




---------------  P R O C E S S  ---------------


Java Threads: ( => current thread )
=>0x00007f90c40b1000 JavaThread "Service Thread" daemon [_thread_new, id=18527, stack(0x0000000000000000,0x0000000000000000)]
  0x00007f90c40ae800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=18526, stack(0x00007f90c96bb000,0x00007f90c97bc000)]
  0x00007f90c40ac000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=18525, stack(0x00007f90c97bc000,0x00007f90c98bd000)]
  0x00007f90c408f800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=18524, stack(0x00007f90c98bd000,0x00007f90c99be000)]
  0x00007f90c4064800 JavaThread "Finalizer" daemon [_thread_blocked, id=18523, stack(0x00007f90c99c9000,0x00007f90c9aca000)]
  0x00007f90c4062800 JavaThread "Reference Handler" daemon [_thread_blocked, id=18522, stack(0x00007f90c9aca000,0x00007f90c9bcb000)]
  0x00007f90c4008800 JavaThread "main" [_thread_in_vm, id=18520, stack(0x00007f90cc709000,0x00007f90cc80a000)]


Other Threads:
  0x00007f90c405e000 VMThread [stack: 0x00007f90c9bcb000,0x00007f90c9ccc000] [id=18521]


VM state:not at safepoint (normal execution)


VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x00007f90c4006bc0] PeriodicTask_lock - owner thread: 0x00007f90c4008800


Heap
 def new generation   total 4800K, used 595K [0x00000000eb400000, 0x00000000eb930000, 0x00000000f0750000)
  eden space 4288K,  13% used [0x00000000eb400000, 0x00000000eb494ee0, 0x00000000eb830000)
  from space 512K,   0% used [0x00000000eb830000, 0x00000000eb830000, 0x00000000eb8b0000)
  to   space 512K,   0% used [0x00000000eb8b0000, 0x00000000eb8b0000, 0x00000000eb930000)
 tenured generation   total 10688K, used 0K [0x00000000f0750000, 0x00000000f11c0000, 0x00000000fae00000)
   the space 10688K,   0% used [0x00000000f0750000, 0x00000000f0750000, 0x00000000f0750200, 0x00000000f11c0000)
 compacting perm gen  total 21248K, used 2217K [0x00000000fae00000, 0x00000000fc2c0000, 0x0000000100000000)
   the space 21248K,  10% used [0x00000000fae00000, 0x00000000fb02a600, 0x00000000fb02a600, 0x00000000fc2c0000)
No shared spaces configured.


Card table byte_map: [0x00007f90ca023000,0x00007f90ca0ca000] byte_map_base: 0x00007f90c98c9000


Polling page: 0x00007f90cc814000


Code Cache  [0x00007f90c1000000, 0x00007f90c1270000, 0x00007f90c4000000)
 total_blobs=160 nmethods=0 adapters=130 free_code_cache=48777Kb largest_free_block=49947968


Compilation events (0 events):
No events


GC Heap History (0 events):
No events


Deoptimization events (0 events):
No events


Internal exceptions (1 events):
Event: 0.025 Thread 0x00007f90c4008800 Threw 0x00000000eb410370 at /HUDSON/workspace/7u-2-build-linux-amd64/jdk7u67/1368/hotspot/src/share/vm/prims/jni.cpp:3991


Events (10 events):
Event: 0.087 loading class 0x00007f90c408a5a0
Event: 0.087 loading class 0x00007f90c408a5a0 done
Event: 0.087 loading class 0x00007f90c40a4fd0
Event: 0.087 loading class 0x00007f90c40a4fd0 done
Event: 0.088 loading class 0x00007f90c9f58ee0
Event: 0.088 loading class 0x00007f90c9f58ee0 done
Event: 0.088 Thread 0x00007f90c408f800 Thread added: 0x00007f90c408f800
Event: 0.088 Thread 0x00007f90c40ac000 Thread added: 0x00007f90c40ac000
Event: 0.088 Thread 0x00007f90c40ae800 Thread added: 0x00007f90c40ae800
Event: 0.088 Thread 0x00007f90c40b1000 Thread added: 0x00007f90c40b1000




Dynamic libraries:
00400000-00401000 r-xp 00000000 ca:01 698687                             /usr/java/jdk1.7.0_67/bin/java
00600000-00601000 rw-p 00000000 ca:01 698687                             /usr/java/jdk1.7.0_67/bin/java
00e1c000-00e3d000 rw-p 00000000 00:00 0                                  [heap]
eb400000-eb930000 rw-p 00000000 00:00 0 
eb930000-f0750000 rw-p 00000000 00:00 0 
f0750000-f11c0000 rw-p 00000000 00:00 0 
f11c0000-fae00000 rw-p 00000000 00:00 0 
fae00000-fc2c0000 rw-p 00000000 00:00 0 
fc2c0000-100000000 rw-p 00000000 00:00 0 
7f90a0000000-7f90a0021000 rw-p 00000000 00:00 0 
7f90a0021000-7f90a4000000 ---p 00000000 00:00 0 
7f90a4000000-7f90a4021000 rw-p 00000000 00:00 0 
7f90a4021000-7f90a8000000 ---p 00000000 00:00 0 
7f90a8000000-7f90a8021000 rw-p 00000000 00:00 0 
7f90a8021000-7f90ac000000 ---p 00000000 00:00 0 
7f90ae16f000-7f90b4000000 r--p 00000000 ca:01 673661                     /usr/lib/locale/locale-archive
7f90b4000000-7f90b4021000 rw-p 00000000 00:00 0 
7f90b4021000-7f90b8000000 ---p 00000000 00:00 0 
7f90b8000000-7f90b8021000 rw-p 00000000 00:00 0 
7f90b8021000-7f90bc000000 ---p 00000000 00:00 0 
7f90bc000000-7f90bc021000 rw-p 00000000 00:00 0 
7f90bc021000-7f90c0000000 ---p 00000000 00:00 0 
7f90c1000000-7f90c1270000 rwxp 00000000 00:00 0 
7f90c1270000-7f90c40be000 rw-p 00000000 00:00 0 
7f90c40be000-7f90c8000000 ---p 00000000 00:00 0 
7f90c94b9000-7f90c94ba000 ---p 00000000 00:00 0 
7f90c94ba000-7f90c96bb000 rw-p 00000000 00:00 0 
7f90c96bb000-7f90c96be000 ---p 00000000 00:00 0 
7f90c96be000-7f90c97bc000 rw-p 00000000 00:00 0 
7f90c97bc000-7f90c97bf000 ---p 00000000 00:00 0 
7f90c97bf000-7f90c98bd000 rw-p 00000000 00:00 0 
7f90c98bd000-7f90c98c0000 ---p 00000000 00:00 0 
7f90c98c0000-7f90c99be000 rw-p 00000000 00:00 0 
7f90c99be000-7f90c99c9000 r--s 0037c000 ca:01 714135                     /usr/java/jdk1.7.0_67/jre/lib/charsets.jar
7f90c99c9000-7f90c99cc000 ---p 00000000 00:00 0 
7f90c99cc000-7f90c9aca000 rw-p 00000000 00:00 0 
7f90c9aca000-7f90c9acd000 ---p 00000000 00:00 0 
7f90c9acd000-7f90c9bcb000 rw-p 00000000 00:00 0 
7f90c9bcb000-7f90c9bcc000 ---p 00000000 00:00 0 
7f90c9bcc000-7f90c9d17000 rw-p 00000000 00:00 0 
7f90c9d17000-7f90c9ed6000 r--s 039e5000 ca:01 714201                     /usr/java/jdk1.7.0_67/jre/lib/rt.jar
7f90c9ed6000-7f90c9fd5000 rw-p 00000000 00:00 0 
7f90c9fd5000-7f90ca023000 rw-p 00000000 00:00 0 
7f90ca023000-7f90ca026000 rw-p 00000000 00:00 0 
7f90ca026000-7f90ca04c000 rw-p 00000000 00:00 0 
7f90ca04c000-7f90ca052000 rw-p 00000000 00:00 0 
7f90ca052000-7f90ca0a0000 rw-p 00000000 00:00 0 
7f90ca0a0000-7f90ca0ab000 rw-p 00000000 00:00 0 
7f90ca0ab000-7f90ca0c9000 rw-p 00000000 00:00 0 
7f90ca0c9000-7f90ca0ca000 rw-p 00000000 00:00 0 
7f90ca0ca000-7f90ca0e4000 r-xp 00000000 ca:01 713954                     /usr/java/jdk1.7.0_67/jre/lib/amd64/libzip.so
7f90ca0e4000-7f90ca2e4000 ---p 0001a000 ca:01 713954                     /usr/java/jdk1.7.0_67/jre/lib/amd64/libzip.so
7f90ca2e4000-7f90ca2e5000 rw-p 0001a000 ca:01 713954                     /usr/java/jdk1.7.0_67/jre/lib/amd64/libzip.so
7f90ca2e5000-7f90ca2f1000 r-xp 00000000 ca:01 729117                     /lib64/libnss_files-2.12.so
7f90ca2f1000-7f90ca4f1000 ---p 0000c000 ca:01 729117                     /lib64/libnss_files-2.12.so
7f90ca4f1000-7f90ca4f2000 r--p 0000c000 ca:01 729117                     /lib64/libnss_files-2.12.so
7f90ca4f2000-7f90ca4f3000 rw-p 0000d000 ca:01 729117                     /lib64/libnss_files-2.12.so
7f90ca4f3000-7f90ca51c000 r-xp 00000000 ca:01 713924                     /usr/java/jdk1.7.0_67/jre/lib/amd64/libjava.so
7f90ca51c000-7f90ca71c000 ---p 00029000 ca:01 713924                     /usr/java/jdk1.7.0_67/jre/lib/amd64/libjava.so
7f90ca71c000-7f90ca71e000 rw-p 00029000 ca:01 713924                     /usr/java/jdk1.7.0_67/jre/lib/amd64/libjava.so
7f90ca71e000-7f90ca72b000 r-xp 00000000 ca:01 713953                     /usr/java/jdk1.7.0_67/jre/lib/amd64/libverify.so
7f90ca72b000-7f90ca92a000 ---p 0000d000 ca:01 713953                     /usr/java/jdk1.7.0_67/jre/lib/amd64/libverify.so
7f90ca92a000-7f90ca92c000 rw-p 0000c000 ca:01 713953                     /usr/java/jdk1.7.0_67/jre/lib/amd64/libverify.so
7f90ca92c000-7f90ca933000 r-xp 00000000 ca:01 729129                     /lib64/librt-2.12.so
7f90ca933000-7f90cab32000 ---p 00007000 ca:01 729129                     /lib64/librt-2.12.so
7f90cab32000-7f90cab33000 r--p 00006000 ca:01 729129                     /lib64/librt-2.12.so
7f90cab33000-7f90cab34000 rw-p 00007000 ca:01 729129                     /lib64/librt-2.12.so
7f90cab34000-7f90cabb7000 r-xp 00000000 ca:01 729109                     /lib64/libm-2.12.so
7f90cabb7000-7f90cadb6000 ---p 00083000 ca:01 729109                     /lib64/libm-2.12.so
7f90cadb6000-7f90cadb7000 r--p 00082000 ca:01 729109                     /lib64/libm-2.12.so
7f90cadb7000-7f90cadb8000 rw-p 00083000 ca:01 729109                     /lib64/libm-2.12.so
7f90cadb8000-7f90cb928000 r-xp 00000000 ca:01 713958                     /usr/java/jdk1.7.0_67/jre/lib/amd64/server/libjvm.so
7f90cb928000-7f90cbb27000 ---p 00b70000 ca:01 713958                     /usr/java/jdk1.7.0_67/jre/lib/amd64/server/libjvm.so
7f90cbb27000-7f90cbbec000 rw-p 00b6f000 ca:01 713958                     /usr/java/jdk1.7.0_67/jre/lib/amd64/server/libjvm.so
7f90cbbec000-7f90cbc2c000 rw-p 00000000 00:00 0 
7f90cbc2c000-7f90cbdb6000 r-xp 00000000 ca:01 729101                     /lib64/libc-2.12.so
7f90cbdb6000-7f90cbfb5000 ---p 0018a000 ca:01 729101                     /lib64/libc-2.12.so
7f90cbfb5000-7f90cbfb9000 r--p 00189000 ca:01 729101                     /lib64/libc-2.12.so
7f90cbfb9000-7f90cbfba000 rw-p 0018d000 ca:01 729101                     /lib64/libc-2.12.so
7f90cbfba000-7f90cbfbf000 rw-p 00000000 00:00 0 
7f90cbfbf000-7f90cbfc1000 r-xp 00000000 ca:01 729107                     /lib64/libdl-2.12.so
7f90cbfc1000-7f90cc1c1000 ---p 00002000 ca:01 729107                     /lib64/libdl-2.12.so
7f90cc1c1000-7f90cc1c2000 r--p 00002000 ca:01 729107                     /lib64/libdl-2.12.so
7f90cc1c2000-7f90cc1c3000 rw-p 00003000 ca:01 729107                     /lib64/libdl-2.12.so
7f90cc1c3000-7f90cc1d9000 r-xp 00000000 ca:01 729877                     /usr/java/jdk1.7.0_67/lib/amd64/jli/libjli.so
7f90cc1d9000-7f90cc3d9000 ---p 00016000 ca:01 729877                     /usr/java/jdk1.7.0_67/lib/amd64/jli/libjli.so
7f90cc3d9000-7f90cc3da000 rw-p 00016000 ca:01 729877                     /usr/java/jdk1.7.0_67/lib/amd64/jli/libjli.so
7f90cc3da000-7f90cc3f1000 r-xp 00000000 ca:01 729125                     /lib64/libpthread-2.12.so
7f90cc3f1000-7f90cc5f1000 ---p 00017000 ca:01 729125                     /lib64/libpthread-2.12.so
7f90cc5f1000-7f90cc5f2000 r--p 00017000 ca:01 729125                     /lib64/libpthread-2.12.so
7f90cc5f2000-7f90cc5f3000 rw-p 00018000 ca:01 729125                     /lib64/libpthread-2.12.so
7f90cc5f3000-7f90cc5f7000 rw-p 00000000 00:00 0 
7f90cc5f7000-7f90cc617000 r-xp 00000000 ca:01 729091                     /lib64/ld-2.12.so
7f90cc617000-7f90cc622000 rw-p 00000000 00:00 0 
7f90cc622000-7f90cc641000 rw-p 00000000 00:00 0 
7f90cc641000-7f90cc64b000 rw-p 00000000 00:00 0 
7f90cc64b000-7f90cc701000 rw-p 00000000 00:00 0 
7f90cc701000-7f90cc709000 rw-s 00000000 ca:01 829804                     /tmp/hsperfdata_root/18519
7f90cc709000-7f90cc70c000 ---p 00000000 00:00 0 
7f90cc70c000-7f90cc80e000 rw-p 00000000 00:00 0 
7f90cc813000-7f90cc814000 rw-p 00000000 00:00 0 
7f90cc814000-7f90cc815000 r--p 00000000 00:00 0 
7f90cc815000-7f90cc816000 rw-p 00000000 00:00 0 
7f90cc816000-7f90cc817000 r--p 0001f000 ca:01 729091                     /lib64/ld-2.12.so
7f90cc817000-7f90cc818000 rw-p 00020000 ca:01 729091                     /lib64/ld-2.12.so
7f90cc818000-7f90cc819000 rw-p 00000000 00:00 0 
7fff24e52000-7fff24e67000 rw-p 00000000 00:00 0                          [stack]
7fff24ecf000-7fff24ed0000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]


VM Arguments:
java_command: org.apache.catalina.util.ServerInfo
Launcher Type: SUN_STANDARD


Environment Variables:
PATH=/sbin:/usr/sbin:/bin:/usr/bin


Signal Handlers:
SIGSEGV: [libjvm.so+0x99f4a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x99f4a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x81a860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x81a860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x81a860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x81a860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x81c060], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x81d160], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: [libjvm.so+0x81d160], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0x81d160], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x81d160], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004




---------------  S Y S T E M  ---------------


OS:CentOS release 6.3 (Final)


uname:Linux 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64
libc:glibc 2.12 NPTL 2.12 
rlimit: STACK 10240k, CORE 0k, NPROC 7843, NOFILE 1024, AS 1048576k
load average:0.04 0.03 0.00


/proc/meminfo:
MemTotal:        1020848 kB
MemFree:           72136 kB
Buffers:          139256 kB
Cached:           269536 kB
SwapCached:            0 kB
Active:           757304 kB
Inactive:         131356 kB
Active(anon):     479932 kB
Inactive(anon):      148 kB
Active(file):     277372 kB
Inactive(file):   131208 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                72 kB
Writeback:             0 kB
AnonPages:        479992 kB
Mapped:            31884 kB
Shmem:               160 kB
Slab:              40484 kB
SReclaimable:      19560 kB
SUnreclaim:        20924 kB
KernelStack:        2856 kB
PageTables:         3484 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      510424 kB
Committed_AS:    1388620 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7212 kB
VmallocChunk:   34359729020 kB
HardwareCorrupted:     0 kB
AnonHugePages:    405504 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        6144 kB
DirectMap2M:     1046528 kB




CPU:total 1 (32 cores per cpu, 2 threads per core) family 6 model 45 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, aes, ht, tsc


/proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz
stepping : 7
cpu MHz : 2300.021
cache size : 15360 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush mmx fxsr sse sse2 ht syscall nx lm up rep_good unfair_spinlock pni ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm
bogomips : 4600.04
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:






Memory: 4k page, physical 1020848k(72136k free), swap 0k(0k free)


vm_info: Java HotSpot(TM) 64-Bit Server VM (24.65-b04) for linux-amd64 JRE (1.7.0_67-b01), built on Jul 25 2014 09:20:21 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)


time: Fri Dec 26 12:37:17 2014
elapsed time: 0 seconds


杨鬼
杨鬼
你的问题解决了吗?我现在里面也有内容了.跟你的差不多
0
乐不可支
乐不可支
我的是把java更新到java 8 就好了。不清楚什么原因。
杨鬼
杨鬼
我回头也试试升级到java8的版本试试.我用的是sun的jdk7.0 没用openjdk
0
杨鬼
杨鬼
把JDK升级至JDK8就不报这个错了.问题解决了.
返回顶部
顶部