Hello guys, first of all sorry for the bad english (and bad title).
I have an PHP application here who have some PHP files being called by Shell Scripts, but when I search in the PurePaths tab I cant find the PHP request on the PurePaths list. I believe this happens because the shell calls the PHP file at the local machine and it is not considered a Web Request (???).
The question is, there's a way to monitor these PHP called by Shell Scripts?
thank you and sorry for the bad english (no google translator this time ).
Answer by Douglas V. ·
Yes, we load a lot of scripts in parallel. Then I believe this behavior is expected then...
Well... thank you for the responses!
Answer by Harald Z. ·
as the agent is loaded as an extension into PHP, a new instance of the agent is registered with each PHP process. In detail: when you load PHP into Apache or start as a FastCGI module (PHP-FPM), 1 agent is loaded for that process, even though it could execute multiple PHP scripts. On the other side, when you run PHP in CGI or from command line, a new PHP process is started for each script execution, and therefore loads a new agent. After the execution is finished, there is a timeout (10 seconds) before the agent will disappear in the overview. During that timeout you would see multiple agents when a new script is started.
Do you run multiple PHP scripts in parallel?
Answer by Douglas V. ·
Well...
Looking better... the number of agents changes after each update sometimes is 4, updates to 6, then 5, then 10. It just changes all time.
The question is....
Can I use only 1 agent to collect all the data? or will it keep opening and closing new agents?
(sorry for the bad english).
Answer by Douglas V. ·
Well
I opened the agent overview as you suggested and I didn't find anything like a PID there...
there's a screenshot.
Anything that I'm missing?
Answer by Harald Z. ·
when you can see 6 PHP agents in the agent overview, do you have a PHP process running for each of these agents?
the agent's name in the overview contains the PID of the unix process running your PHP. are these ID's still active processes?
Answer by Douglas V. ·
Oh, sorry, I didn't pay attention to the last line hahaha, Thank you it worked!
But now my application are using at least SIX agents. Have any way to solve this? or it'll use an agent to each new process? (sorry for the bad english!)
Answer by Douglas V. ·
Harald, thanks for the help but I already have the PHP agent up and running.
I'll make an example to make it better. (bad english and mispelling incoming).
JANUARY 15, 3:00 PM GMT / 10:00 AM ET