I have a web application and I need to implement a library that generates a log with information of the "health" of the application and also the server hardware. The generated log must contain processor usage information (cpu) and memory. Can I do this with Log4j? If not, is there any Java library that allows me to get this information?
Asked
Active
Viewed 303 times
1 Answers
0
First of all, you need a library. Two options:
- SIGAR, (examples).
- JavaSysMon, (example).
After this, you can use log4j for log that information.

Community
- 1
- 1

Paul Vargas
- 41,222
- 15
- 102
- 148