mycat启动报Unable to start JVM: No such file or directory (2)【转】

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

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

解决方法:

原因可能是JVM参数没有配置或者配置错误

处理方案: 
在mycat/conf/wrapper.conf 下增加:
wrapper.java.command=java安装目录/bin/java

例如:

wrapper.java.command=/home/hadoop/software/jdk1.8.0_181/bin/java

参考:https://blog.csdn.net/leisure_life/article/details/78612256?locationNum=3&fps=1

原文地址:https://www.cnblogs.com/paul8339/p/10869793.html

时间: 2024-11-10 06:50:20

mycat启动报Unable to start JVM: No such file or directory (2)【转】的相关文章

忘记导入struts2-xxx-plugin-x.x.x.jar导致服务器启动报Unable to load configuration.Caused by: Parent package is not defined: xxx-default

今天做的一个Struts2+MyFaces(JSF)+Spring的应用,为了使用JSF,我的struts.xml中使用了如下代码 <package name="jsf" extends="jsf-default"> <interceptors> <interceptor-stack name="jsfFullStack"> <interceptor-ref name="params"

VM虚拟机启动报错Reason Failed to lock the file怎么办

VMware启动报错Reason: Failed to lock the file的解决方法 症状:  启动VMware虚拟机的时候出现了Cannot open the disk '*.vmdk' or one of the snapshot disks it depends on.Reason: Failed to lock the file.的错误. 解决办法一: 1.在VMware该虚拟机路径下的所有.lck文件和文件夹下删除或迁移至其它目录,一般就可以解决了. 2.如果再次启动VMwar

Linux 格式化分区 报错Could not stat --- No such file or directory 和 partprobe 命令

分区的过程正常: [[email protected] /]# fdisk -l Disk /dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot      Start         End      Blocks   Id  System /dev/sda1   *

unable to execute &#39;gcc&#39;: No such file or directory error: command &#39;gcc&#39; failed with exit status 1

推测是找不到gcc,怀疑过去机器gcc未配置好环境变量,于是尝试卸载gcc sudo apt-get remove gcc 此次报错显示需要g++编译,于是安装g++ sudo apt install g++ 之后使用g++代替gcc跑通了编译部分 unable to execute 'gcc': No such file or directory error: command 'gcc' failed with exit status 1 原文地址:https://www.cnblogs.co

项目启动报Unable to acquire AES algorithm.

Spring boot项目启动时报 Unable to acquire AES algorithm. This is required to function. JDK版本:1.8.0-231 工具:Eclipse 原因:JDK路径配置错误 解决方案:重新配置JDK路径,如下图: 原文地址:https://blog.51cto.com/51coding/2466491

hadoop 启动后执行wordcount解析(No such file or directory错误)

hadoop 启动后执行wordcount解析 第一个  hadoop fs -mkdir input 结果出现了错误No such file or directory 查资料,应该是 执行命令为:hadoop fs -mkdir /input 1.x是可以执行的,而2.x的执行命令为:hadoop fs -mkdir /

PHP连接MySQL的时候报错SQLSTATE[HY000] [2002] No such file or directory

错误环境:Mac OS 10.10 找到mysql.sock文件的位置 $sudo find / -name mysql.sock ------结果如下---------- find: /dev/fd/3: Not a directory find: /dev/fd/4: Not a directory /private/tmp/mysql.sock 检查/var/mysql是否存在 $ll /var/mysql 如果/var/mysql不存在则创建 $sudo mkdir /var/mysql

laravel 报错SQLSTATE[HY000] [2002] No such file or directory

在mac中执行php artisan migrate时报错 SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = weifenxiao and table_name = migrations) [PDOException] SQLSTATE[HY000] [2002] No such file or directory

redis 安装报错 jemalloc/jemalloc.h: No such file or directory。

对于redis安装的这个错误,我在博客redis 安装 与错误解决办法最后有提及,但是网上大部分文章的对这个问题的解答都是有误的.所以在这里单列出来. 错误内容: jemalloc/jemalloc.h: No such file or directory. 文档 针对这个错误,我们可以在README.md 文件中看到解释. --------- Selecting a non-default memory allocator when building Redis is done by sett