简体   繁体   中英

Jenkins running on AWS EC2 running out of disk space despite upgrading the memory size

I have Jenkins running on an ec2 instance. The main build server had gone offline due to "Out of Disk space". I upgraded the ec2 instance to a larger instance type (moving from a .large instance with 4GB of memory to a .xlarge with 8GB of memory)

在此处输入图片说明

However, after upgrading the instance to have more memory, the Free Disk Space still showed the same amount, and instead I reduced the Free Space Threshold to enable the master node to get back online. (As outlined here: how to solve jenkins 'Disk space is too low' issue? )

Why did the Free Disk Space remain the same despite increasing the memory space of the instance? Is there a way that I can allocate more memory to the Jenkins via some server settings?

RAM and Disk Space are not the same thing. You will need to resize the EBS volume, then expand the partition/filesystem to use the additional space.

Expanding the partition/filesystem is OS-specific. Here is the procedure for Linux. I am assuming you are running Linux on your server based on the screenshot.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modify-volume.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM