502 error, How to eliminate it?

Anyone has an idea to prevent/eliminate a 502 gateway error? Please lend some knowledge.
I’ve done all I can think of and researched extensive yet some users are experiencing it

Thanks

Your server is probably killing certain processes because they are too large. Have you tried running load tests to see which processes take the longest to execute?https://tools.pingdom.com

Increasing buffer size from your server config file might fix it.

Ok, I’ll try this… Thanks

this is my result. could it be the static content?

@ekemini
You can also try https://gtmetrix.com and https://developers.google.com/speed/pagespeed/ for more granular info about your site.

1 Like

What server are you using? Nginx or apache?

I’m using Nginx

baba check ur log files, you will get a hint.

1 Like

If you have root level access, you can try having a look at your nginx logs in /var/nginx/error.log.

Usually, this error comes from you having a proxy server doing something else somewhere, you can try to check if it’s resolving correctly.

Check if your server’s FQDN is resolving correctly too. But the log files first.