简体   繁体   English

尽管升级了内存大小,但在 AWS EC2 上运行的 Jenkins 磁盘空间不足

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

I have Jenkins running on an ec2 instance.我让 Jenkins 在 ec2 实例上运行。 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)我将 ec2 实例升级为更大的实例类型(从具有 4GB 内存的 .large 实例移动到具有 8GB 内存的 .xlarge 实例)

在此处输入图片说明

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?为什么实例的内存空间增加了,Free Disk Space 还是没变? Is there a way that I can allocate more memory to the Jenkins via some server settings?有没有办法通过一些服务器设置为 Jenkins 分配更多内存?

RAM and Disk Space are not the same thing. RAM 和磁盘空间不是一回事。 You will need to resize the EBS volume, then expand the partition/filesystem to use the additional space.您需要调整 EBS 卷的大小,然后扩展分区/文件系统以使用额外的空间。

Expanding the partition/filesystem is OS-specific.扩展分区/文件系统是特定于操作系统的。 Here is the procedure for Linux.下面是 Linux 的过程。 I am assuming you are running Linux on your server based on the screenshot.我假设您根据屏幕截图在服务器上运行 Linux。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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