My server application implementing a service providing REST API, crashes from time to time.
It runs on AWS cloud instance with Linux AMI, using the usual way:
There's no particular code path crashing the server, and it's not systematic. Sometimes it even seems to crash during "idle" time.
This is quite annoying and I'd like the experts in the forum to recommend solutions to solve or mitigate the issue.
My suspect is that the B4J app runs out of memory, given the VPS it's pretty minimal (it's a t2.micro instance type: 1 vCPU / 1 GB RAM).
How can I monitor this?
How do I realize that the B4J app has crashed due to low memory?
Or if the VPS is running out of memory?
Does it help to assign more heap space to the B4J app?
Sorry if all these questions look basic, that's exactly my level of knowledge about Linux/Java memory management... be patient...
Thanks
Andrea
It runs on AWS cloud instance with Linux AMI, using the usual way:
B4X:
sudo nohup java -jar myserver.jar &
There's no particular code path crashing the server, and it's not systematic. Sometimes it even seems to crash during "idle" time.
This is quite annoying and I'd like the experts in the forum to recommend solutions to solve or mitigate the issue.
My suspect is that the B4J app runs out of memory, given the VPS it's pretty minimal (it's a t2.micro instance type: 1 vCPU / 1 GB RAM).
How can I monitor this?
How do I realize that the B4J app has crashed due to low memory?
Or if the VPS is running out of memory?
Does it help to assign more heap space to the B4J app?
Sorry if all these questions look basic, that's exactly my level of knowledge about Linux/Java memory management... be patient...
Thanks
Andrea