• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue 504 Gateway Time-out since days from a specific subdomain

I see we're already on a second page of this case here on the forum. Normally a 504 error can be easily fixed. Is the error reproducible within a reasonable number of steps? Would you maybe want to consider opening a support ticket on this to let support staff check this directly on your server?
 
Hi, I have reduced this issue by doing some steps:
- increase pm.max_children to 900
- adding in PHP settings Additional directives:
Code:
pm.process_idle_timeout = 10s
fastcgi_send_timeout 120s;
fastcgi_read_timeout 120s;
request_terminate_timeout = 300s;

As soon I do this I think I start to receive emails from Plesk that resources was too much used.
I so edited the Monitoring to alert me when resources are used at 80 % and not 20 % as was set by default.

Doing this for now deleted the downtime of my helpdesk subdomain.
This morning I had a 12 min downtime about my community and the alert by Plesk was:

Code:
The swap usage status is critical!
The current value is 1.83 GiB.

Any idea to what I can do for resolve this issue? I suppose this time the usage was very height but what can be? An attack?
My VPS seems to be powerful.

1674727390054.png
1674727433727.png

1674727462204.png

1674727498161.png

The following screenshot is from my webhosting and show you that my VPS resources are not used at 100%
1674727545298.png
So why I am having downtime and why the swarp memory is so high. I dont know what the swarp memory is
 
Swap is used when RAM becomes insufficient. It can be a sign that your application needs more RAM, but normally if an application is hungry for RAM, the issue is located in the application, because it should free RAM once it is done doing something. Again this situation is pointing to an infinite loop somewhere, like a nested rewrite or a nested page with missing resources that are creating infinite script iterations. These again lead to an excessive RAM usage. This causes the 504 error, because scripts never end, so they are not responding to Nginx so Nginx displays the 504 error. Back to field no. 1, you will need to check what the scripts of the application are doing.
 
Swap is used when RAM becomes insufficient. It can be a sign that your application needs more RAM, but normally if an application is hungry for RAM, the issue is located in the application, because it should free RAM once it is done doing something. Again this situation is pointing to an infinite loop somewhere, like a nested rewrite or a nested page with missing resources that are creating infinite script iterations. These again lead to an excessive RAM usage. This causes the 504 error, because scripts never end, so they are not responding to Nginx so Nginx displays the 504 error. Back to field no. 1, you will need to check what the scripts of the application are doing.
Thanks. Any suggestion on how check what is the cause of this? How can I understand if the issue come from helpdesk or community and what script or code is causing the issue?
Thank you!
 
Back
Top