I have created basic API's in node using express, Every thing works fine but suddenly some times i get 504 time out where pm2 status is online and the timeout continues till i restart the pm2 again, I have even checked the server health every thing is fine even sql server health is fine. i have checked the pm2 logs and every thing in logs is fine too.
I am checking the API's using postman with pm2 logs enabled, it takes time and shows 504 error with no logs and after pm2 restart everything works fine for some time