Comments (5)
This mode should include the feature of exporting the graph (as image - GIF/PNG) in addition to CSV data.
from gcviewer.
Command line mode should not not depend on any GUI component to run : That is should be able to run in a non interative session/shell. This would allow to use it in automated builds/test suites.
from gcviewer.
I agree.
from gcviewer.
I have a java class that takes a gc.log filename and prints some information (throughput, max used mem after gc, total gc'ed mem) on System.out using GCViewer classes. Here is my source code :
import com.tagtraum.perf.gcviewer.*; import java.io.FileInputStream; import java.io.File; import java.util.logging.Logger; import java.util.logging.Level; import java.util.Locale; public class GCLogStatistics { private final GCLogStatistics i = null; private static final DataReaderFactory factory = new DataReaderFactory(); public static void main (String args[]) { if (args == null || args.length != 1) { System.out.println("Usage: GCLogStatistics gc.log"); return; } GCLogStatistics i = new GCLogStatistics(args[0]); } GCLogStatistics(String filename) { try { final File f = new File(filename); final FileInputStream in = new FileInputStream(f); final DataReader reader = factory.getDataReader(in); final GCModel model = reader.read(); System.out.printf(Locale.US,"THROUGHPUT:%2.2f\n",model.getThroughput()); System.out.println("MAXUSEDMEM:"+model.getPostFullGCUsedMemory().getMax()); System.out.println("TOTALGCEDMEM:"+model.getFreedMemory()); } catch (Exception e ) { System.err.println (e.toString ()); } } }
from gcviewer.
Hi David,
Thank you for this sample. There is another user working on this issue (pbilstein). His approach extracts more information. When he releases his code I'll have to see how I can combine the two different approaches.
Regards, Jörg
from gcviewer.
Related Issues (20)
- Total promotion can get negative HOT 8
- 时间区间缺少png自动选择功能 HOT 1
- Error parsing openjdk 11 logs HOT 1
- OpenJDK - additional tags fail parsing HOT 1
- SEVERE [DataReaderFactory]: Failed to recognize file format. HOT 5
- macOS - Application hangs when quitting
- Error when open file HOT 2
- Parse problem for Java 11 Unified GC logging format HOT 1
- GCViewerForQianKunZhao HOT 1
- What do you think of changing the license to Apache 2.0? HOT 3
- Failed to parse gc event "Merge Heap Roots" on Adopt OpenJDK 17 HOT 1
- The reported freed memory is incorrect
- Java 17 ready version ? HOT 1
- Tenured Generation graph not showing up when using openJDK 11 HOT 2
- The environment variable JAVA_HOME is not correctly set. HOT 1
- Wrong graph display when open series HOT 4
- Parse xml G1GC on openjdk9 error
- Interactive Action of mouse movement on chart HOT 2
- Support graphical display of metaspace? HOT 1
- Release 1.37
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcviewer.