An open API service indexing awesome lists of open source software.

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

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