Hi, I have a lot of Wordpress sites.
One of those attracts a lot of comment spam, which I can deal with okay.
What happens though is that the commenters tie up resources - often I get a notice like the following
Resource: Virtual Memory Size
Exceeded: 300 > 300 (MB)
Executable: /usr/bin/php
Command Line: /usr/bin/php /home/thedomain/public_html/wp-comments-post.php
PID: 1193 (Parent PID:32606)
Killed: No
I have PT_USERKILL=0 as per the recommendations
Is there a way that I can set CSF to kill that process only when it invokes that particular file and no others?
Thanks.
kill process of a single particular file
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: kill process of a single particular file
No, there's no such feature. There's no granularity, it applies equally to any non-root process that exceeds the trigger level, unless the user is ignored.