Several monitoring tools are available to help you track resource usage, monitor processes, and inspect your development environment.
Monitor all running containers and their resource usage:
dev topThis shows:
- CPU usage per container
- Memory consumption
- Network I/O
- Block I/O
- Process counts
Press Ctrl+C to exit.
ctop is an enhanced container monitoring tool with a more detailed interface. Enable it during setup:
mkdir -p conf/ctop
dev rebuildThen run:
dev exec ctop ctopctop provides:
- Real-time container metrics
- Interactive container management
- Resource usage graphs
- Container logs access
mytop monitors MySQL queries and processes in real-time. It's similar to top but for MySQL.
Enable mytop:
mkdir -p conf/mytop
dev rebuildRun mytop:
dev mytopmytop shows:
- Currently running queries
- Query execution time
- Database connections
- Slow queries
- Server status
Press q to quit.
View current MySQL processes:
dev mysql -e "SHOW PROCESSLIST;"For full query text:
dev mysql -e "SHOW FULL PROCESSLIST;"View Docker system information:
docker system infoCheck Docker disk usage:
docker system dfFor detailed breakdown:
docker system df -vReal-time stats for all containers:
docker statsStats for specific container:
docker stats phpMonitor RabbitMQ queues and messages at: http://localhost:15672
See rabbitmq.md for details.
Check cluster health:
dev console curl -X GET "elasticsearch:9200/_cluster/health?pretty"Or for OpenSearch:
dev console curl -X GET "opensearch:9200/_cluster/health?pretty"Web-based Elasticsearch monitoring. Enable it:
mkdir -p conf/elasticsearchhq
dev rebuildAccess at: http://localhost:5000
See search-ui-tools.md for more details.
Modern Elasticsearch/OpenSearch web UI. Enable it:
mkdir -p conf/elasticvue
dev rebuildAccess at: http://localhost:8080
See search-ui-tools.md for more details.
View logs for any container:
dev logs containernameFollow logs in real-time:
dev logs -f containernameView last 100 lines:
dev logs --tail=100 containernameView logs from multiple containers:
dev logs php nginxFor application performance profiling:
- XDebug: See xdebug.md
- Blackfire: See configure-blackfire.md
Identify which container is using CPU:
dev topCheck processes inside that container:
dev exec containername topCheck memory usage:
docker stats --no-streamInspect specific container:
docker inspect containername | grep -i memoryUse mytop to identify slow queries:
dev mytopOr check the slow query log (if enabled in MySQL configuration).
Monitor network I/O:
dev topCheck container networking:
docker network inspect dockerdev_default