Git Product home page Git Product logo

samurai's Introduction

Samurai

Samurai is an analysis tool for Java thread dumps / GC logs.

samurai in action

@samurai_java

hashtag

#samuraiApp

Download

mac win win win

What does it offer?

  • Tail log files

Drag and drop any log file to browse.

multiple-logs.mp4
  • Take thread dumps of local processes and visualize them

From [File] > [Take Thread Dumps from], or drag and drop thread dump log files to the window.

threaddump-onthefly.mp4
  • Visualize GC logs

From [File] > [View GC Log from], or drag and drop GC log files to the window.

gc-onthefly.mp4

samurai's People

Contributors

keyno63 avatar seratch avatar yusuke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

samurai's Issues

Default Build fails with module access error: package sun.jvmstat.monitor

./gradlew build

> Task :samurai-remotedump:javadoc FAILED
/Users/karianna/Documents/workspace/oss/samurai/samurai-remotedump/src/main/java/one/cafebabe/samurai/remotedump/ProcessUtil.java:21: error: package sun.jvmstat.monitor is not visible
import sun.jvmstat.monitor.*;
                  ^
  (package sun.jvmstat.monitor is declared in module jdk.internal.jvmstat, which does not export it to the unnamed module)
/Users/karianna/Documents/workspace/oss/samurai/samurai-remotedump/src/main/java/one/cafebabe/samurai/remotedump/VirtualMachineUtil.java:24: error: package sun.tools.attach is not visible
import sun.tools.attach.HotSpotVirtualMachine;
                ^
  (package sun.tools.attach is declared in module jdk.attach, which does not export it to the unnamed module)
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':samurai-remotedump:javadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/Users/karianna/Documents/workspace/oss/samurai/samurai-remotedump/build/tmp/javadoc/javadoc.options'

OutOfMemoryError with large file

When I open a GC Log sized about 275.5 MB, Samurai became not responding and OutOfMemoryError will be happened.
I'm using Samurai-2021.9.dmg.

anatawa12:~ $ /Volumes/Samurai/Samurai.app/Contents/MacOS/Samurai
Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning.
Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning.
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
	at java.desktop/javax.swing.text.GapContent.allocateArray(GapContent.java:97)
	at java.desktop/javax.swing.text.GapVector.resize(GapVector.java:226)
	at java.desktop/javax.swing.text.GapContent.resize(GapContent.java:111)
	at java.desktop/javax.swing.text.GapVector.shiftEnd(GapVector.java:243)
	at java.desktop/javax.swing.text.GapContent.shiftEnd(GapContent.java:358)
	at java.desktop/javax.swing.text.GapVector.open(GapVector.java:213)
	at java.desktop/javax.swing.text.GapVector.replace(GapVector.java:154)
	at java.desktop/javax.swing.text.GapContent.insertString(GapContent.java:141)
	at java.desktop/javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:755)
	at java.desktop/javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:739)
	at java.desktop/javax.swing.text.PlainDocument.insertString(PlainDocument.java:131)
	at java.desktop/javax.swing.JTextArea.append(JTextArea.java:482)
	at one.cafebabe.samurai.swing.LogPanel$FlushTask.run(LogPanel.java:142)
	at one.cafebabe.samurai.swing.LogRenderer$VersionAwareTask.run(LogRenderer.java:103)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
	at java.base/java.security.AccessController.executePrivileged(AccessController.java:776)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
	at java.desktop/javax.swing.text.GapContent.allocateArray(GapContent.java:97)
	at java.desktop/javax.swing.text.GapVector.resize(GapVector.java:226)
	at java.desktop/javax.swing.text.GapContent.resize(GapContent.java:111)
	at java.desktop/javax.swing.text.GapVector.shiftEnd(GapVector.java:243)
	at java.desktop/javax.swing.text.GapContent.shiftEnd(GapContent.java:358)
	at java.desktop/javax.swing.text.GapVector.open(GapVector.java:213)
	at java.desktop/javax.swing.text.GapVector.replace(GapVector.java:154)
	at java.desktop/javax.swing.text.GapContent.insertString(GapContent.java:141)
	at java.desktop/javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:755)
	at java.desktop/javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:739)
	at java.desktop/javax.swing.text.PlainDocument.insertString(PlainDocument.java:131)
	at java.desktop/javax.swing.JTextArea.append(JTextArea.java:482)
	at one.cafebabe.samurai.swing.LogPanel$FlushTask.run(LogPanel.java:142)
	at one.cafebabe.samurai.swing.LogRenderer$VersionAwareTask.run(LogRenderer.java:103)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
	at java.base/java.security.AccessController.executePrivileged(AccessController.java:776)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space

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.