java.lang.OutOfMemoryError: Java heap space and 502 Bad Gateway [TyE502BGW]
Hi Talkyard team,
i am facing some issue while installing the talk yard.
- facing out of memory error as mentioned in question title
502 Bad Gateway [TyE502BGW] Talkyard's Nginx server cannot connect to Talkyard's application server. Is the application server not running, or is there some network error? Please check if the 'app' Docker container is running: 'docker-compose ps' If it's not running: - Start it: 'docker-compose start app'. Then wait a few seconds and reload this page. - Or login in a Bash shell: 'docker-compose run --rm --service-ports app bash' If it is running: - Check the logs: 'docker-compose logs' - Only Play's logs: 'docker-compose logs app' - Or jump into the container: 'docker-compose exec app bash'
even i checked the containers it is up and running but still i am facing this issue. Can you please help on this. Thanks
- 3 replies
How much memory does the server have?
It seems the application server has exited, because of too little memory. Then, Nginx cannot connect to it, and replies with status
502 Bad Gateway.
Hi KajMagnus, thanks for quick replay, available size is ROM is 431GB and RAM 32GB, but still it is throwing 502 Bad Gateway
That's a lot — and some of this memory needs to be made available to the application server Docker container, otherwise it'll try to use barely nothing. You can do that, by editing this file:
and edit the
PLAY_HEAP_MEMORY_MB: ...line. Thereafter:
docker-compose restart app
Hmm maybe I should change the default value then.
What if you copy-paste that
... override.ymlfile here? Then I could see, what didn't work in your case. Or if you just type the container names and MB values