签到成功

知道了

CNDBA社区CNDBA社区

TDSQL 集群 collector 组件无法启动(NoClassDefFoundError) 解决方法

2021-07-26 22:49 64 0 原创 TDSQL
作者: Dave

1 问题描述

新搭建了一个低版本的TDSQL 集群,但是在赤兔中不显示kafka的信息, 这个是老问题,之前遇到过一次,解决方法参考:https://www.cndba.cn/dave/article/4620

TDSQL 赤兔平台 监控不显示Kafka 信息 解决方法
https://www.cndba.cn/dave/article/4600https://www.cndba.cn/dave/article/4620

https://www.cndba.cn/dave/article/4620

这次遇到了一个新问题,发现节点的collector 无法启动。 https://www.cndba.cn/dave/article/4620

[root@www.cndba.cn 2 bin]# pwd
/data/application/collector/bin
[root@www.cndba.cn 2 bin]# cd ..
[root@www.cndba.cn 2 collector]# ls
bin  conf  gc.log.0.current  lib  nohup.out  run.pid
[root@www.cndba.cn 2 collector]# rm -rf gc.log.0.current
[root@www.cndba.cn 2 collector]# rm -rf nohup.out
[root@www.cndba.cn 2 collector]# rm -rf run.pid
[root@www.cndba.cn 2 collector]# ls
bin  conf  lib
[root@www.cndba.cn 2 collector]# sh bin/restart.sh
cat: run.pid: No such file or directory
process not exists
jdk version 1.8.0_152 /usr/bin/java -Xms128m -Xmx1048m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=90 -XX:+CMSParallelRemarkEnabled -XX:+CMSClassUnloadingEnabled -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/data/application/collector/gc.log -XX:+UseGCLogFileRotation -XX:GCLogFileSize=200M -XX:NumberOfGCLogFiles=5 -Duser.timezone=GMT+08 -Dfile.encoding=UTF-8 -Dlog4j.configurationFile=/data/application/collector/conf/log4j2.xml -cp .:/data/application/collector/lib/*:/data/application/collector/conf/ com.tencent.monitor.collector.Application /data/application/collector/conf.properties started CollectorApplication
[root@www.cndba.cn 2 collector]# ls
bin  conf  gc.log.0.current  lib  nohup.out  run.pid
[root@www.cndba.cn 2 collector]# cat nohup.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data/application/collector/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/data/application/collector/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Failed to instantiate SLF4J LoggerFactory
Reported exception:
java.lang.NoClassDefFoundError: org/apache/log4j/Level
        at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
        at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
        at com.tencent.monitor.collector.Application.<clinit>(Application.java:29)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 6 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Level
        at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
        at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
        at com.tencent.monitor.collector.Application.<clinit>(Application.java:29)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 6 more

2 解决方法

通过上面的日志,可以定位出是java.lang.ClassNotFoundException: org.apache.log4j.Level 导致的问题,这里实际上是2个jar包导致的故障。 https://www.cndba.cn/dave/article/4620

SLF4J: Found binding in [jar:file:/data/application/collector/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/data/application/collector/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]

我们查看环境变量:

[root@www.cndba.cn 2 collector]# cat /etc/profile
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.

pathmunge () {
    case ":${PATH}:" in
        *:"$1":*)
            ;;
        *)
            if [ "$2" = "after" ] ; then
                PATH=$PATH:$1
            else
                PATH=$1:$PATH
            fi
    esac
}


if [ -x /usr/bin/id ]; then
    if [ -z "$EUID" ]; then
        # ksh workaround
        EUID=`/usr/bin/id -u`
        UID=`/usr/bin/id -ru`
    fi
    USER="`/usr/bin/id -un`"
    LOGNAME=$USER
    MAIL="/var/spool/mail/$USER"
fi

# Path manipulation
if [ "$EUID" = "0" ]; then
    pathmunge /usr/sbin
    pathmunge /usr/local/sbin
else
    pathmunge /usr/local/sbin after
    pathmunge /usr/sbin after
fi

HOSTNAME=`/usr/bin/hostname 2>/dev/null`
if [ "$HISTCONTROL" = "ignorespace" ] ; then
    export HISTCONTROL=ignoreboth
else
    export HISTCONTROL=ignoredups
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL

# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; then
    umask 002
else
    umask 022
fi

for i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; do
    if [ -r "$i" ]; then
        if [ "${-#*i}" != "$-" ]; then
            . "$i"
        else
            . "$i" >/dev/null
        fi
    fi
done

unset i
unset -f pathmunge
ulimit -HSn 600000
umask 0022
ulimit -c unlimited
export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/lib
LANG=en_US.UTF-8
# BEGIN hadoop_env
export JAVA_HOME=/data/home/tdsql/jdk1.8.0_51
export CLASS_PATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export HADOOP_HOME=/data/home/tdsql/hadoop-3.2.1
export HADOOP_PID_DIR=/data/hadoop/pids
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export HDFS_CONF_DIR=$HADOOP_HOME/etc/hadoop
export YARN_CONF_DIR=$HADOOP_HOME/etc/hadoop
export JAVA_LIBRARY_PATH=$HADOOP_HOME/lib/native
export PATH=$PATH:$JAVA_HOME/bin:$HADOOP_HOME/bin:$HADOOP_HOME/sbin
# END hadoop_env
export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/lib
LANG=en_US.UTF-8
export PATH=/data/home/tdsql/jdk1.8.0_51/bin:$PATH

这里的路径较多,我们搜索对应jar包:https://www.cndba.cn/dave/article/4620

[root@www.cndba.cn 2 collector]# find /data -name *log4j*
/data/home/tdsql/tdsqlinstall/gateway/bin/kafka_tool/libs/kafka-log4j-appender-0.10.0.1.jar
/data/home/tdsql/tdsqlinstall/gateway/bin/kafka_tool/libs/slf4j-log4j12-1.7.21.jar
/data/home/tdsql/tdsqlinstall/gateway/bin/kafka_tool/libs/log4j-1.2.17.jar
/data/home/tdsql/tdsqlinstall/gateway/bin/kafka_tool/config/connect-log4j.properties
/data/home/tdsql/tdsqlinstall/gateway/bin/kafka_tool/config/log4j.properties
/data/home/tdsql/tdsqlinstall/gateway/bin/kafka_tool/config/tools-log4j.properties
/data/home/tdsql/hadoop-3.2.1/etc/hadoop/httpfs-log4j.properties
/data/home/tdsql/hadoop-3.2.1/etc/hadoop/log4j.properties
/data/home/tdsql/hadoop-3.2.1/etc/hadoop/kms-log4j.properties
/data/home/tdsql/hadoop-3.2.1/etc/hadoop/yarnservice-log4j.properties
/data/home/tdsql/hadoop-3.2.1/share/hadoop/tools/sls/sample-conf/log4j.properties
/data/home/tdsql/hadoop-3.2.1/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar
/data/home/tdsql/hadoop-3.2.1/share/hadoop/common/lib/log4j-1.2.17.jar
/data/home/tdsql/hadoop-3.2.1/share/hadoop/hdfs/lib/log4j-1.2.17.jar
/data/application/analyze/lib/slf4j-log4j12-1.7.25.jar
/data/application/collector/lib/slf4j-log4j12-1.7.25.jar
/data/application/kafka_2.12-2.3.1/libs/kafka-log4j-appender-2.3.1.jar
/data/application/kafka_2.12-2.3.1/libs/slf4j-log4j12-1.7.26.jar
/data/application/kafka_2.12-2.3.1/libs/log4j-1.2.17.jar
/data/application/kafka_2.12-2.3.1/config/connect-log4j.properties
/data/application/kafka_2.12-2.3.1/config/log4j.properties
/data/application/kafka_2.12-2.3.1/config/tools-log4j.properties
/data/application/es-install/es/master/config/log4j2.properties
/data/application/es-install/es/master/lib/log4j-core-2.9.1.jar
/data/application/es-install/es/master/lib/log4j-api-2.9.1.jar
/data/application/es-install/es/master/lib/log4j-1.2-api-2.9.1.jar
/data/application/es-install/es/data/config/log4j2.properties
/data/application/es-install/es/data/lib/log4j-core-2.9.1.jar
/data/application/es-install/es/data/lib/log4j-api-2.9.1.jar
/data/application/es-install/es/data/lib/log4j-1.2-api-2.9.1.jar
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/specifications/logstash-input-log4j-3.1.1-java.gemspec
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-kafka-5.1.11/vendor/jar-dependencies/runtime-jars/slf4j-log4j12-1.7.21.jar
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-kafka-5.1.11/vendor/jar-dependencies/runtime-jars/log4j-1.2.17.jar
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-beats-3.1.24-java/vendor/jar-dependencies/org/apache/logging/log4j
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-beats-3.1.24-java/vendor/jar-dependencies/org/apache/logging/log4j/log4j-api
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-beats-3.1.24-java/vendor/jar-dependencies/org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-kafka-5.1.11/vendor/jar-dependencies/runtime-jars/log4j-api-2.8.2.jar
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-kafka-5.1.11/vendor/jar-dependencies/runtime-jars/log4j-slf4j-impl-2.8.2.jar
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-log4j-3.1.1-java
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-log4j-3.1.1-java/vendor/jar-dependencies/runtime-jars/log4j-1.2.17.jar
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-log4j-3.1.1-java/lib/logstash/inputs/log4j.rb
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-log4j-3.1.1-java/lib/logstash-input-log4j_jars.rb
/data/application/es-install/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-log4j-3.1.1-java/logstash-input-log4j.gemspec
/data/application/es-install/logstash/config/log4j2.properties
/data/application/es-install/logstash/logstash-core/lib/org/apache/logging/log4j
/data/application/es-install/logstash/logstash-core/lib/org/apache/logging/log4j/log4j-api
/data/application/es-install/logstash/logstash-core/lib/org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar
/data/application/es-install/logstash/logstash-core/lib/org/apache/logging/log4j/log4j-core
/data/application/es-install/logstash/logstash-core/lib/org/apache/logging/log4j/log4j-core/2.6.2/log4j-core-2.6.2.jar
/data/application/es-install/logstash/logstash-core/lib/org/apache/logging/log4j/log4j-slf4j-impl
/data/application/es-install/logstash/logstash-core/lib/org/apache/logging/log4j/log4j-slf4j-impl/2.6.2/log4j-slf4j-impl-2.6.2.jar
/data/tdsql_run/15002/gateway/bin/kafka_tool/libs/kafka-log4j-appender-0.10.0.1.jar
/data/tdsql_run/15002/gateway/bin/kafka_tool/libs/slf4j-log4j12-1.7.21.jar
/data/tdsql_run/15002/gateway/bin/kafka_tool/libs/log4j-1.2.17.jar
/data/tdsql_run/15002/gateway/bin/kafka_tool/config/connect-log4j.properties
/data/tdsql_run/15002/gateway/bin/kafka_tool/config/log4j.properties
/data/tdsql_run/15002/gateway/bin/kafka_tool/config/tools-log4j.properties
/data/tdsql_run/15001/gateway/bin/kafka_tool/libs/kafka-log4j-appender-0.10.0.1.jar
/data/tdsql_run/15001/gateway/bin/kafka_tool/libs/slf4j-log4j12-1.7.21.jar
/data/tdsql_run/15001/gateway/bin/kafka_tool/libs/log4j-1.2.17.jar
/data/tdsql_run/15001/gateway/bin/kafka_tool/config/connect-log4j.properties
/data/tdsql_run/15001/gateway/bin/kafka_tool/config/log4j.properties
/data/tdsql_run/15001/gateway/bin/kafka_tool/config/tools-log4j.properties
/data/tools/analyze/lib/slf4j-log4j12-1.7.25.jar
/data/tools/collector/lib/slf4j-log4j12-1.7.25.jar

这里也确实存在多个版本的jar包,既然定位到了问题,我们直接删除掉collector 的jar包:https://www.cndba.cn/dave/article/4620

[root@www.cndba.cn 2 collector]# cd lib
[root@www.cndba.cn 2 lib]# ls
audience-annotations-0.5.0.jar  jackson-databind-2.8.11.1.jar    netty-3.10.6.Final.jar
c3p0-0.9.5.2.jar                jline-0.9.94.jar                 okhttp-3.8.1.jar
curator-client-4.0.1.jar        jsr305-3.0.2.jar                 okio-1.13.0.jar
curator-framework-4.0.1.jar     junit-3.8.1.jar                  slf4j-api-1.7.25.jar
curator-recipes-4.0.1.jar       logback-classic-1.2.3.jar        slf4j-log4j12-1.7.25.jar
dnsjava-2.1.8.jar               logback-core-1.2.3.jar           spotbugs-annotations-3.1.9.jar
guava-20.0.jar                  mchange-commons-java-0.2.11.jar  tdsql_collector-0.3.4.jar
jackson-annotations-2.8.0.jar   metrics-core-3.1.2.jar           zookeeper-3.4.14.jar
jackson-core-2.8.10.jar         mysql-connector-java-5.1.43.jar
[root@www.cndba.cn 2 lib]# mv slf4j-log4j12-1.7.25.jar slf4j-log4j12-1.7.25.jar.bak
[root@www.cndba.cn 2 lib]# mv logback-classic-1.2.3.jar logback-classic-1.2.3.jar.bak

再次重启collector,成功:

[root@www.cndba.cn 2 lib]# cd ..
[root@www.cndba.cn 2 collector]# sh bin/
monitor.sh    restart.sh    start.sh      stop.sh       tnm2_link.sh  upgrade.sh    up.sh
[root@www.cndba.cn 2 collector]# sh bin/restart.sh
/data/application/collector/bin/stop.sh: line 6: kill: (32733) - No such process
kill 32733 succed
jdk version 1.8.0_152 /usr/bin/java -Xms128m -Xmx1048m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=90 -XX:+CMSParallelRemarkEnabled -XX:+CMSClassUnloadingEnabled -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/data/application/collector/gc.log -XX:+UseGCLogFileRotation -XX:GCLogFileSize=200M -XX:NumberOfGCLogFiles=5 -Duser.timezone=GMT+08 -Dfile.encoding=UTF-8 -Dlog4j.configurationFile=/data/application/collector/conf/log4j2.xml -cp .:/data/application/collector/lib/*:/data/application/collector/conf/ com.tencent.monitor.collector.Application /data/application/collector/conf.properties started CollectorApplication
[root@www.cndba.cn 2 collector]# ls
bin  conf  gc.log.0.current  lib  nohup.out  run.pid
[root@www.cndba.cn 2 collector]# cat nohup.out
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
MLog initialization issue: slf4j found no binding or threatened to use its (dangerously silent) NOPLogger. We consider the slf4j library not found.
Jul 26, 2021 10:25:43 PM com.mchange.v2.log.MLog
INFO: MLog clients using java 1.4+ standard logging.
Jul 26, 2021 10:25:44 PM com.mchange.v2.c3p0.C3P0Registry
INFO: Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
Jul 26, 2021 10:25:44 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource
INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 3, acquireRetryDelay -> 1000, autoCommitOnClose -> true, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 2zxatqai1r1idk2xb4zd4|26f0a63f, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> null, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 2zxatqai1r1idk2xb4zd4|26f0a63f, idleConnectionTestPeriod -> 3600, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql:loadbalance://10.206.0.3:15001,10.206.0.14:15001/tdsqlpcloud_monitor?useUnicode=true&serverTimezone=UTC&useSSL=false&verifyServerCertificate=false&characterEncoding=utf-8&connectTimeout=1000&socketTimeout=60000&loadBalancePingTimeout=1000&loadBalanceBlacklistTimeout=10000&loadBalanceHostRemovalGracePeriod=10000&loadBalanceAutoCommitStatementThreshold=3&retriesAllDown=3, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 600, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 1, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
Jul 26, 2021 10:25:45 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource
INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 3, acquireRetryDelay -> 1000, autoCommitOnClose -> true, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 2zxatqai1r1idk2xb4zd4|3232a28a, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> null, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 2zxatqai1r1idk2xb4zd4|3232a28a, idleConnectionTestPeriod -> 3600, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql:loadbalance://10.206.0.3:15001,10.206.0.14:15001/tdsqlpcloud_monitor?useUnicode=true&serverTimezone=UTC&useSSL=false&verifyServerCertificate=false&characterEncoding=utf-8&connectTimeout=1000&socketTimeout=60000&loadBalancePingTimeout=1000&loadBalanceBlacklistTimeout=10000&loadBalanceHostRemovalGracePeriod=10000&loadBalanceAutoCommitStatementThreshold=3&retriesAllDown=3, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 600, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 1, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
Jul 26, 2021 10:25:45 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource
INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 3, acquireRetryDelay -> 1000, autoCommitOnClose -> true, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 2zxatqai1r1idk2xb4zd4|e350b40, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> null, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 2zxatqai1r1idk2xb4zd4|e350b40, idleConnectionTestPeriod -> 3600, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql:loadbalance://10.206.0.3:15001,10.206.0.14:15001/tdsqlpcloud_monitor?useUnicode=true&serverTimezone=UTC&useSSL=false&verifyServerCertificate=false&characterEncoding=utf-8&connectTimeout=1000&socketTimeout=60000&loadBalancePingTimeout=1000&loadBalanceBlacklistTimeout=10000&loadBalanceHostRemovalGracePeriod=10000&loadBalanceAutoCommitStatementThreshold=3&retriesAllDown=3, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 600, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 10, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 1, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
[root@www.cndba.cn 2 collector]# ps -ef|grep collector
root     39603     1 23 22:25 pts/0    00:00:07 /usr/bin/java -Xms128m -Xmx1048m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=90 -XX:+CMSParallelRemarkEnabled -XX:+CMSClassUnloadingEnabled -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/data/application/collector/gc.log -XX:+UseGCLogFileRotation -XX:GCLogFileSize=200M -XX:NumberOfGCLogFiles=5 -Duser.timezone=GMT+08 -Dfile.encoding=UTF-8 -Dlog4j.configurationFile=/data/application/collector/conf/log4j2.xml -cp .:/data/application/collector/lib/*:/data/application/collector/conf/ com.tencent.monitor.collector.Application /data/application/collector/conf.properties
root     42249  8506  0 22:26 pts/0    00:00:00 grep --color=auto collector
[root@www.cndba.cn 2 collector]#

但是kafka 也有点问题,手工重启了一下:

https://www.cndba.cn/dave/article/4620

[root@www.cndba.cn 1 ~]# cd /data/application/kafka_2.12-2.3.1/bin
[root@www.cndba.cn 1 bin]#  ./kafka-server-start.sh -daemon /data/application/kafka_2.12-2.3.1/config/server.properties
[root@www.cndba.cn 1 bin]#

赤兔监控恢复正常:
https://www.cndba.cn/dave/article/4620https://www.cndba.cn/dave/article/4620

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
Dave

Dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 1902
    原创
  • 2
    翻译
  • 456
    转载
  • 131
    评论
  • 访问:3642099次
  • 积分:3137
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by ZhiXinTech · 皖ICP备19020168号·

        QQ交流群