Last active
August 2, 2024 02:34
-
-
Save diginfo/be7347e6e6c4f05375c51bca90f220e8 to your computer and use it in GitHub Desktop.
Install latest jemalloc & configure mysql - Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Install latest jemalloc & configure mysql - Ubuntu | |
## bash <(curl -Ls https://gist.github.com/diginfo/be7347e6e6c4f05375c51bca90f220e8/raw/) | |
## | |
apt-get -y install autoconf libxslt-dev xsltproc docbook-xsl | |
git clone https://github.com/jemalloc/jemalloc.git | |
cd jemalloc | |
autoconf | |
./configure | |
make dist | |
make install | |
## /usr/lib/x86_64-linux-gnu/libjemalloc.so.1 | |
echo -e "[mysqld_safe]\nmalloc-lib = /usr/local/lib/libjemalloc.so.2" > /etc/mysql/conf.d/jemalloc.cnf | |
#systemctl restart mysqld |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
installed.