Skip to content

vr-aus12/sag-webmethods-stats-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

SoftwareAG webMethods Stats log parser and plot graph for multiple stats*.log and zip files in the folder

To use the provided Java code for processing and plotting data from log and zip files, follow these steps:

  1. Download and Install Required Libraries:

    Ensure that you have the JFreeChart library installed or added to your project's dependencies. You can download it from the official JFreeChart website.

  2. Create a Java Project:

    Create a Java project using your preferred integrated development environment (IDE) or a text editor.

  3. Add the Provided Java Code:

    Copy and paste the provided Java code into a new Java class file within your project. Make sure the package structure matches the package name in the code (package test;).

  4. Update the Directory Path:

    In the main method, update the directoryPath variable with the path to the directory where your log and zip files are located and startswith string. For example:

    MultiFileHexDataGraph chart = new MultiFileHexDataGraph("Performance Metrics", "C:\\path\\to\\your\\files\\","stats202309");
  5. Run the Application:

    Run the Java application. This will launch a graphical user interface (GUI) with tabs for each metric. The application will automatically process and plot data from log and zip files in the specified directory.

  6. View the Charts:

    The charts will be displayed in separate tabs based on the metric names. You can switch between tabs to view the charts for different metrics.

    Charts

  7. Interact with the Charts:

    You can interact with the charts as you would with any standard charting application. You can zoom in, zoom out, pan, and save charts as images.

  8. Close the Application:

    Close the application when you are done viewing the charts.

The provided code handles both log and zip files, reads data from them, and dynamically creates and updates charts for each metric. The charts are displayed in a tabbed interface for easy navigation.

Make sure to adjust the directoryPath variable in the main method to point to your specific directory containing the log and zip files.

Field description in stats file

TotalMem - The total amount of memory available to the Java virtual

FreeMem - The amount of unused memory that is currently available to the Java virtual machine

CurT - The number of system threads currently active

MaxT - The highest number of system threads that have ever been active concurrently on the server

SSNs - The number of sessions currently active

SSNx - The highest number of sessions that were active concurrently on the server

SSNAvg - The average length of a session lifetime

REQs - The number of service requests currently executing

REQx - The maximum number of service requests concurrently executing during the last poll cycle (Default: 1 minute) service requests during the last poll cycle (1 minute)

REQAvg - The average execution time length for the service requests during the last poll cycle (Default: 1 minute)

StartReq - The number of service requests that started during the last poll cycle (Default: 1 minute)

EndReq - The number of service requests that terminated during the last poll cycle (Default: 1 minute)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages