Profiling Docker Containers (nginx)
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 10d 4h
- Merged PRs (30d)
- 3
Description
Hello Everyone!
I was playing around with the profile.py tool just to see how does it perform on different scenarios. I've started a simple nginx server by executing `docker run -d -p 80:80 nginx`. When I run `curl localhost:80` it does work so the nginx server has been setup correctly. I ran ps aux | grep nginx to get the PID of this nginx server. I then ran the profiling tool with the root PID, while I continuously curled localhost:80, however I got no output. I then saw that the nginx server had forked many processes inside so I tried profiling each PID individually, while still curling localhost:80. However, still no output. Is there a way to profile a server hosted within docker such as nginx?
Any help would be appreciated!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with profile.py and reproduce the reported setup using the shown docker run and curl commands while checking the nginx root PID and forked processes. Done means determining whether this containerized server setup is supported and documenting the required profiling approach or the reproducible limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, nginx, python
- Domain
- infrastructure, observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100