Похожие чаты

I have server Apache, really is an hosting linux very

limited, where no access to the terminal and where the manager of my domain doesn't want to give me the technical data, so I don't know the Ram of my server.

But my server crashes due to my latest project, technical support says "resources are not enough" but I don't understand what the problem is and how I could fix it. Maybe it depends on the Ram?

I am trying to run 250 php files at the same time but I am getting these errors:

[error] (11)Resource temporarily unavailable: [client xxx. xxx .xxx. 210] - www. website .com - couldn't create child process:

[error] (11)Resource temporarily unavailable: [client xxx. xxx .xxx .210] - www. website .com - AH01223: couldn't spawn child process:

The execution of each file takes just under 10 minutes. In the script there is a for loop with 270 iterations.

At each iteration I make a cURL request to the API of a website, and use a proxy list. Each request lasts about 2-3 seconds and I need to extrapolate a very light json (about 10kb).

Is there a way to figure out how much RAM each run consumes? Unfortunately I don't understand anything about servers and I don't know how to solve and what to look for (which technical characteristics, RAM, cpu, etc.).

Unfortunately I cannot modify my project, in short, I must necessarily have 258 files that are executed simultaneously.

5 ответов

11 просмотров
Giovanni-VI Автор вопроса

someone can help me ?

sounds like your hosting provider sucks

Giovanni-VI Автор вопроса
David
sounds like your hosting provider sucks

Yes sure. Is there a telegram group where i can ask help and pay programmer to solve my problem ?

so one file does 10 minutes of execution? do i understand it right?

Giovanni-VI Автор вопроса
Daniel
so one file does 10 minutes of execution? do i und...

in practice I have to make requests to the API of a site (there are 258 different links). Each link / request returns a different json. This json can change all the time so the more requests I make the better it is for me. To automatically execute each script (I have 258 all identical, where only the link in the cURL request varies) I use cronjobs (a paid service). Currently, based on how much I pay, I have about 40 thousand cronjobs per day, so in order to make as many requests as possible I run the 258 scripts every 10 minutes. (1440 * 258 = 371520 cronjobs / executions per day). In each file there is a for loop with 270 iterations. At each iteration I make a cURL request to the website's API (to avoid blocks I use a proxy list). If it helps yesterday I used memory_get_usage and each script return 0.9 Mb. The strange thing about this is that for about 20 days everything worked perfectly. The problem is not the code, in fact if I run it individually it works fine. I wonder ... could it be that the server has a limit of concurrent executions? and if so, why did it work for 20 days? Furthermore, it may be that the database (in which i saved some data) is too full and therefore these errors have now appeared (500 status code).

Похожие вопросы

Обсуждают сегодня

Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
32
А чем вам питонисты не угодили?😂
.
79
Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
Язык Си можно выучить за день? По книжке ANSI C на 230 страниц
Vincent Vegan
29
Привет, запускаю werf в dind в k8s, получаю ошибку на этапе build/beforeSetup: /.werf/stapel/embedded/bin/bash: /.werf/scripts/5898bdfe5214357d3706b879cc8d3d78460fb379607cbd...
florius0
7
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
пацаны, как-нибудь можно панель задач заблюрить, что она была похожа на kde или винду 7, 11?
В
16
or do they all have 240?
Ilnur Zaripov
9
HI. Just reviewd Planck website which looks undercooked and some menu is not leading to correct section of site. Also, the vesting is shown to be for 20 months starting next y...
Neo517
4
Дорогие любители Прекрасной Джулии! Есть кто-то имеющий практический опыт построения ML для Систем Управления? Нам нужно сделать нейросеть для автоматической подстройки пара...
Roman Timo
4
Карта сайта