Skip to content

Lightsail instance freezing when launching npm application

0

Hi,

Just launched a lightsail $12 instance on debian 12 to setup a frontend with Next.js and a backend with the Venture headless CMS. Every time I run in dev mode the backend OR frontend, it works fine, but when I get to launch both my ssh login times out and I can't access it anywhere until I restart. Same in the AWS website from my browser where I get this error: Your instance encountered an error and has closed the connection. Try again or contact customer support.

UPSTREAM_ERROR [515]

Tried rebooting, reinstalling my venture backend, nothing happens. My app can't be that intensive as i barely touch the burstable zone for less than 5min Node version 20.17 LTS

Thanks in advance.

asked 2 years ago524 views

1 Answer
1
Accepted Answer

Hi,

Lightsail instances can slow down and appear as unresponsive when the instance consistently consumes more CPU than the Lightsail plan provides as a baseline. Lightsail uses burstable instance types that allow you to consume more CPU than your baseline for short periods of time. However, if an application continues to use more CPU beyond the plan's resources for long periods of time, the performance of the instance may suffer. This can happen for large or CPU intensive applications that run on a small plan size. To monitor your instance burst capacity, refer to: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity.

Consider Scaling up the instance to the next plan size for improved performance. You can increase your plan size by taking a snapshot of your instance and then recreating a new, larger instance from your snapshot: https://lightsail.aws.amazon.com/ls/docs/en/articles/how-to-create-larger-instance-from-snapshot-using-console

Thanks.

AWS
MODERATOR

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.