Buy Percona ServicesBuy Now!

Jemalloc installed but not shown as being used after reboot (RHEL 7.6)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jemalloc installed but not shown as being used after reboot (RHEL 7.6)

    I installed Percona and want to use jemalloc as stated here
    https://www.percona.com/blog/2017/01...ercona-server/

    I rebooted as stated in the instructions, but when the database returns I find its not applied jemalloc

    Percona version
    Percona Server (GPL), Release 29, Revision 11ad961

    I check the status with:
    pt-mysql-summary | grep -A5 -i "memory management"

    # pt-mysql-summary | grep -A5 -i "memory management"
    # Memory management library ##################################
    jemalloc is not enabled in mysql config for process with id 12999
    # The End ################################################## ##


    If I look for libjemalloc.so.1 I find it here:

    # find / -name "libjemalloc*"
    /usr/lib64/libjemalloc.so.1


    So can I find some clues as to why its not being used by Percona ? I need this functionality as this database will be under quite some load.

    Thanks!



  • #2
    /etc/sysconfig/mysql should contain
    LD_PRELOAD=/usr/lib64/libjemalloc.so.1 # Memory management library ################################## jemalloc enabled in mysql config for process with id 17795 Using jemalloc from /usr/lib64/libjemalloc.so.1 # The End ################################################## ##

    Comment

    Working...
    X