Giter VIP home page Giter VIP logo

jpicus's Introduction

JPicus

Overview

JPicus is an I/O analysis tool that helps you analyze the I/O operations of your Java application. It addresses problems such as leaking file handles (the "Too many open files" exception) and I/O performance. In order to analyze a Java process, you attach the JPicus agent which will then collect data about the I/O operations. At any point in time you can connect to the agent and take a snapshot of this data. Depending on the agent startup options that you provided, you will find information in the snapshot, such as:

  • File open/close operations - shows the exact stack trace and point in time when a file was opened and closed.
  • Failed/Successful delete operations - same for the delete operations
  • I/O operations - shows the type of I/O objet (e.g FileInputStream, FileChannel etc), the amount of data transfered, the time it took, the size of the buffer etc

Building

JPicus uses Apache Ant as a build tool. Its default target dist produces two artifacts:

  • jpicus.jar - a javaagent that you have to attach to the java process to be analyzed
  • com.sap.tools.jpicus.client.jar - a client API that can be used to connect to and control the running agent

Usage

  1. Enable the agent.

java -javaagent:/home/pavel/jpicus.jar -jar myapp.jar

  1. Connect to the agent, take a snapshot and analyze it:
Connection con  = JPicus.connect(host);
Snapshot s = con.getSnapshot();

Map<String, Set<HandleDescriptor>> handles = s.getHandles();
System.out.println(handles);

Map<String, Set<DeleteOperation>> deleteOperations = s.getDeleteOperations();
System.out.println(deleteOperations);

GUI

JPicus does not have a GUI yet. The closed source version of JPicus had an Eclipse based UI, but decided to drop it in favor of a web based UI. We believe that this will make JPicus easier to deploy and will also lower our maintenance efforts.

JVM compatibility

Current version of JPicus shall work fine with OpenJDK/OracleJVM versions 5 and 6. Version 7 is still not supported, but is on our list.

Contributing

File an issue or send us a pull request.

jpicus's People

Contributors

jonathanbaker7 avatar pgenevski avatar

Watchers

 avatar  avatar  avatar

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.