Skip to content

Slow I/O - Remove folder Uninterruptible sleep Status

0

Hi guys,

i have a simple Lightsail instance Ubuntu 1 GB RAM, 1 vCPU, 40 GB SSD.

When my application is running, everything is going well, it's fast. But when it's time to build my application (npm run build) it gets very slow. Even removing a folder in terminal is very slow.

So I checked with htop and I see that when it's time tu use the disk storage (writing in these 2 cases) it gets in Uninterruptible sleep status and it can make my build process be as long as 20 minutes. It's a small React application.

As I said, even removing folders might be slow.

Do you have an idea what can make my build process be in a Uninterruptible sleep Status?

Thanks

asked 3 years ago358 views
4 Answers
0

What is the memory and CPU load when doing builds, etc.?

EXPERT
answered 3 years ago
0

CPU nearly 0%, memory is full... So I created a swap file of 1GO which is also full... But I don't understand why because it's simply a node command, I mean I'm not compiling C++ code, it's only a node build command that even my old laptop would do.

I also had to add max-old-space-size=1536 to my build command because without it, it will crash. Which is odd because previous server I didn't have this problem.

Maybe it can help you those informations? Bigger swap file? But I feel like I'm not fixing the real problem by doing this. Why a 1go Ram and 1 CPU cannot build a simple node application without crashing and without having to make a swap file and a max-old-space-size=1536 command?

answered 3 years ago
0

The problem of memory capacity seems to be significant, since the system creates a swap area and uses a large amount of memory there as well.
Would it be possible for you to check what would happen if we switched to 2 GB to increase the performance of Lightsail?

EXPERT
answered 3 years ago
0

Yeah I'll do this tomorrow and let you know. Thanks by the way

answered 3 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.