D
D
Danil Trubitsyn2018-06-02 13:33:28
linux
Danil Trubitsyn, 2018-06-02 13:33:28

Is it possible to limit cpu usage to a single script?

A fairly powerful VPS server hosts (more than one) website on Wordpress + WooCommerce. A script that imports a large number of records uses all the resources of the processor allocated to the site, because of which the entire site freezes for the duration of the script.
Is there a way to limit the script load on the site?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2018-06-02
@ky0

man nice

S
sim3x, 2018-06-02
@sim3x

man atop
then
man nice
google cgroup

spoiler
https://access.redhat.com/documentation/en-us/red_...
https://www.redhat.com/en/blog/world-domination-cg...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question