java版本
root@5d69e265694a:/var/lib/dble# java -version
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (build 1.8.0_362-8u372-ga~us1-0ubuntu1~22.04-b09)
OpenJDK 64-Bit Server VM (build 25.362-b09, mixed mode)
JAVA_HOME
root@5d69e265694a:/var/lib/dble# echo $JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64
这个是错误日志
STATUS | wrapper | 2023/05/19 02:46:13 | --> Wrapper Started as Daemon
STATUS | wrapper | 2023/05/19 02:46:13 | Java Service Wrapper Community Edition 64-bit 3.5.40
STATUS | wrapper | 2023/05/19 02:46:13 | Copyright (C) 1999-2019 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2023/05/19 02:46:13 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2023/05/19 02:46:13 |
WARN | wrapper | 2023/05/19 02:46:14 | The 'd{MM-dd}-' environment variable was referenced but has not been defined.
STATUS | wrapper | 2023/05/19 02:46:14 | Launching a JVM...
INFO | jvm 1 | 2023/05/19 02:46:14 | OpenJDK 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
INFO | jvm 1 | 2023/05/19 02:46:14 | OpenJDK 64-Bit Server VM warning: CMSFullGCsBeforeCompaction is deprecated and will likely be removed in a future release.
INFO | jvm 1 | 2023/05/19 02:46:15 | Listening for transport dt_socket at address: 8088
INFO | jvm 1 | 2023/05/19 02:46:16 | WrapperManager: Initializing...
ERROR | wrapper | 2023/05/19 02:46:44 | Startup failed: Timed out waiting for a signal from the JVM.
ERROR | wrapper | 2023/05/19 02:46:45 | JVM did not exit on request, termination requested.
STATUS | wrapper | 2023/05/19 02:46:45 | JVM received a signal SIGKILL (9).
STATUS | wrapper | 2023/05/19 02:46:45 | JVM process is gone.
STATUS | wrapper | 2023/05/19 02:46:45 | JVM exited after being requested to terminate.
STATUS | wrapper | 2023/05/19 02:46:50 | JVM process is gone.
STATUS | wrapper | 2023/05/19 02:46:50 | Launching a JVM...
INFO | jvm 2 | 2023/05/19 02:46:51 | OpenJDK 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
INFO | jvm 2 | 2023/05/19 02:46:51 | OpenJDK 64-Bit Server VM warning: CMSFullGCsBeforeCompaction is deprecated and will likely be removed in a future release.
INFO | jvm 2 | 2023/05/19 02:46:51 | Listening for transport dt_socket at address: 8088
INFO | jvm 2 | 2023/05/19 02:46:52 | WrapperManager: Initializing...
STATUS | wrapper | 2023/05/19 02:47:19 | JVM received a signal SIGKILL (9).
STATUS | wrapper | 2023/05/19 02:47:19 | JVM process is gone.
ERROR | wrapper | 2023/05/19 02:47:19 | JVM exited unexpectedly.
STATUS | wrapper | 2023/05/19 02:47:25 | JVM process is gone.
STATUS | wrapper | 2023/05/19 02:47:25 | Launching a JVM...
INFO | jvm 3 | 2023/05/19 02:47:25 | OpenJDK 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
INFO | jvm 3 | 2023/05/19 02:47:25 | OpenJDK 64-Bit Server VM warning: CMSFullGCsBeforeCompaction is deprecated and will likely be removed in a future release.
INFO | jvm 3 | 2023/05/19 02:47:26 | Listening for transport dt_socket at address: 8088
INFO | jvm 3 | 2023/05/19 02:47:28 | WrapperManager: Initializing...
STATUS | wrapper | 2023/05/19 02:48:13 | JVM received a signal SIGKILL (9).
STATUS | wrapper | 2023/05/19 02:48:13 | JVM process is gone.
ERROR | wrapper | 2023/05/19 02:48:13 | JVM exited unexpectedly.
STATUS | wrapper | 2023/05/19 02:48:20 | JVM process is gone.
STATUS | wrapper | 2023/05/19 02:48:20 | Launching a JVM...
INFO | jvm 4 | 2023/05/19 02:48:20 | OpenJDK 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
INFO | jvm 4 | 2023/05/19 02:48:20 | OpenJDK 64-Bit Server VM warning: CMSFullGCsBeforeCompaction is deprecated and will likely be removed in a future release.
INFO | jvm 4 | 2023/05/19 02:48:20 | Listening for transport dt_socket at address: 8088
INFO | jvm 4 | 2023/05/19 02:48:22 | WrapperManager: Initializing...
STATUS | wrapper | 2023/05/19 02:48:43 | JVM received a signal SIGKILL (9).
STATUS | wrapper | 2023/05/19 02:48:43 | JVM process is gone.
ERROR | wrapper | 2023/05/19 02:48:43 | JVM exited unexpectedly.
STATUS | wrapper | 2023/05/19 02:48:49 | JVM process is gone.
STATUS | wrapper | 2023/05/19 02:48:49 | Launching a JVM...
INFO | jvm 5 | 2023/05/19 02:48:49 | OpenJDK 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
INFO | jvm 5 | 2023/05/19 02:48:49 | OpenJDK 64-Bit Server VM warning: CMSFullGCsBeforeCompaction is deprecated and will likely be removed in a future release.
INFO | jvm 5 | 2023/05/19 02:48:50 | Listening for transport dt_socket at address: 8088
INFO | jvm 5 | 2023/05/19 02:48:52 | WrapperManager: Initializing...
STATUS | wrapper | 2023/05/19 02:49:16 | JVM received a signal SIGKILL (9).
STATUS | wrapper | 2023/05/19 02:49:16 | JVM process is gone.
ERROR | wrapper | 2023/05/19 02:49:16 | JVM exited unexpectedly.
FATAL | wrapper | 2023/05/19 02:49:16 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2023/05/19 02:49:16 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2023/05/19 02:49:16 | <-- Wrapper Stopped```
------更新-----
这个是db.xml
因为我用的是docker-compose所以ip写的是mysql8的配置
<?xml version="1.0"?>
<!--
~ Copyright (C) 2016-2022 ActionTech.
~ License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher.
-->
<dble:db xmlns:dble="http://dble.cloud/" version="4.0">
<dbGroup name="dbGroup1" rwSplitMode="2" delayThreshold="100">
<heartbeat>show slave status</heartbeat>
<dbInstance name="instanceM1" url="mysql8:3306" user="root" password="123456" maxCon="1000" minCon="10"
primary="true" readWeight="1" id="xx1">
<property name="testWhileIdle">true</property>
</dbInstance>
<!--<dbInstance name="instanceS1" url="ip3:3306" user="your_user" password="your_psw" maxCon="1000" minCon="10" readWeight="2" disabled="true">-->
<!--<property name="testWhileIdle">false</property>-->
<!--</dbInstance>-->
</dbGroup>
<dbGroup name="dbGroup2" rwSplitMode="0" delayThreshold="100" disableHA="true">
<heartbeat errorRetryCount="1" timeout="10" keepAlive="60">show slave status</heartbeat>
<dbInstance name="instanceM2" url="mysql8-slave2:3326" user="root" password="123456" maxCon="1000" minCon="10"
primary="true">
<property name="testWhileIdle">true</property>
</dbInstance>
<!-- can have multi read instances -->
<!--<dbInstance name="instanceS2" url="ip4:3306" user="your_user" password="your_psw" maxCon="1000" minCon="10" usingDecrypt="true">-->
<!--<property name="testWhileIdle">true</property>-->
<!--</dbInstance>-->
</dbGroup>
<!--for clickhouse-->
<dbGroup name="dbGroup3" rwSplitMode="0" delayThreshold="100" disableHA="true">
<heartbeat errorRetryCount="1" timeout="10" keepAlive="60">show databases</heartbeat>
<dbInstance name="instanceM2" url="ip2:9004" user="your_user" password="your_psw" maxCon="1000" minCon="10" databaseType="clickhouse"
primary="true">
<property name="testWhileIdle">true</property>
</dbInstance>
<!-- can have multi read instances -->
<!--<dbInstance name="instanceS2" url="ip4:9004" user="your_user" password="your_psw" maxCon="1000" minCon="10" usingDecrypt="true" databaseType="clickhouse">-->
<!--<property name="testWhileIdle">true</property>-->
<!--</dbInstance>-->
</dbGroup>
</dble:db>
bin/wrapper.log跟新了这个
wrapper.ping.timeout=3600
wrapper.startup.timeout=7200
其他的文件都没改了
---------第二次更新
dble容器连接另外两个数据库容器
-------------第三次更新
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=PATH:PATH:PATH:JAVA_HOME/bin (新增了这行)
STATUS | wrapper | 2023/05/19 10:50:35 | --> Wrapper Started as Daemon
STATUS | wrapper | 2023/05/19 10:50:35 | Java Service Wrapper Community Edition 64-bit 3.5.40
STATUS | wrapper | 2023/05/19 10:50:35 | Copyright (C) 1999-2019 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2023/05/19 10:50:35 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2023/05/19 10:50:35 |
WARN | wrapper | 2023/05/19 10:50:36 | The 'd{MM-dd}-' environment variable was referenced but has not been defined.
STATUS | wrapper | 2023/05/19 10:50:36 | Launching a JVM...
INFO | jvm 1 | 2023/05/19 10:50:36 | OpenJDK 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
INFO | jvm 1 | 2023/05/19 10:50:36 | OpenJDK 64-Bit Server VM warning: CMSFullGCsBeforeCompaction is deprecated and will likely be removed in a future release.
INFO | jvm 1 | 2023/05/19 10:50:36 | Listening for transport dt_socket at address: 8088
INFO | jvm 1 | 2023/05/19 10:50:37 | #
INFO | jvm 1 | 2023/05/19 10:50:37 | # A fatal error has been detected by the Java Runtime Environment:
INFO | jvm 1 | 2023/05/19 10:50:37 | #
INFO | jvm 1 | 2023/05/19 10:50:37 | # SIGILL (0x4) at pc=0x00007fa8e111831e, pid=509, tid=0x00007fa8f49fe640
INFO | jvm 1 | 2023/05/19 10:50:37 | #
INFO | jvm 1 | 2023/05/19 10:50:37 | # JRE version: OpenJDK Runtime Environment (8.0_362-b09) (build 1.8.0_362-8u372-ga~us1-0ubuntu1~22.04-b09)
INFO | jvm 1 | 2023/05/19 10:50:37 | # Java VM: OpenJDK 64-Bit Server VM (25.362-b09 mixed mode linux-amd64 compressed oops)
INFO | jvm 1 | 2023/05/19 10:50:37 | # Problematic frame:
INFO | jvm 1 | 2023/05/19 10:50:37 | # J 38 C1 java.util.Arrays.copyOfRange([CII)[C (63 bytes) @ 0x00007fa8e111831e [0x00007fa8e1118340+0xffffffde]
INFO | jvm 1 | 2023/05/19 10:50:37 | #
INFO | jvm 1 | 2023/05/19 10:50:37 | # Core dump written. Default location: /var/lib/dble/core or core.509
INFO | jvm 1 | 2023/05/19 10:50:37 | #
INFO | jvm 1 | 2023/05/19 10:50:37 | # An error report file with more information is saved as:
INFO | jvm 1 | 2023/05/19 10:50:37 | # /var/lib/dble/hs_err_pid509.log
INFO | jvm 1 | 2023/05/19 10:50:37 | Compiled method (c1) 1307 78 3 java.lang.StringBuilder::toString (17 bytes)
INFO | jvm 1 | 2023/05/19 10:50:37 | total in heap [0x00007fa8e112a150,0x00007fa8e112a550] = 1024
INFO | jvm 1 | 2023/05/19 10:50:37 | relocation [0x00007fa8e112a278,0x00007fa8e112a2b8] = 64
INFO | jvm 1 | 2023/05/19 10:50:37 | main code [0x00007fa8e112a2c0,0x00007fa8e112a420] = 352
INFO | jvm 1 | 2023/05/19 10:50:37 | stub code [0x00007fa8e112a420,0x00007fa8e112a4c8] = 168
INFO | jvm 1 | 2023/05/19 10:50:37 | metadata [0x00007fa8e112a4c8,0x00007fa8e112a4d0] = 8
INFO | jvm 1 | 2023/05/19 10:50:37 | scopes data [0x00007fa8e112a4d0,0x00007fa8e112a4f8] = 40
INFO | jvm 1 | 2023/05/19 10:50:37 | scopes pcs [0x00007fa8e112a4f8,0x00007fa8e112a548] = 80
INFO | jvm 1 | 2023/05/19 10:50:37 | dependencies [0x00007fa8e112a548,0x00007fa8e112a550] = 8
INFO | jvm 1 | 2023/05/19 10:50:37 | #
INFO | jvm 1 | 2023/05/19 10:50:37 | # If you would like to submit a bug report, please visit:
INFO | jvm 1 | 2023/05/19 10:50:37 | # http://bugreport.java.com/bugreport/crash.jsp
INFO | jvm 1 | 2023/05/19 10:50:37 | #
STATUS | wrapper | 2023/05/19 10:50:38 | JVM received a signal UNKNOWN (6).
STATUS | wrapper | 2023/05/19 10:50:38 | JVM process is gone.
ERROR | wrapper | 2023/05/19 10:50:38 | JVM exited while loading the application.
STATUS | wrapper | 2023/05/19 10:50:44 | JVM process is gone.
STATUS | wrapper | 2023/05/19 10:50:44 | Launching a JVM...