0

I am suspecting memory leak in my mysql 5.7.20 server as per below filed bug https://bugs.mysql.com/bug.php?id=83047

So i installed jemalloc in my centos 7 server and rebooted mysql(service mysqld restart). Now i wanted to check whether mysql has picked jemalloc as the mem allocator or not

I tried

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

where can i check that information in running mysql instance? Please help.. thanks in advance.

1

You can see which shared libaries mysqld has loaded with:

lsof -p $(pidof mysqld) | grep mem

If its using jemalloc it should be listed.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.