#!/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