-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server up in memory. #636
Comments
I checked, I killed all the processes "php index.php /cron/deleteLogData" and the memory came back very low. |
Hi @Stephan83c ,
I have some questions:
|
Hi Thanks for the explanation.
#!/bin/bash and ./Script.sh deleteLogData I have reboot server yesterday and currently without connection:
If it goes on I think I'll do a cron that will kill the processes every night. I hope it will help, thank you for your answer |
This is interesting topic, I need to restart my private PF server ones a week because of memory exhaust. Currently deleteLogData use 2 MB RAM, maybe after couple days this will change. |
Very interesting! Ill have a look. I have some RAM issues on my public installation too but could not hunt them down to a single script. Some more info:
Without checking this on my VPS, just looking at the code I have a "theory":
If this is the case, a quick fix is to lower the characters that are checked by the job: |
I went down to 8, kill the processes and I'm watching what's going on. |
@Stephan83c I did some deeper investigation into this. I could not see the behavior you described on my server. The I wondered about the amount of parallel running
So even if a I´ll update the cronJobs in the next release and add
|
I'm a bit out of my realm here (experienced in Microsoft SQL) but the query itself could be faster: Instead of modifying the value in each row and comparing it to a static value, take the literal value in the row and compare it to a static value. This is a rough example of what I mean:
Also, this stackoverflow post seems to back up my understanding that MSSQL and MySQL work upon roughly the same performance principles. You might also consider pulling the DATE_SUB out into the php code incase Mysql is attempting to recalculate it for every row (I don't know if it will or not). |
@Quintinon Thanks for feedback! :) |
@exodus4d thank you for investigating. For information I have 4 process whit 1 people conected now. |
Where to put "ini_set('max_execution_time', 300)" ? |
Hello,
My Pathfinder server is working well and I congratulate you.
But sometime the server goes to swap memory and sometime mysql stop to working.
I noticed in the process à lot of "php index.php /cron/deleteLogData"
I would like to know if the problem comes from there.
Server:
Thx for answer.
The text was updated successfully, but these errors were encountered: