Enterprise Java development, sometimes encounter the following issues:
-
OutOfMemoryError, insufficient memory
-
Memory leak
-
Thread deadlock
-
Lock contention (Lock Contention)
-
Java process consumes excessive CPU
-
......
Let's take a job to do jstack positioning operation simple question:
When the system is running top view of system resources consumption, we found that high resource consumption java process id44133:
top -Hp 44133 (java process id) found that high resource consumption threads id44245:
44245 using printf "% x \ n" 44245 converted to hexadecimal:
jstack process id | grep 16 hex thread id:
TestFlow_Compensate_Thread-1 thread take up more resources to the problem. If memory overflow or code issues here which will be reported Object specific problem.