Permalink
Browse files

Initial version

  • Loading branch information...
1 parent 6a7465e commit b1746a0f279fdb73641064bd92728c1a74ee4ecf unknown committed Apr 28, 2012
Showing with 1,990 additions and 1 deletion.
  1. +18 −1 README.md
  2. +1 −0 attach-api/.gitignore
  3. +21 −0 attach-api/pom.xml
  4. +10 −0 attach-api/src/main/java/com/sun/tools/attach/AgentInitializationException.java
  5. +9 −0 attach-api/src/main/java/com/sun/tools/attach/AgentLoadException.java
  6. +9 −0 attach-api/src/main/java/com/sun/tools/attach/AttachNotSupportedException.java
  7. +17 −0 attach-api/src/main/java/com/sun/tools/attach/AttachPermission.java
  8. +456 −0 attach-api/src/main/java/com/sun/tools/attach/VirtualMachine.java
  9. +63 −0 attach-api/src/main/java/com/sun/tools/attach/VirtualMachineDescriptor.java
  10. +162 −0 attach-api/src/main/java/com/sun/tools/attach/spi/AttachProvider.java
  11. +1 −0 core/.gitignore
  12. +36 −0 core/pom.xml
  13. +152 −0 core/src/main/java/org/gridkit/benchmark/gc/YoungGCPauseBenchmark.java
  14. +35 −0 core/src/main/java/org/gridkit/util/formating/Formats.java
  15. +59 −0 core/src/main/java/org/gridkit/util/monitoring/AbstractGCMonitor.java
  16. +134 −0 core/src/main/java/org/gridkit/util/monitoring/CpuUsageReporter.java
  17. +113 −0 core/src/main/java/org/gridkit/util/monitoring/GCReporter.java
  18. +73 −0 core/src/main/java/org/gridkit/util/monitoring/GCSelfMonitor.java
  19. +159 −0 core/src/main/java/org/gridkit/util/monitoring/MBeanCpuUsageReporter.java
  20. +228 −0 core/src/main/java/org/gridkit/util/monitoring/MBeanGCMonitor.java
  21. +102 −0 core/src/main/java/org/gridkit/util/monitoring/ThreadReporter.java
  22. +1 −0 gcrep/.gitignore
  23. +51 −0 gcrep/pom.xml
  24. +1 −0 jtop/.gitignore
  25. +51 −0 jtop/pom.xml
  26. +28 −0 pom.xml
View
@@ -1,4 +1,21 @@
jvm-tools
=========
-Small tools for JVM monitoring, profiling and tuning
+Small tools for JVM monitoring, profiling and tuning.
+
+JTOP
+----
+
+This tool will monitor java application threads and dump CPU usage per thread periodically.
+
+Usage:
+java -jar jtop.jar <PID>
+
+GCREP
+-----
+
+GCRep could generate log of GC events on remote JVM
+
+Usage:
+java -jar gcrep.jar <PID>
+
@@ -0,0 +1 @@
+target/
View
@@ -0,0 +1,21 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.gridkit.jrep</groupId>
+ <artifactId>attach-api</artifactId>
+ <name>Mock for Mustang JVM attach API</name>
+ <version>0.1-SNAPSHOT</version>
+ <dependencies>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
@@ -0,0 +1,10 @@
+package com.sun.tools.attach;
+
+/**
+ * Compile time only mock for attach API.
+ */
+@SuppressWarnings("serial")
+public abstract class AgentInitializationException extends Exception {
+
+ public abstract int returnValue();
+}
@@ -0,0 +1,9 @@
+package com.sun.tools.attach;
+
+/**
+ * Compile time only mock for attach API.
+ */
+@SuppressWarnings("serial")
+public abstract class AgentLoadException extends Exception {
+
+}
@@ -0,0 +1,9 @@
+package com.sun.tools.attach;
+
+/**
+ * Compile time only mock for attach API.
+ */
+@SuppressWarnings("serial")
+public abstract class AttachNotSupportedException extends Exception {
+
+}
@@ -0,0 +1,17 @@
+package com.sun.tools.attach;
+
+/**
+ * Compile time only mock for attach API.
+ */
+public abstract class AttachPermission extends java.security.BasicPermission {
+
+ private static final long serialVersionUID = 20120402L;
+
+ protected AttachPermission(String name, String actions) {
+ super(name, actions);
+ }
+
+ protected AttachPermission(String name) {
+ super(name);
+ }
+}
Oops, something went wrong. Retry.

0 comments on commit b1746a0

Please sign in to comment.