mycat学习系列3:常见错误

1. 报错信息:Unable to start JVM: No such file or directory

```
STATUS | wrapper  | 2021/04/06 09:17:37 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2021/04/06 09:17:37 | Launching a JVM...
ERROR  | wrapper  | 2021/04/06 09:17:37 | Unable to start JVM: No such file or directory (2)
ERROR  | wrapper  | 2021/04/06 09:17:37 | JVM exited while loading the application.
STATUS | wrapper  | 2021/04/06 09:17:41 | Launching a JVM...
ERROR  | wrapper  | 2021/04/06 09:17:41 | Unable to start JVM: No such file or directory (2)
ERROR  | wrapper  | 2021/04/06 09:17:41 | JVM exited while loading the application.
STATUS | wrapper  | 2021/04/06 09:17:45 | Launching a JVM...
ERROR  | wrapper  | 2021/04/06 09:17:45 | Unable to start JVM: No such file or directory (2)
ERROR  | wrapper  | 2021/04/06 09:17:45 | JVM exited while loading the application.
STATUS | wrapper  | 2021/04/06 09:17:49 | Launching a JVM...
ERROR  | wrapper  | 2021/04/06 09:17:49 | Unable to start JVM: No such file or directory (2)
ERROR  | wrapper  | 2021/04/06 09:17:49 | JVM exited while loading the application.
STATUS | wrapper  | 2021/04/06 09:17:53 | Launching a JVM...
ERROR  | wrapper  | 2021/04/06 09:17:53 | Unable to start JVM: No such file or directory (2)
ERROR  | wrapper  | 2021/04/06 09:17:53 | JVM exited while loading the application.
FATAL  | wrapper  | 2021/04/06 09:17:53 | There were 5 failed launches in a row, each lasting less than 300 seconds.  Giving up.
FATAL  | wrapper  | 2021/04/06 09:17:53 |   There may be a configuration problem: please check the logs.
STATUS | wrapper  | 2021/04/06 09:17:53 | <-- Wrapper Stopped
```
  • 原因:原因可能是JVM参数没有配置或者配置错误;
  • 解决方法:
    在mycat/conf/wrapper.conf 下增加:
    wrapper.java.command=java安装目录/bin/java
    例如:wrapper.java.command=/usr/local/software/jdk1.8.0_271/bin/java
    
    在这里插入图片描述
  • 参考文档:https://blog.csdn.net/helloxiaozhe/article/details/81603184
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值