Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 Apache PHP 服务器有时会出现 CPU 受限 10 分钟左右,然后恢复正常。我在 perf(系统分析器)中查看了这些主机,它们都在 PHP(5.6.11)中。
当发生这种情况时,我们需要能够分析实际的 PHP 代码以查看发生了什么。最理想的情况是,我们可以随时安装一个分析器,并在我们在这种情况下捕获一个盒子时启用它。
在生产中检查 CPU 饱和的 PHP Web 服务器以了解发生了什么的好策略是什么?