Mycat-Server icon indicating copy to clipboard operation
Mycat-Server copied to clipboard

Mycat运行一段时间后会出现报错,然后会自动启动,这期间会导致应用链接mycat失败

Open Yule-Momoko opened this issue 3 years ago • 4 comments

1、bug描述

Mycat运行一段时间后会出现报错,然后会自动启动,这期间会导致应用链接mycat失败

ERROR | wrapper | 2021/08/19 13:46:17 | JVM exited unexpectedly. STATUS | wrapper | 2021/08/19 13:46:17 | JVM exited in response to signal SIGKILL (9). STATUS | wrapper | 2021/08/19 13:46:21 | Launching a JVM... INFO | jvm 36 | 2021/08/19 13:46:21 | OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0 INFO | jvm 36 | 2021/08/19 13:46:22 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org INFO | jvm 36 | 2021/08/19 13:46:22 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. INFO | jvm 36 | 2021/08/19 13:46:22 | INFO | jvm 36 | 2021/08/19 13:46:23 | Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. INFO | jvm 36 | 2021/08/19 13:46:23 | MyCAT Server startup successfully. see logs in logs/mycat.log

2、版本号(非常重要) v 1.6.7.4

3、相关表的配置信息 schema.xml (需包含表的配置信息,mysql的连接驱动是JDBC还是native方式)

select user()

rule.xml (涉及到的路由函数)

XXX_ID mod-long
<function name="mod-long" class="io.mycat.route.function.PartitionByMod">
   <property name="count">64</property>
</function>

server.xml(可选)

8066 9066 0 0.0.0.0 2048 1 utf8mb4 2 16 32 7200000 300 1000 104857600

4、操作步骤 系统运行一段时间出现报错 "JVM exited unexpectedly."

5、期望结果 不出现报错 "JVM exited unexpectedly."

6、实际结果 系统运行一段时间出现报错 "JVM exited unexpectedly."

7、额外信息 Add any other context about the problem here.

Yule-Momoko avatar Aug 19 '21 08:08 Yule-Momoko

看看是否有其他的報錯信息導致mycat重啓

zwyqz avatar Aug 19 '21 08:08 zwyqz

日志里就这些信息 ERROR | wrapper | 2021/08/19 13:46:17 | JVM exited unexpectedly. STATUS | wrapper | 2021/08/19 13:46:17 | JVM exited in response to signal SIGKILL (9). STATUS | wrapper | 2021/08/19 13:46:21 | Launching a JVM... INFO | jvm 36 | 2021/08/19 13:46:21 | OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0 INFO | jvm 36 | 2021/08/19 13:46:22 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org INFO | jvm 36 | 2021/08/19 13:46:22 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. INFO | jvm 36 | 2021/08/19 13:46:22 | INFO | jvm 36 | 2021/08/19 13:46:23 | Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. INFO | jvm 36 | 2021/08/19 13:46:23 | MyCAT Server startup successfully. see logs in logs/mycat.log

Yule-Momoko avatar Aug 19 '21 08:08 Yule-Momoko

把日志设置为debug级别

junwen12221 avatar Aug 19 '21 15:08 junwen12221