[
https://issues.apache.org/jira/browse/CASSANDRA-15767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17094655#comment-17094655
]
Brian Bellrose commented on CASSANDRA-15767:
--------------------------------------------
Should I manually edit the /usr/sbin/cassandra? I am hesitant to do so, but I
do get warnings when starting cassandra:
WARN [main] 2020-04-27 14:54:34,112 NativeLibrary.java:189 - Unable to lock JVM
memory (ENOMEM). This can result in part of the JVM being swapped out,
especially with mmapped I/O enabled. Increase RLIMIT_MEMLOCK or run Cassandra
as root.
WARN [main] 2020-04-27 14:54:34,113 StartupChecks.java:136 - jemalloc shared
library could not be preloaded to speed up memory allocations
INFO [main] 2020-04-27 14:54:34,113 StartupChecks.java:176 - JMX is enabled to
receive remote connections on port: 7199
INFO [main] 2020-04-27 14:54:34,114 SigarLibrary.java:44 - Initializing SIGAR
library
WARN [main] 2020-04-27 14:54:34,131 SigarLibrary.java:174 - Cassandra server
running in degraded mode. Is swap disabled? : true, Address space adequate? :
true, nofile limit adequate? : false, nproc limit adequate? : true
> /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: [email protected]
For additional commands, e-mail: [email protected]