You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "David Capwell (Jira)" <ji...@apache.org> on 2020/04/28 15:57:00 UTC

[jira] [Updated] (CASSANDRA-15767) /usr/bin/cassandra looking for wrong libjemalloc.so file

     [ https://issues.apache.org/jira/browse/CASSANDRA-15767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Capwell updated CASSANDRA-15767:
--------------------------------------
     Bug Category: Parent values: Code(13163)Level 1 values: Bug - Unclear Impact(13164)
       Complexity: Low Hanging Fruit
      Component/s: Local/Scripts
    Discovered By: User Report
         Severity: Normal
           Status: Open  (was: Triage Needed)

> /usr/bin/cassandra looking for wrong libjemalloc.so file
> --------------------------------------------------------
>
>                 Key: CASSANDRA-15767
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15767
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Local/Scripts
>            Reporter: Brian Bellrose
>            Priority: Normal
>
> 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
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org