The openresty-systemtap-toolkit is a collection of SystemTap-based scripts designed for real-time analysis and diagnostics of OpenResty and its core components, including NGINX, LuaJIT, and ngx_lua. It provides developers and system administrators with tools to trace performance bottlenecks, memory usage, request distribution, regex execution, Lua execution, and file I/O behaviors in production systems. The toolkit helps identify leaks, analyze TCP queues, inspect shared memory usage, and generate flame graphs for CPU and off-CPU profiling. Many scripts are specific to NGINX worker and master processes, while others are generic enough to be applied to any Linux user-space process. Although the toolkit is no longer actively maintained—development has shifted to OpenResty XRay—it remains a valuable set of examples and utilities for advanced users of OpenResty and NGINX.

Features

  • Real-time tracing of NGINX requests, memory pools, and shared memory usage
  • Tools for analyzing regex performance, PCRE JIT usage, and execution stats
  • Sampling utilities for user-space and kernel-space backtraces with flame graph support
  • Lua-specific backtrace and connection pool analysis for ngx_lua and LuaJIT processes
  • TCP queue analysis tools for SYN, ACK, and receive queue performance
  • General-purpose SystemTap scripts for file I/O, latency, and debug info inspection

Project Samples

Project Activity

See All Activity >

License

BSD License

Follow OpenResty SystemTap Toolkit

OpenResty SystemTap Toolkit Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of OpenResty SystemTap Toolkit!

Additional Project Details

Operating Systems

Linux

Programming Language

Perl

Related Categories

Perl Performance Testing Software

Registered

2025-10-03