ppalucha / ksar2 Goto Github PK
View Code? Open in Web Editor NEWFork of ksar - a sar grapher
License: Other
Fork of ksar - a sar grapher
License: Other
When attempting to open a file the following exception occurs:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: tried to access method net.atomique.ksar.kSar.do_fileread(Ljava/lang/String;)V from class net.atomique.ksar.UI.DataView
at net.atomique.ksar.UI.DataView.LoadFileActionPerformed(DataView.java:257)
at net.atomique.ksar.UI.DataView.access$300(DataView.java:36)
at net.atomique.ksar.UI.DataView$4.actionPerformed(DataView.java:137)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Thank you for ksar2.
In previous ksar version, we can select a date range.
Is-it possible to re-introduce this functionnality?
Thank you.
thank you for continuing devlopment this great tool. wondering if possible to also have the ability to 'pick' date files.. meaning in sar, you can do -f /var/log/sa/$datefile$. it will be really helpful if that can be done as an option.
i have problem with this, i try to using command
java -jar kSar2-0.0.2.jar -input '/home/centos/sa05.txt' -outputJPG /home/centos/Pictures/ksar/
why not automatic result output jpg graph? i have try in kSar-5.0.6, no problem. any solution?
Hello
I just found another kSar fork ( https://github.com/vlsi/ksar )
It alsoe seemed to be working fine on RHEL/Centos 7.x.
I have one sar
file containing the following lines of data, where the data for column %gnice
is missing for some unknown reason. It's hundreds of lines of CPU usage and only those two lines are broken, stopping parsing of all other lines. This is a problem because one only gets an exception for the problem itself, not in which line the problem occurs or such, so it's difficult to debug this.
12:00:01 AM CPU %usr %nice %sys %iowait %steal %irq %soft %guest %gnice %idle
12:00:01 AM all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
12:00:01 AM 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
12:00:01 AM 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
12:00:01 AM 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Exception in thread "Thread-2" java.lang.ArrayIndexOutOfBoundsException: 12
at net.atomique.ksar.Graph.Graph.parse_line(Graph.java:110)
at net.atomique.ksar.Graph.List.parse_line(List.java:53)
at net.atomique.ksar.Parser.Linux.parse(Linux.java:261)
at net.atomique.ksar.kSar.parse(kSar.java:148)
at net.atomique.ksar.FileRead.run(FileRead.java:78)
https://github.com/ppalucha/ksar2/blob/master/src/main/java/net/atomique/ksar/Graph/Graph.java#L98
How about instead of returning from the method just continuing the loop and ignoring the broken data? At least in my case it wouldn't harm anything, but make life a lot easier, because it wouldn't even be worth to find those broken two lines of data.
Hi,
I the list of sections on the left side, it's written "Processus". It should be "Processes". Processus is a French (and maybe in other languages) word but in English it should be Processes. I also see that you have put the Contexts section in there instead of having it in a separate section like the original kSar. sar put both in the same option (-w) so it would make sense, but I'd choose another label for the section. Maybe Tasks/Contexts?
By the way, I'm very glad and grateful that you made this fork and you'll see many issues from me but it's for the improvement of the software, not to complain.
Great project however cannot run if the Linux does not have X server running which is simply limit you run in Linuxes without X Servers or GUI interface.
root@hanode01 ~]# java -jar /root/ksar2-master/kSar2-0.0.4.jar --input /root/sa10 --pdf sa100.pdf
connect /tmp/.X11-unix/X0: Connection refused
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:74)
......
Running normally if X server is configured.
If you can add this enhancement to be running without any GUI or X servers Thank you.
This is a great tool. It would be cool if you keep developing it. Time to add support for RedHat 8.x sar files.This will be extremely helpful.
Thank you very much for your dedication.
Socket section should be named "Sockets" as it is more likely to have more than one than only one.
In older version , I found report generation in PNG and JPEG ,But the new version I did not find these feature. I am looking similar NMON command line for KSAR also .
https://nmonvisualizer.github.io/nmonvisualizer/commandline.html
5.0.6 has these feature
Hi, hope you are doing great.
I know ksar is not that hot topic, however, I suggest joining forces in https://github.com/vlsi/ksar
Hi, thanks for kSar2!
I am using a command like sar -A -f /var/log/sa/sa07 -s 18:13:00 -e 18:18:00
I am getting data for 24 cores OK, but CPU data is the only thing kSAR2 shows
I downloaded the latest kSar2 V 0.0.5 and still only CPU data
I verified the command on the host and created a text file, and that text file contains all other metrics
I am using a Red Hat Enterprise Linux Server release 7.5 (Maipo) system
any idea or workaround to show all the other metrics?
Hi,
What metrics go in the Swap graph of the KMem section? If there is nothing, I think this graph should be removed to make more room for the two other graphs.
I haven't used it a lot, but it looks like if you have one window open, create graphs, then realize that you wanted graphs for another server, it's better to close the window and, open a new one because otherwise the results are unexpected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.