O
O
Optimus2015-09-24 15:35:03
PHP
Optimus, 2015-09-24 15:35:03

Killed in the console when executing the script, what should I do?

The script launched from the console works, the script parses the same type of pages of the same size, at completely different intervals the message Killed appears. I look at the kern log:

Sep 24 08:19:49 servername kernel: [11101333.633259]
Out of memory in UB 13287: OOM killed process 7145 (phantomjs)
score 0 vm:2083576kB, rss:432876kB, swap:0kB

I have 256MB of memory on VDS and the script is a priority for me, can I somehow remove the limit or ignore it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Extor, 2015-09-24
Pyan @marrk2

The message says that the script used all the memory and the system had to kill it.
If you didn't set limits specifically for it (for example, with the help of cgroups), then they are hardly applicable. However, cgroups will not save you from the fact that the script uses all the memory. Probably, you need to look in the direction of optimizing the script.

N
Nadz Goldman, 2015-09-24
@nadz

You need to parse in blocks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question