Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-15767

/usr/bin/cassandra looking for wrong libjemalloc.so file

    XMLWordPrintableJSON

Details

    • Code - Bug - Unclear Impact
    • Normal
    • Low Hanging Fruit
    • User Report
    • Linux
    • None
    • Hide

      package installation on a distribution where libmalloc2 is present instead of libmalloc1. libmalloc1 distros should still work the same.

      Show
      package installation on a distribution where libmalloc2 is present instead of libmalloc1. libmalloc1 distros should still work the same.

    Description

      In /usr/sbin/cassandra

      Linux)
      if [ -z $CASSANDRA_LIBJEMALLOC ] ; then
      which ldconfig > /dev/null 2>&1
      if [ $? = 0 ] ; then

      1. e.g. for CentOS
        dirs="/lib64 /lib /usr/lib64 /usr/lib `ldconfig -v 2>/dev/null | grep -v '\s' | sed 's/([^:]):.$/\1/'`"
        else
      2. 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...

      1. find /usr/lib64 -name "jemalloc"
        /usr/lib64/libjemalloc.so.2

       

       

      Attachments

        Issue Links

          Activity

            People

              smiklosovic Stefan Miklosovic
              bbellrose Brian Bellrose
              Stefan Miklosovic
              Brandon Williams, Stefan Miklosovic
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m