All Products
Search
Document Center

:How do I view the memory size of a Linux server on an ECS instance?

Last Updated:Dec 28, 2020

Problem description

The actual memory size of the purchased ECS server is inconsistent with the memory size displayed in the server.

Cause

The kernel also occupies some of the memory. You cannot run the command to check the memory of the server.

Solution

Alibaba Cloud reminds you that:

  • Before you perform operations that may cause risks, such as modifying instance configurations or data, we recommend that you check the disaster recovery and fault tolerance capabilities of the instances to ensure data security.
  • You can modify the configurations and data of instances including but not limited to Elastic Compute Service (ECS) and Relational Database Service (RDS) instances. Before the modification, we recommend that you create snapshots or enable RDS log backup.
  • If you have authorized or submitted sensitive information such as the logon account and password in the Alibaba Cloud Management Console, we recommend that you modify such information in a timely manner.

You can run the following command to check the memory size of the server.

dmidecode -t memory | grep Size: | grep -v "No Module Installed"

A similar output is displayed, in which 1GB memory is available.

Scope

  • ECS
  • Simple Application Server