sap-performance-check

sap-performance-check is a command for Claude Code from BoxLogoDev/sapstack. It costs 61 tokens per session (1,644 once invoked), scanned A, original, MIT.

A checklist for diagnosing SAP system performance across hardware, databases, SAP work processes, application code, and networks. SAP is business software used to run operations such as finance, purchasing, and production.

In plain words
What is it for?
Use it before monthly closing, when users report slowness, or after an upgrade. It covers checks for HANA, Oracle, or DB2 databases, memory, disk activity, work-process logs, SQL traces, and network delays.
Why use it?
It helps locate slowdowns by checking each technical layer in a consistent order. It also warns against running long traces in a live system, where monitoring can add load.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it before monthly closing, when users report slowness, or after an upgrade. It covers checks for HANA, Oracle, or DB2 databases, memory, disk activity, work-process logs, SQL traces, and network delays.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/boxlogodev/sapstack/sap-performance-check
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/BoxLogoDev/sapstack

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sap-performance-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/boxlogodev/sapstack/sap-performance-check/github.svg)](https://agentmods.dev/commands/boxlogodev/sapstack/sap-performance-check)
Your own site
<a href="https://agentmods.dev/commands/boxlogodev/sapstack/sap-performance-check"><img src="https://agentmods.dev/badge/commands/boxlogodev/sapstack/sap-performance-check/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sap-performance-check

Your own site · 80×15
<a href="https://agentmods.dev/commands/boxlogodev/sapstack/sap-performance-check"><img src="https://agentmods.dev/badge/commands/boxlogodev/sapstack/sap-performance-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,644 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.01644
Opus 5.5 $0.00024 $0.00658
Sonnet 5.5 $0.00012 $0.00329
Haiku 4.5 $0.00006 $0.00164

Measured 1mo ago against content hash adaa4bb5ec76, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sap-performance-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/sap-performance-check.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SAP 성능 점검 파이프라인

입력: $ARGUMENTS (기본값: system — 전체 점검)

🎯 목표

SAP 시스템 성능을 레이어별로 체계적으로 진단합니다:

  1. OS/Hardware
  2. Database (HANA/Oracle/DB2)
  3. SAP Kernel / Work Process
  4. ABAP / Application Logic
  5. Network / Client

🔒 안전 규칙

  • ST05 SQL Trace는 짧은 세션만 (I/O 부하)
  • SE30/SAT Runtime Analysis도 제한 시간 권장
  • 운영 환경에서 장시간 trace 실행 금지 (모니터링 영향)

레이어 1 — OS / Hardware

OS 리소스 (ST06)

  • ST06: OS 모니터 (CPU, Memory, Disk I/O, Network)
  • RZ20 CCMS: 알림 기준 설정
  • DB의 데이터 볼륨 성장 추이

Kernel 레벨

  • disp+work -v: Kernel 패치 레벨
  • dev_w*.log: Work Process 로그 (/usr/sap///work/)
  • disp+work.log: Dispatcher 로그

체크 항목

  • CPU 사용률 80% 이하 유지
  • Memory swap 거의 없음
  • Disk I/O wait < 10%
  • Network latency 안정

레이어 2 — Database

HANA (S/4HANA 필수)

  • DBACOCKPIT → HANA Administration
  • HANA Studio 또는 DBA Cockpit 사용
  • 체크:
    • Column Store vs Row Store 비율
    • Delta merge 상태
    • Expensive Statements (HANA Studio → Performance → Expensive Statements)
    • Statistics Service 상태

Oracle (ECC)

  • DB02 (ECC) / DB02 / DB02_OLD: Tablespace, Table stats
  • ST04 (ECC): Oracle performance
  • DB13: Backup / Reorg 스케줄
  • 체크:
    • Cache hit ratio > 95%
    • Wait events (top 5)
    • Table 통계 최신 여부

Index 건강성

  • DB05 (ECC): Index analysis
  • ST10: Table call statistics
  • Full table scan 빈도

레이어 3 — SAP Kernel / Work Process

Work Process

  • SM50: 로컬 WP 상태
  • SM66: 전체 서버 WP (분산 환경)
  • Running WP 오래 멈춘 것 확인
  • Table 컬럼 — 같은 테이블 반복 접근 시 병목 의심

Update / Enqueue

  • SM12: Lock entries — 좀비 락
  • SM13: Update requests — 실패/대기
  • SM21: System log — 경고/오류

메모리 버퍼

  • ST02: 주요 버퍼 상태
    • Program buffer: hit ratio ≥ 98%
    • Table buffer: hit ratio ≥ 95%
    • Roll / Paging: extended memory 사용률
  • ST03: Workload Analysis — response time 분포

Job 스케줄

  • SM37: Background job
  • SM36: Job 정의
  • 겹치는 job 부하 분산

레이어 4 — ABAP / Application

SQL Trace (ST05)

  1. ST05 → Activate Trace
  2. 문제 트랜잭션 실행
  3. ST05 → Deactivate
  4. Display Trace → Long runners, Full table scan
  5. Explain Plan — Index 사용 여부

Read the full file on GitHub · 207 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 207 lines · 61 tokens per session scan A adaa4bb5ec76

Subscribe to this mod's changes

sap-performance-check is a command published in the GitHub repository BoxLogoDev/sapstack (20 stars, last pushed 19d ago), licensed MIT. It adds 61 tokens to every session and 1,644 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.