- free to see the memory margin
- ps Look at the process that takes up high memory
- top to see the highest thread of the highest process
- jmap exports the thread to a heap dump file
- Use visualVM to analyze the file
When the CPU usage is too high
- top view CPU occupancy high process
- top view the highest thread id of the highest process occupied by the cpu
- jstack exports the stack file of the process stack usage
- cat+grep+thread id to browse related logs