我是 php 环境的新手,最近我开发了一个基于 php + mysql 的网站。我将它托管在共享主机上。但问题是它们对 CPU 和内存的使用有限制。所以现在我决定计划一些东西,比如计算 CPU 和 ram 使用率的代码,现在如果它开始消耗超过它的限制,所以现在代码必须减少它,或者创建恢复点,以便在一点点时间之后它需要被调用回来。
和
1.my questions, is it possible to know exact CPU and ram usage.
2.Is it possible to control the code to use less resources.
... 谢谢你 。