When a database becomes slow, immediately changing configuration parameters can make the problem harder to understand. GBase 8s administrators can use onstat as part of a structured investigation into instance state, resource pressure, session activity, and workload behavior.
The objective is to gather evidence before making changes.
1. Confirm the Instance State
Start with:
onstat -
This provides a high-level view of the GBase 8s instance. If the instance is not in the expected state, resolve availability or startup issues before treating the problem as ordinary query slowness.
2. Inspect Resource and Session Information
Depending on the installed version, useful commands may include:
onstat -g ses
onstat -g sql
onstat -g act
These are examples of GBase 8s diagnostic commands. Confirm availability and output semantics in the documentation for your release.
Use the results to investigate active sessions, SQL activity, and potential contention. A session list alone does not prove which query is responsible for a performance incident.
3. Correlate Database Symptoms with the Host
Inspect operating-system resource usage:
uptime
free -h
vmstat 1 5
iostat -xz 1 5
The availability of iostat depends on installed system tools. Correlate CPU, memory, storage latency, and database activity over the same time window.
For example, elevated query latency alongside high storage wait may require a different investigation from latency accompanied by CPU saturation.
4. Avoid Blind Configuration Changes
Before changing memory settings, query parameters, or concurrency controls, record the baseline and identify a plausible cause. Where possible, test one controlled change at a time and compare results under a representative workload.
Preserve diagnostic output while protecting sensitive SQL literals and customer information.
5. Document the Incident
Record the symptom, affected workload, time window, instance state, relevant resource metrics, diagnostic commands, and the outcome of each corrective action.
This evidence helps distinguish recurring capacity problems from isolated query regressions.
Conclusion
Effective GBase 8s performance diagnosis combines onstat, host-level metrics, workload evidence, and controlled experiments. A repeatable investigation is more reliable than changing parameters based on a single symptom.
Top comments (0)