Java mks api crash -


story: try connect integrity java mks api , execute "si viewsandbox" command. connection integrity , execution of command works fine until when try tiny sandboxes. if try viewsandbox command huge sandbox, following error log:

#  # fatal error has been detected java runtime environment:  #  #  exception_access_violation (0xc0000005) @ pc=0x00000000, pid=4984, tid=3628  #  # jre version:  (7.0_40-b43) (build )  # java vm: java hotspot(tm) client vm (24.0-b56 mixed mode windows-x86 )  # problematic frame:  # c  0x00000000  #  # failed write core dump. minidumps not enabled default on client versions of windows  #  # if submit bug report, please visit:  #   http://bugreport.sun.com/bugreport/crash.jsp  #    ---------------  t h r e d  ---------------    current thread (0x0054dc00):  javathread "main" [_thread_in_java, id=3628, stack(0x010a0000,0x10aa0000)]    siginfo: exceptioncode=0xc0000005, exceptioninformation=0x00000008 0x00000000    registers:  eax=0x00100000, ebx=0x52aada90, ecx=0x12aa0da0, edx=0x00500001  esp=0x10a9edf0, ebp=0x10a9ee18, esi=0x10a9edf4, edi=0x10a9ee1c  eip=0x00000000, eflags=0x00010216    top of stack: (sp=0x10a9edf0)  0x10a9edf0:   10aa347b 12aa0da0 10a9edf8 52ab76ab  0x10a9ee00:   10a9ee1c 52b0d648 00000000 52ab76e8  0x10a9ee10:   10a9edf4 10a9ee20 10a9ee3c 10aa03d7  0x10a9ee20:   10a9ee70 10a9ee4c 639be6e2 00001f80  0x10a9ee30:   10aa0372 0054dc00 52ab76e8 10a9eebc  0x10a9ee40:   639bee1a 10a9ee70 10a9ef44 0000000a  0x10a9ee50:   52ab76e8 10aa9800 10a9ef54 00000000  0x10a9ee60:   0054dc00 0054dc00 0054dc00 00000004     instructions: (pc=0x00000000)  0xffffffe0:         register memory mapping:    eax=0x00100000 unknown value  ebx=0x52aada90 oop  {method}    - klass: {other class}  ecx=0x12aa0da0 oop  java.lang.class    - klass: 'java/lang/class'  edx=0x00500001 unknown value  esp=0x10a9edf0 pointing stack thread: 0x0054dc00  ebp=0x10a9ee18 pointing stack thread: 0x0054dc00  esi=0x10a9edf4 pointing stack thread: 0x0054dc00  edi=0x10a9ee1c pointing stack thread: 0x0054dc00      stack: [0x010a0000,0x10aa0000],  sp=0x10a9edf0,  free space=255995k    ---------------  p r o c e s s  ---------------    java threads: ( => current thread )  =>0x0054dc00 javathread "main" [_thread_in_java, id=3628, stack(0x010a0000,0x10aa0000)]    other threads:    0x56e40c00 vmthread [stack: 0x57060000,0x570b0000] [id=5364]    vm state:not @ safepoint (normal execution)    vm mutex/monitor owned thread: none    heap   def new generation   total 157248k, used 2795k [0x12aa0000, 0x1d540000, 0x27ff0000)    eden space 139776k,   2% used [0x12aa0000, 0x12d5ae88, 0x1b320000)    space 17472k,   0% used [0x1b320000, 0x1b320000, 0x1c430000)      space 17472k,   0% used [0x1c430000, 0x1c430000, 0x1d540000)   tenured generation   total 349568k, used 0k [0x27ff0000, 0x3d550000, 0x52aa0000)     space 349568k,   0% used [0x27ff0000, 0x27ff0000, 0x27ff0200, 0x3d550000)   compacting perm gen  total 12288k, used 518k [0x52aa0000, 0x536a0000, 0x56aa0000)     space 12288k,   4% used [0x52aa0000, 0x52b21aa8, 0x52b21c00, 0x536a0000)  no shared spaces configured.    card table byte_map: [0x56aa0000,0x56cd0000] byte_map_base: 0x56a0ab00    polling page: 0x001c0000    code cache  [0x10aa0000, 0x10ae8000, 0x12aa0000)   total_blobs=39 nmethods=0 adapters=18 free_code_cache=32499kb largest_free_block=33278912    compilation events (0 events):  no events    gc heap history (0 events):  no events    deoptimization events (0 events):  no events    internal exceptions (0 events):  no events    events (10 events):  event: 0.015 loading class 0x00b0bd30 done  event: 0.015 loading class 0x00b0bd10 done  event: 0.015 loading class 0x00b16d50  event: 0.015 loading class 0x00b16d50 done  event: 0.015 loading class 0x00b13e28  event: 0.015 loading class 0x00b13e28 done  event: 0.015 loading class 0x00b1af98  event: 0.015 loading class 0x00b1af98 done  event: 0.015 loading class 0x00b1afc0  event: 0.015 loading class 0x00b1afc0 done      dynamic libraries:  0x002e0000 - 0x0030f000 	c:\program files\integrity\integrityclient\jre\bin\java.exe  0x77090000 - 0x77210000 	c:\windows\syswow64\ntdll.dll  0x754b0000 - 0x755c0000 	c:\windows\syswow64\kernel32.dll  0x76c40000 - 0x76c87000 	c:\windows\syswow64\kernelbase.dll  0x76710000 - 0x767b0000 	c:\windows\syswow64\advapi32.dll  0x76b90000 - 0x76c3c000 	c:\windows\syswow64\msvcrt.dll  0x74f60000 - 0x74f79000 	c:\windows\syswow64\sechost.dll  0x74c10000 - 0x74d00000 	c:\windows\syswow64\rpcrt4.dll  0x74bb0000 - 0x74c10000 	c:\windows\syswow64\sspicli.dll  0x74ba0000 - 0x74bac000 	c:\windows\syswow64\cryptbase.dll  0x764c0000 - 0x765c0000 	c:\windows\syswow64\user32.dll  0x74d00000 - 0x74d90000 	c:\windows\syswow64\gdi32.dll  0x765c0000 - 0x765ca000 	c:\windows\syswow64\lpk.dll  0x75350000 - 0x753ed000 	c:\windows\syswow64\usp10.dll  0x73300000 - 0x7349e000 	c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll  0x75420000 - 0x75477000 	c:\windows\syswow64\shlwapi.dll  0x74f00000 - 0x74f60000 	c:\windows\system32\imm32.dll  0x75280000 - 0x7534c000 	c:\windows\syswow64\msctf.dll  0x74880000 - 0x748c6000 	c:\progra~2\sophos\sophos~1\sophos~1.dll  0x76230000 - 0x76235000 	c:\windows\syswow64\psapi.dll  0x65810000 - 0x658ce000 	c:\program files\integrity\integrityclient\jre\bin\msvcr100.dll  0x63880000 - 0x63c00000 	c:\program files\integrity\integrityclient\jre\bin\client\jvm.dll  0x6c600000 - 0x6c607000 	c:\windows\system32\wsock32.dll  0x76b50000 - 0x76b85000 	c:\windows\syswow64\ws2_32.dll  0x77060000 - 0x77066000 	c:\windows\syswow64\nsi.dll  0x73500000 - 0x73532000 	c:\windows\system32\winmm.dll  0x6f8b0000 - 0x6f8bc000 	c:\program files\integrity\integrityclient\jre\bin\verify.dll  0x6f890000 - 0x6f8b0000 	c:\program files\integrity\integrityclient\jre\bin\java.dll  0x6f870000 - 0x6f883000 	c:\program files\integrity\integrityclient\jre\bin\zip.dll  0x6c510000 - 0x6c5fb000 	c:\windows\system32\dbghelp.dll    vm arguments:  jvm_args: -xss250m -xms512m -xmx1g   java_command: c:\_projects\jenkins\run_and_log\mks_connect_no_gui\mks_connect_test.jar c:/_projects/jenkins/dev_m6.54.0.3/project.pj muell.txt  launcher type: sun_standard

