Using htop to generate a live website background
21–30 of 63 posts
Re: Using htop to generate a live website background
#22Re: Using htop to generate a live website background
#23Re: Using htop to generate a live website background
#24I would be worried about one of the processes having a database password or something like that as a parameter...
mysql at least replaces -ppassword for -px
Re: Using htop to generate a live website background
#25Re: Using htop to generate a live website background
#26Not sure I understand why there's 4 nginx processes, 4 php-fpm processes and like 20 mysql processes, why so many, don't you need like 1 (or 4 if there' no pooling)?
Re: Using htop to generate a live website background
#27Re: Using htop to generate a live website background
#28Well it's ansi text, so why not just copy the text directly to a DIV, convert the ansi to html (or css) and update it via javascript polling ?
You would have to parse the VT-100 escape codes to generate the correct html + css (e.g. colors and cursor relocation escape sequences). It is not that straight forward, but on the other hand there are libraries for that.
Re: Using htop to generate a live website background
#29Not sure I understand why there's 4 nginx processes, 4 php-fpm processes and like 20 mysql processes, why so many, don't you need like 1 (or 4 if there' no pooling)?
That's worker threads, not processes. You can enable tree view in display options, then the worker threads would have been sorta moved to the right to indicate that fact, but that's not a default option.
I'm no mysql expert but I highly doubt you need more than a few threads (a bunch for the db housekeeping and one per connection), looks like this server is not using pooling. Then again I don't know much about WP and I may be talking out of my behind.