Hi there!
Moodle version 2.4.5
Apache
Hoping there are some linux geeks out there that might be able to help answer my question I know my way around linux systems but am by far an expert.
I'm using the TOP command to view cpu and mem usage on our Moodle server. I know the basics and I'm slowly learning how to interpret the data so it is actually useful.
I switched my display so I could see the actual path vs. just the command and this was very useful.
My question is: is there a way to find out, or associate, an actual PID with an httpd task?
For example, I recently encountered a corrupted gradebook. When I, as admin, clicked on this gradebook on the website the website became unresponsive and the cpu spiked to about 95%. Because I was running TOP at the time it was pretty obvious what the PID was and I could kill it however, if I wanted to find out what was actually causing a cpu or mem spice caused by a particular process, how would I go about doing that? Some things are obvious, for example, if cron is running it will clearly show that in the command line, but if the command shows /usr/sbin/httpd this indicates a connection/or session, no?
NOTE: I fixed the corruption issue, I just wanted to use that as an example, I really just want to know how to associate a PID with an actual event happening on moodle.
Thanks!!!!!