Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
Code - Bug - Unclear Impact
-
Normal
-
Low Hanging Fruit
-
User Report
-
Linux
-
None
-
Description
In /usr/sbin/cassandra
Linux)
if [ -z $CASSANDRA_LIBJEMALLOC ] ; then
which ldconfig > /dev/null 2>&1
if [ $? = 0 ] ; then
- e.g. for CentOS
dirs="/lib64 /lib /usr/lib64 /usr/lib `ldconfig -v 2>/dev/null | grep -v '\s' | sed 's/([^:]):.$/\1/'`"
else - e.g. for Debian, OpenSUSE
dirs="/lib64 /lib /usr/lib64 /usr/lib `cat /etc/ld.so.conf /etc/ld.so.conf.d/*.conf | grep '^/'`"
fi
dirs=`echo $dirs | tr " " ":"`
CASSANDRA_LIBJEMALLOC=$(find_library './libjemalloc\.so(\.1)' $dirs)
However...
- find /usr/lib64 -name "jemalloc"
/usr/lib64/libjemalloc.so.2
Attachments
Issue Links
- is duplicated by
-
CASSANDRA-17780 libjemalloc2 is not detected by cassandra script
- Resolved