Loading...
Loading...
Monitor Java Virtual Machines running on IBM i including heap memory usage, garbage collection activity, thread counts, and JVM configuration. Use when user asks about: (1) active JVMs on the system, (2) JVM heap or memory consumption, (3) garbage collection performance, (4) Java thread counts, (5) JVM home directories or properties, (6) identifying JVMs at risk of OutOfMemoryError, or (7) replacing WRKJVMJOB command output.
npx skill4agent add ajshedivy/ibmi-agent-skills javaibmiSKILL_DIR# SKILL_DIR = directory containing this SKILL.md
# Examples: ./skills/java, ~/.claude/skills/java
ibmi tools --tools "$SKILL_DIR/tools/" --toolset java_default
ibmi tool list_jvms --tools "$SKILL_DIR/tools/"
ibmi sql "SELECT JOB_NAME, CURRENT_HEAP_SIZE, IN_USE_HEAP_SIZE FROM QSYS2.JVM_INFO"ibmi tool list_jvms --tools "$SKILL_DIR/tools/"ibmi tool list_jvms_by_heap_usage --tools "$SKILL_DIR/tools/" --min-heap-pct 80ibmi tool get_jvm_detail --tools "$SKILL_DIR/tools/" --wait-time 10ibmi tool list_jvms_by_gc_activity --tools "$SKILL_DIR/tools/" --min-gc-cycles 100tools/java.yaml| Tool | Description |
|---|---|
| List all active JVMs with memory and GC stats |
| Detailed JVM info including memory breakdown |
| Find JVMs by heap consumption percentage |
| Find JVMs with highest GC activity |
| JVM configuration and property counts |
ibmi tool <tool_name> --tools "$SKILL_DIR/tools/" # Execute
ibmi tool <tool_name> --tools "$SKILL_DIR/tools/" --dry-run # Preview SQL
ibmi tools show <tool_name> --tools "$SKILL_DIR/tools/" # View details