I tried this article to find out the load on my application The program under load was found.
https://qiita.com/tnakagawa/items/4d7d891af4913e2b5865
However, since it is difficult to type commands every time, I made it possible for the program to automatically issue commands. It is published on github, so I hope it helps someone. I made it quickly, so please understand that it is full of feelings for the time being ...
https://github.com/ewai/check-java-process
CentOS 6.7 java8
Execute the following in the target system. A log directory is created in the directory directly under the execution, and the log is output there. I think it is necessary to execute with the same authority as the application.
java -jar check-java-process.jar 50 30 packageName
https://github.com/ewai/check-java-process/tree/master/build/libs You can use the jar that is placed here You can import it into eclipse as a gradle project and fine-tune it.
# | Set value | default | Trailing |
---|---|---|---|
1 | CPU(%) | 50 | Search for processes that exceed this set value |
2 | processing time(Seconds) | 10 | Search for processes that exceed this set value |
3 | keyword | None | Only processes that have this keyword in stacktrace will be logged. |
that's all.
Recommended Posts