# Error enabling TokuDB through ps\_tokudb\_admin

**URL:** <https://forums.percona.com/t/error-enabling-tokudb-through-ps-tokudb-admin/4539>\
**Category:** Other MySQL® Questions\
**Created:** [November 21, 2015, 6:55am UTC](https://forums.percona.com/t/error-enabling-tokudb-through-ps-tokudb-admin/4539 "2015-11-21T06:55:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GenryU](https://avatars.discourse-cdn.com/v4/letter/g/ce73a5/32.png) [@GenryU](https://forums.percona.com/u/GenryU)\
**Post date:** [November 21, 2015, 6:55am UTC](https://forums.percona.com/t/error-enabling-tokudb-through-ps-tokudb-admin/4539/1 "2015-11-21T06:55:38Z")

</div>

Ubuntu 15.10  
Docker 1.9.1

> [@](#):
>
> Checking if Percona Server is running with jemalloc enabled…  
> grep: /proc/820/environ: Permission denied  
> ERROR: Percona Server is not running with jemalloc, please …

But if we run check of this process (mysqld in container) through host (not in container), its return ok:

> [@](#):
>
> INFO: Percona Server is running with jemalloc enabled

Previous version:

```auto
# Check if server is running with jemalloc - if not warn that restart is needed
if [$ENABLE = 1]; then
printf "Checking if Percona Server is running with jemalloc enabled...\n"
JEMALLOC_STATUS=$(grep -c jemalloc /proc/${PID_NUM}/environ)
if [$JEMALLOC_STATUS = 0]; then
printf "ERROR: Percona Server is not running with jemalloc, please restart mysql service to enable it and then run this script...\n\n";
exit 1
else
printf "INFO: Percona Server is running with jemalloc enabled.\n\n";
fi
fi

```

Current version of ps\_tokudb\_admin (with this error?):

```auto
# Check if server is running with jemalloc - if not warn that restart is needed
if [$ENABLE = 1]; then
printf "Checking if Percona Server is running with jemalloc enabled...\n"
grep -qc jemalloc /proc/${PID_NUM}/environ || ldd $(which mysqld) | grep -qc jemalloc
JEMALLOC_STATUS=$?
if [$JEMALLOC_STATUS = 1]; then
printf "ERROR: Percona Server is not running with jemalloc, please restart mysql service to enable it and then run this script...\n\n";
exit 1
else
printf "INFO: Percona Server is running with jemalloc enabled.\n\n";
fi
fi

```
