1. check mariadb memory allocation
SELECT @@hostname, @@version_comment,@@version;
SELECT @@hostname AS hostname,@@version AS mariadb_version, @@version_malloc_library AS memory_allocator;
2. Install epel release
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -y
3. Install jemalloc
# redhat
yum install jemalloc -y
# ubuntu
apt install -y libjemalloc2
SELECT @@hostname, @@version_comment,@@version;
SELECT @@hostname AS hostname,@@version AS mariadb_version, @@version_malloc_library AS memory_allocator;
2. Install epel release
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -y
3. Install jemalloc
# redhat
yum install jemalloc -y
# ubuntu
apt install -y libjemalloc2
















.jpeg)






