Description of the problem
After some time starting my java server, I experience strange behavior of the Oracle Java virtual machine on Solaris. Usually, when a jvm crash occurs hs_err_pid.log, a file is created (the location is determined by the -XX:ErrorFilejvm paramter, as described here: How can I suppress the creation of the hs_err_pid file?
But in my case, the file was not created, only the dump file remained core.
Using standard Solaris tools pstackand pflags, I was able to collect more information about the failure (which is shown below) from the file core.
Trial solutions
I tried to find all the hs_err_pid.logfiles in the file system, but could not find anything (even outside the application’s desktop). i.e:.
find / -name "hs_err_pid*"
I tried to find jvm errors related to jvm, but I could not find anything interesting like this case.
- The problem looks somewhat similar to: Java VM: reproduced SIGSEGV on 1.6.0_17 and 1.6.0_18, how to report? , but still I can’t confirm this, because the file is
hs_err_pid.logmissing, and, of course, the OS platform is different. - (EDIT) java core dump,
core jmap Eclipse MAT. (, HashMap, , 1,4 ). , , , hs_err_pid.log , jvm. - (EDIT2) Darryl Miles, -Xmx ( ,
LinkedList):java -Xmx1444m Test java.lang.OutOfMemoryError: Java heap space,java -Xmx2048m Test java.lang.OutOfMemoryError: Java heap space,java -Xmx3600m Test .
- jvm , , (.. jvm hs_err_pid.log)?
.
...
/2139095: flags = DETACH
sigmask = 0xfffffeff,0x0000ffff cursig = SIGSEGV
...
----------------- lwp# 2139095 / thread# 2139095 --------------------
fb208c3e ???????? (f25daee0, f25daec8, 74233960, 776e3caa, 74233998, 776e64f0)
fb20308d ???????? (0, 1, f25db030, f25daee0, f25daec8, 7423399c)
fb20308d ???????? (0, 0, 50, f25da798, f25daec8, f25daec8)
fb20308d ???????? (0, 0, 50, f25da798, 8561cbb8, f25da988)
fb203403 ???????? (f25da988, 74233a48, 787edef5, 74233a74, 787ee8a0, 0)
fb20308d ???????? (0, f25da988, 74233a78, 76e2facf, 74233aa0, 76e78f70)
fb203569 ???????? (f25da9b0, 8b5b400, 8975278, 1f80, fecd6000, 1)
fb200347 ???????? (74233af0, 74233d48, a, 76e2fae0, fb208f60, 74233c58)
fe6f4b0b __1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_ (74233d44, 74233bc8, 74233c54, 8b5b400) + 1a3
fe6f4db3 __1cCosUos_exception_wrapper6FpFpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v2468_v_ (fe6f4968, 74233d44, 74233bc8, 74233c54, 8b5b4
00) + 27
fe6f4deb __1cJJavaCallsEcall6FpnJJavaValue_nMmethodHandle_pnRJavaCallArguments_pnGThread__v_ (74233d44, 8975278, 74233c54, 8b5b400) + 2f
fe76826d __1cJJavaCallsMcall_virtual6FpnJJavaValue_nLKlassHandle_nMsymbolHandle_4pnRJavaCallArguments_pnGThread__v_ (74233d44, 897526c, fed2d464, fed2d6d0, 7
4233c54, 8b5b400) + c1
fe76f4fa __1cJJavaCallsMcall_virtual6FpnJJavaValue_nGHandle_nLKlassHandle_nMsymbolHandle_5pnGThread__v_ (74233d44, 8975268, 897526c, fed2d464, fed2d6d0, 8b5b
400) + 7e
fe7805f6 __1cMthread_entry6FpnKJavaThread_pnGThread__v_ (8b5b400, 8b5b400) + d2
fe77cbe4 __1cKJavaThreadRthread_main_inner6M_v_ (8b5b400) + 4c
fe77cb8e __1cKJavaThreadDrun6M_v_ (8b5b400) + 182
feadbd59 java_start (8b5b400) + f9
feed59a9 _thr_setup (745c5200) + 4e
feed5c90 _lwp_start (745c5200, 0, 0, 74233ff8, feed5c90, 745c5200)
:
SunOS xxxx 5.10 Generic_137138-09 i86pc i386 i86pc
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 10240
coredump(blocks) unlimited
nofiles(descriptors) 256
memory(kbytes) unlimited
jvm args:
java -Xms1024M -Xmx2048M -verbose:gc -Xloggc:logs/gc.log -server com.example.MyApplication
, , - , .