Code Monkey home page Code Monkey logo

sa-jdi's Introduction

Usefull utilities and samples about learning Java and HotSpot VM.

Based on http://www.docjar.com/html/api/sun/jvm/hotspot/tools/PermStat.java.html

You need to add sa-jdi.jar to your class path. This is generally available in your JDK's lib directory. Also, you might need to run this class with super user privileges in order to access the other JVM.

You can install sa-jdi.jar to your local maven repository if you use maven.

mvn install:install-file  -Dfile=/usr/local/java/jdk1.7.0_40/lib/sa-jdi.jar \
    -DgroupId=sun.jvm.hotspot \
    -DartifactId=sa-jdi \
    -Dversion=24.0-b56.BuildVersion \
    -Dpackaging=jar \
    -DgeneratePom=true \
    -DcreateChecksum=true

Now, you can add sa-jdi dependency to your pom.xml

<dependency>
    <groupId>sun.jvm.hotspot</groupId>
    <artifactId>sa-jdi</artifactId>
    <version>24.0-b56.BuildVersion</version>
</dependency>

If you use javac and java, you should add sa-jdi.jar to your class path like this:

javac -cp ".:$JAVA_HOME/lib/sa-jdi.jar" PrintStringTable.java
java -cp ".:$JAVA_HOME/lib/sa-jdi.jar" PrintStringTable <PID of a running JVM>

sa-jdi docs is here: http://www.docjar.com/docs/api/sun/jvm/hotspot/package-index.html

sa-jdi's People

Contributors

songuo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

2035go

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.