Jenkins service stops completely during a node js build, getting a 502 bad gateway with an nginx setup on Ubuntu Jenkins service stops completely during a node js build, getting a 502 bad gateway with an nginx setup on Ubuntu jenkins jenkins

Jenkins service stops completely during a node js build, getting a 502 bad gateway with an nginx setup on Ubuntu


As explained in this thread you can increase the memory in the /etc/default/jenkins where you can adjust the following flag

JAVA_ARGS="-Xmx256m" # Choose your desired memory instead of 256


I had the same issue in Ubuntu server.I updated the JAVA_ARGSnano /etc/default/jenkinsJAVA_ARGS="-Xmx256m"it worked for me.


I experienced the same issue on Ubuntu server. I had to change JAVA_ARGS value in

/etc/default/jenkins

to:

JAVA_ARGS="-Xmx128m"

before the react build process stopped throwing 502 gateway error message. This is on Jenkins 2.263.4