javasysmon


License

License

Categories

Categories

Sysmon Application Testing & Monitoring Monitoring
GroupId

GroupId

com.outr.javasysmon
ArtifactId

ArtifactId

javasysmon_2.10
Last Version

Last Version

0.3.4
Release Date

Release Date

Type

Type

jar
Description

Description

javasysmon
javasysmon
Project Organization

Project Organization

com.outr.javasysmon
Source Code Management

Source Code Management

https://github.com/jezhumble/javasysmon

Download javasysmon_2.10

How to add to project

<!-- https://jarcasting.com/artifacts/com.outr.javasysmon/javasysmon_2.10/ -->
<dependency>
    <groupId>com.outr.javasysmon</groupId>
    <artifactId>javasysmon_2.10</artifactId>
    <version>0.3.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.outr.javasysmon/javasysmon_2.10/
implementation 'com.outr.javasysmon:javasysmon_2.10:0.3.4'
// https://jarcasting.com/artifacts/com.outr.javasysmon/javasysmon_2.10/
implementation ("com.outr.javasysmon:javasysmon_2.10:0.3.4")
'com.outr.javasysmon:javasysmon_2.10:jar:0.3.4'
<dependency org="com.outr.javasysmon" name="javasysmon_2.10" rev="0.3.4">
  <artifact name="javasysmon_2.10" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.outr.javasysmon', module='javasysmon_2.10', version='0.3.4')
)
libraryDependencies += "com.outr.javasysmon" % "javasysmon_2.10" % "0.3.4"
[com.outr.javasysmon/javasysmon_2.10 "0.3.4"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.3

Project Modules

There are no modules declared in this project.

JavaSysMon

JavaSysMon is designed to provide an OS-independent way to manage OS processes and get live system performance information such as CPU and memory usage, distributed as a single jar file. It is written in C and Java. However the native binaries are hidden away inside the jar, so you never need to worry about them.

Currently it supports Mac OS X, Linux, Windows, and Solaris. Ultimately we aim to support everything from AIX to Android.

If you’re interested in adding support for a new platform, check out the project wiki.

Download latest

The current version of JavaSysMon is 0.3.5, released May 14th 2014. You can get it here: http://continuousdelivery.com/downloads/javasysmon/javasysmon-0.3.5.jar

Run it with java -jar

Building and running

Run ant, and then:

java -jar target/javasysmon.jar

Using the library from code

Simply put the jar in your classpath, and use it like this:

import com.jezhumble.javasysmon.JavaSysMon;
   
JavaSysMon monitor =   new JavaSysMon();
String osName =        monitor.osName();
etc...

For full details of the API, consult the JavaDoc

Current support and limitations

  • 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

Source code

The Java source code sits under src/main/java. The C source code is in src/main/c, with a subdirectory for each platform supported by JavaSysMon. The compiled binaries are stored in lib/native, and it is these that are used to build the jar when you run ant. So if you change the c source, you'll need to compile and copy the binary to lib/native before running ant in order to test your changes.

License

JavaSysMon uses the NetBSD (2-line) license.

Links

Versions

Version
0.3.4