壓低CPU和memory但不kill程序 - Linux
By Christine
at 2013-04-30T11:39
at 2013-04-30T11:39
Table of Contents
如題,在共享主機上要跑站台維護腳本,
主機會主動kill掉資源耗太大的process,
我希望腳本可以跑慢一點沒關係,但不要吃太多資源。
查過限制CPU常見的ulimit和PHP的memory_usage,
但兩者都是把資源用超過的程式中斷掉...
請問各位前輩,有沒有方法可確實壓低process的CPU% (跑慢一點沒關係)
和memory usage (多的丟到virtual memory?)
且能維持程序正常執行而不會kill或因資源不足而中斷?
--
主機會主動kill掉資源耗太大的process,
我希望腳本可以跑慢一點沒關係,但不要吃太多資源。
查過限制CPU常見的ulimit和PHP的memory_usage,
但兩者都是把資源用超過的程式中斷掉...
請問各位前輩,有沒有方法可確實壓低process的CPU% (跑慢一點沒關係)
和memory usage (多的丟到virtual memory?)
且能維持程序正常執行而不會kill或因資源不足而中斷?
--
Tags:
Linux
All Comments
By Olivia
at 2013-05-01T13:04
at 2013-05-01T13:04
By Joseph
at 2013-05-01T15:56
at 2013-05-01T15:56
By Selena
at 2013-05-04T19:43
at 2013-05-04T19:43
By James
at 2013-05-06T02:13
at 2013-05-06T02:13
By Leila
at 2013-05-10T12:37
at 2013-05-10T12:37
By Jessica
at 2013-05-10T23:57
at 2013-05-10T23:57
By Harry
at 2013-05-14T08:02
at 2013-05-14T08:02
By Lauren
at 2013-05-18T09:22
at 2013-05-18T09:22
By Isabella
at 2013-05-21T16:01
at 2013-05-21T16:01
By Belly
at 2013-05-26T12:00
at 2013-05-26T12:00
Related Posts
Linux 3.9核心正式版發佈
By Quintina
at 2013-04-29T10:51
at 2013-04-29T10:51
請問mint(LMDE)怎麼更新thunderbird?
By Anthony
at 2013-04-29T09:32
at 2013-04-29T09:32
OpenShot 宣布從 GTK 轉向使用 Qt
By Elma
at 2013-04-28T20:32
at 2013-04-28T20:32
請問一下big5 轉碼上bbs
By Una
at 2013-04-28T15:55
at 2013-04-28T15:55
雙系統製作
By Brianna
at 2013-04-27T16:08
at 2013-04-27T16:08