502 Bad Gateway-fout

Generic Unix server performance guides can help diagnose, but you may have too little RAM for the current load.