B4X FEED Server application running on AWS is crashing

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Server application running on AWS is crashing است. این موضوع تا کنون 25 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Server application running on AWS is crashing
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
25
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
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:
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

 

عقب
بالا