Closed tkan145 closed 1 month ago
Thanks @dfennessy :smile:
verification steps working, I was able to have vagrant up and running
Is it possible to run those profiling tools in the existing docker compose environment? This vagrant seems like yet another environment to maintain (regarding deps). Fair enough if it is the only env where profiling tools can run.
It's a bit tricky to get systemtap working inside a Docker container, last time I tried it required matching kernel version between host and container.
I'll try again tomorrow, if it still doesn't work then I'll merge this
Running with Docker requires a matching kernel between the Docker image and the host. So I will merge this now and we can improve with future commit
What
https://issues.redhat.com/browse/THREESCALE-10981
Verification steps:
Install Vagrant https://developer.hashicorp.com/vagrant/docs/installation
Install QEMU
Install vagrant-libvirt
Start vagrant VM
Test systemtap is installed correctly
The above command should run without any error.
Get into APIcast directory
Create a apicast-config.json file with the following content
Run apicast locally
Open another terminal
Get nginx worker pid
Run stap script with pid of nginx worker
Open another terminal and send request
In the systemtap terminal, press
Ctrl-C
to end the probe. You should see something like the following