https://github.com/simonmittag/loggingutils
logs cpu, memory system stats to console from Java
https://github.com/simonmittag/loggingutils
cpu java javasysmon linux logging
Last synced: 2 months ago
JSON representation
logs cpu, memory system stats to console from Java
- Host: GitHub
- URL: https://github.com/simonmittag/loggingutils
- Owner: simonmittag
- License: other
- Created: 2016-03-27T10:48:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-01T16:10:53.000Z (almost 10 years ago)
- Last Synced: 2025-12-20T00:18:27.613Z (6 months ago)
- Topics: cpu, java, javasysmon, linux, logging
- Language: Java
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Loggingutils
============
Loggingutils is a small and simple wrapper around JavaSysMon (https://github.com/jezhumble/javasysmon) by Jez Humble. It prints system stats to the standard logging system (via commons-logging) in regular intervals.
Building from source
--------------------
Use maven to build:
mvn clean package
Import
------
Declare as maven dependency
com.simonmittag
loggingutils
1.0
Using the library from Servlet container
----------------------------------------
Simply put the jar in your classpath, and use it like this by including in your web.xml:
com.simonmittag.loggingutils.LoggingDaemonContextListener
Current support and limitations (from JavaSysMon, see above)
------------------------------------------------------------
* Currently supports Mac OS X, Linux, Windows, and Solaris
* Solaris binary is compiled on x86 on OpenSolaris, so it won't work on SPARC, and has not been tested on SunOS < 5.11
* Solaris CPU usage only correctly reports usage for first CPU.
* Supports Java 1.4 and above
* CPU speed on Linux only reports correct values for Intel CPUs
License
-------
Loggingutils uses the Apache license. It is based on JavaSysMon which is available under a NetBSD license: https://github.com/jezhumble/javasysmon/blob/master/LICENSE