How do I solve problems with the "Software Problem"?

I am working on a Java product. The client claims that the application can be broken after an arbitrary time. SInce is a crash, we can not find any information about our magazines.

  • Are there any tools, methods to find out the causes of such problems?

  • Can we do anything on the part of the code to get more information about such failures?

  • Can I enable "DEBUG" mode for the JVM? If so, where can I find JVM log files / crash dumps?

  • Any known procedures to solve such problems?

  • If you encounter this problem, what will be your procedure in resolving this problem?

+3
source share
8

, JVM . , . JVM - , stdout, . ( ..), - stderr. , , stdout stderr ( , , ).

, , , , . Java HotSpot VM .

+4

verboser JVM , , JVisualVM - ( //gc/jmx), , hs_err_pid *.log. JVM ( ..). :

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d741e3a, pid=1572, tid=1364
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
# Problematic frame:
# V  [jvm.dll+0x1e3a]
#

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

Current thread (0x00a85c78):  VMThread [id=1364]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000054

Registers:
EAX=0x00000050, EBX=0x00990000, ECX=0x0847b9f8, EDX=0x00000050
ESP=0x0ab0f660, EBP=0x0ab0f684, ESI=0x0847b9f8, EDI=0x0847b9f8
EIP=0x6d741e3a, EFLAGS=0x00010216
+3

, . , .

java :

  • , (, , , , )
  • , , ( debug, - error), .

, . : , ASAP, ( , ). :

  • error , ,
  • warning , ,
  • , info , ,
  • , debug , ,
+2

, JVM . JVM , java , - hs_errXXX.pid. , java, .

, (, KLE). , , (), . API.

+2

, , . , ?

, , , . , memtest.

JVM. .

+2

, :

JVM -XX:+HeapDumpOnOutOfMemoryError , VM - . , - eclipseMAT, .

-verbose:gc , -Xloggc:<file> .

+2

JNI ( , JNI), JVM, . , - .

+1

In addition to all the other suggestions, check your code base for calls in System.exit ().

+1
source

Source: https://habr.com/ru/post/1718688/


All Articles