Daniel Perník
Daniel Perník

Reputation: 5852

Spring boot app keeps crashing in production

I built java web application using jHipster (based on Spring boot), created production war and copied it to Amazon Lightsail server (30 days free version).

When I run it - anytime in a day - it is always down next day morning. My Log file has no message about something went wrong.

I run it with this command: setsid /home/ec2-user/teamly/teamly-0.10.0-BETA.war > /home/ec2-user/teamly/teamly-log

I am really desperate, because I do not know how to investigate this problem.

Server is up, it's not the problem. So are there some memory leaks, resources issues, jvm issue or is my run command wrong? Traffic on app is very low, so I doubt it (moreover it falls in the night when all users sleeps).

One thing seems strange to me and it is the number of processes started with the app. See the image below.

Moreover when I keep refreshing the page, MEM of the process is increasing. Sometimes even 0.1 per refresh. But it stops on some value.

Thank you for any advice. I could provide more info, just do not know what is necessary right now.

enter image description here

Upvotes: 1

Views: 1970

Answers (1)

Daniel Perník
Daniel Perník

Reputation: 5852

It was happening because of lack of resources available on my Lightsail server. Probably lack of RAM. When I moved that exactly same implementation to another service provider, problem disappeared.

Upvotes: 2

Related Questions