Oracle Database Performance Analysis Tool
Parse, analyze, visualize, and optionally consult AI on AWR and STATSPACK reports.
What is JAS-MIN?
JAS-MIN is a Rust command-line tool for mining Oracle AWR and STATSPACK performance reports. It parses directories of AWR HTML files and STATSPACK text files into structured JSON, then builds an interactive HTML report with Plotly charts, statistical summaries, anomaly detection, correlation analysis, and gradient/regression analysis for DB Time and DB CPU.
The tool can also send a compact ReportForAI representation to supported AI providers and convert the resulting Markdown analysis to linked HTML.
JAS-MIN Companion
Use Companion in Codex or Claude Code to discuss a performance problem alongside its measurements. Move between audit chapters, correct a conclusion and reopen the discussion after a server restart. The MCP server saves checkpoints in the audit workspace.
For a client report, arrange the findings in reading order, link them to instance-specific SQL and charts, and review the HTML. On an explicit release request, Companion supplies an offline ZIP with raport.html and its wykresy/ assets. Install Companion · Guide to auditing and publishing a client report
Five interactive chapters take you from Oracle performance charts through Ridge, Elastic Net, Huber and Q95 to a focused evidence request. Includes worked calculations, beer-shaped explainers, percentile comparisons and step-by-step Gaussian elimination. Authentic anonymized measurements; no accounts, data uploads or live AI/Oracle calls. The course distinguishes fitted associations from causes and explicitly retains data-quality limitations.
Current Capabilities
Area
What JAS-MIN does
Parsing
Parses a single report with --file, or a directory of .html and .txt reports with --directory.
Collection helper
Uses jas-min-collector.py to generate AWR/STATSPACK reports from a local Oracle environment and package reports, JSON, alert logs, optional SQL execution plans, child-cursor diagnostics, and prepared AIX/Linux statistics.
Cached analysis
Re-analyzes an existing JAS-MIN JSON file with --json-file.
Optional NMON
With --nmon DIRECTORY, parses and merges AIX/Linux *.nmon captures into the same dataset, precomputing raw series, statistics, 5/15/60-minute aggregates and sustained peak periods for HTML and MCP.
HTML dashboard
Generates <input>.html_reports/jasmin_main.html and detail pages for waits, SQL IDs, statistics, I/O, latches, segments, anomalies, and gradients.
Peak detection
Marks snapshots where DB CPU / DB Time is below --time-cpu-ratio, optionally requiring DB Time above --filter-db-time.
Snap filtering
Limits analysis to a snapshot range with --snap-range BEGIN-END.
Anomalies
Uses MAD-based anomaly detection with configurable threshold, sliding-window percentage, and optional trimming to the largest anomaly clusters.
Correlation
Computes Pearson correlations between DB Time and wait events, SQL elapsed time, and instance statistics.
Gradient analysis
Runs Ridge, Elastic Net, Huber, and Quantile-95 regression models over DB Time and DB CPU drivers.
Performance hints
HINTS separates scan, SQL-read and row-continuation work growth from CPU/elapsed support. Cards show observed history, latest supplied state, scoped context and material segment candidates; physical causes remain unconfirmed. HTML, classic AI and MCP share the same result. See policy, coverage and interpretation.
Custom gradient
Builds extra gradient pages for a selected SQL ID or wait event with --gradient-custom.
AI reports
Supports OpenAI, Google Gemini, OpenRouter, and a two-session local agent served by LM Studio.
Analytical report atlas
Linked active/peak bubble plots, four-model selection matrices, per-instance synthesis and scoped anomaly windows in MCP/API reports. See the report atlas guide.
AI tools mode
Enables function/tool-call loops for cloud providers with --tools-mode; local analysis always uses tools.
MCP server
Retains a parsed collection in memory and exposes interactive evidence, diagnostic guidance, and stable report-building tools through local Streamable HTTP.