i seek solution 2 weeks in forums no success. freak out -.-

does know problem be?

i forgot mention program runs jarfile if important aspect.

edit: when set -xx:permsize100m -xss250m -xms512m -xmx1g following exception:

com.mks.api.response.commandexception: mks.frame.app.ui.viewexception

what mean?

that access violation in jvm code, detected os. app may involved, need raise ptc (the company owns mks product suite) support. there isn't lot can done in isolation because report going lot of other different reports. if there bug in vm, number of conditions, environments, , byte-code trigger it.

if can't raise ptc, can experiment switching jre. source integrity uses own private jre installed /jre (you can see in stack trace) drop bug-fix release of jre next /jre, rename old 1 /jre_old , new 1 /jre , should pick new one. think have do, it's been long time since i've worked product.

needless say, not supported ptc, etc., etc. data point.

now, since 1 of data points have triggered when heap allowed grow large size, , know large sandboxes put fair amount of pressure on heap, running hardware problem. is, simple bad stick of memory. though rare these days, i've seen before, , of time exercise memory resources extent a serious java app can.

furthermore, appears 32-bit jvm, means heap going constrained. way process memory segmented on windows, used able barely set heap on 1gb, depending on sizes of native libraries have coexist in same process memory, number of threads, , permgen space. may hitting process memory limit.

full disclosure: used work mks.


Comments