mycat启动报Unable to start JVM No such file or direc

mycat启动失败,查看日志 /mycat/logs/wrapper.log发现如下信息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
STATUS | wrapper  | 2017/11/22 16:15:17 | --> Wrapper Started as Daemon
STATUS | wrapper | 2017/11/22 16:15:17 | Launching a JVM...
ERROR | wrapper | 2017/11/22 16:15:17 | Unable to start JVM: No such file or directory (2)
ERROR | wrapper | 2017/11/22 16:15:17 | JVM exited while loading the application.
STATUS | wrapper | 2017/11/22 16:15:22 | Launching a JVM...
ERROR | wrapper | 2017/11/22 16:15:22 | Unable to start JVM: No such file or directory (2)
ERROR | wrapper | 2017/11/22 16:15:22 | JVM exited while loading the application.
STATUS | wrapper | 2017/11/22 16:15:26 | Launching a JVM...
ERROR | wrapper | 2017/11/22 16:15:26 | Unable to start JVM: No such file or directory (2)
ERROR | wrapper | 2017/11/22 16:15:26 | JVM exited while loading the application.
STATUS | wrapper | 2017/11/22 16:15:30 | Launching a JVM...
ERROR | wrapper | 2017/11/22 16:15:30 | Unable to start JVM: No such file or directory (2)
ERROR | wrapper | 2017/11/22 16:15:30 | JVM exited while loading the application.
STATUS | wrapper | 2017/11/22 16:15:34 | Launching a JVM...
ERROR | wrapper | 2017/11/22 16:15:34 | Unable to start JVM: No such file or directory (2)
ERROR | wrapper | 2017/11/22 16:15:34 | JVM exited while loading the application.
FATAL | wrapper | 2017/11/22 16:15:34 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2017/11/22 16:15:34 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2017/11/22 16:15:34 | <-- Wrapper Stopped

解决方法:原因可能是JVM参数没有配置或者配置错误

处理方案:

在mycat/conf/wrapper.conf 下增加:

1
wrapper.java.command=java安装目录/bin/java

例如:

1
wrapper.java.command=/home/hadoop/software/jdk1.8.0_181/bin/java
博主QQ:1012405802
技术交流QQ群:830339411
版权声明:网站内容有原创和转载,如有侵权,请联系删除,谢谢!!
感谢打赏,93bok因你们而精彩!!(支付宝支持花呗)
0%