504 error with nginx proxy


We are using SonarQube 8.4 with Nginx 1.18 as a proxy for HTTPS on virtual VMware machine. And sometimes (when analysis is run) nginx returns 504 error while getting data from Sonar. Logs show that both nginx and Sonar recieved incoming request, Sonar responded with 200 error code, but during data transfer java.io.IOException: Broken pipe occured and nginx did not get data.

Virtual machine has 4 CPUs and 8GB of memeory, yet load spikes to 70+% but VM load monitor.

Is it problem with load or something else is happening and what is recomended configuration for analysis of 300.000-400.000 lines projects (may be simulateously)?

Thank you in advance.

1 Like