mycat 启动失败 The specified size exceeds the maximum representable size JVM exited while loading the a
错误信息:
[root@server1 bin]# ./mycat console
Running Mycat-server...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
wrapper | JVM exited while loading the application.
jvm 1 | Invalid maximum heap size: -Xmx4G
jvm 1 | The specified size exceeds the maximum representable size.
jvm 1 | Error: Could not create the Java Virtual Machine.
jvm 1 | Error: A fatal exception has occurred. Program will exit.
wrapper | INT trapped. Shutting down.
wrapper | <-- Wrapper Stopped
解决办法:
#最大内存不足Xmx4G,设置相关启动的配置文件
vi /usr/local/mycat/conf/wrapper.conf
wrapper.java.additional.10=-Xmx4G
wrapper.java.additional.11=-Xms1G
改为:
wrapper.java.additional.10=-Xmx512M
wrapper.java.additional.11=-Xms64M
再次启动,正常:
#启动 mycat ,正常
[root@server1 bin]# /usr/local/mycat/bin/mycat console
Running Mycat-server...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | Java HotSpot(TM) Server VM warning: You have loaded library /usr/local/mycat/lib/libwrapper-linux-x86-32.so which might have disabled stack guard. The VM will try to fix the stack guard now.
jvm 1 | It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
jvm 1 | log4j 2016-04-13 05:43:48 [./conf/log4j.xml] load completed.
jvm 1 | MyCAT Server startup successfully. see logs in logs/mycat.log
---------------------
作者:薛定谔的DBA
来源:CSDN
原文:https://blog.csdn.net/kk185800961/article/details/51146576
版权声明:本文为博主原创文章,转载请附上博文链接!
mycat 启动失败 The specified size exceeds the maximum representable size JVM exited while loading the a相关推荐
- 解决因nginx配置导致文件上传失败的问题 The filed file exceeds its maximum permitted size of 1048576 bytes
解决因nginx配置问题导致文件上传失败的问题 1.问题背景 2.问题截图 3.问题分析 4.问题解决(修改nginx的配置) 5.解决之后的"后遗症"(截图) 6.分析并解决&q ...
- 解决问题:The field file exceeds its maximum permitted size of 1048576 bytes
错因描述: springboot项目使用文件上传失败,上传是个Excel文件,大小为1.35M The field file exceeds its maximum permitted size of ...
- Spring Boot 批量上传: The field files exceeds its maximum permitted size of 1048576 bytes.
Spring Boot 批量上传异常: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededExcep ...
- springBoot:The field file exceeds its maximum permitted size of 1048576 bytes.
一.简介 Spring Boot做文件上传时出现了The field file exceeds its maximum permitted size of 1048576 bytes.错误, 显示文件 ...
- FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes.
问题描述 使用Springboot上传流时,出现了下面的异常 org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceededExce ...
- SpringBoot上传文件报错The field multiFile exceeds its maximum permitted size of 1048576 bytes.
异常 org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceededException: The field multiFile e ...
- 上传文件过大时,报The field file exceeds its maximum permitted size of 1048576 bytes问题
该问题是因为后台默认的接收文件的最大尺寸是1M,当上传的单张图片大小超过1M时,后台接收就会有问题,就会出现这种问题 解决方案:1.在前端直接压缩为1M以下的图片 2.在后台进行图片可接收尺寸的限制 ...
- Maven异常总结002---nexus服务器启动失败wrapper | The nexus service was launched, but failed to start.
nexus启动失败: wrapper | The nexus service was launched, but failed to start. 可以去查看一下他的logs: 去nexus安装 ...
- Mycat启动出现的报错字段及解决方法
Mycat报错案例 案例一 Unable to start JVM: No such file or directory出现找不到或开启不了JVM报错时,其实就是程序在$PATH相对路径下找不到jav ...
最新文章
- 操作系统ppt_Python处理PPT文件的实用姿势
- 彩色条形码轻松解决盲人购物难题!无需对焦,识别速度快12倍,还能发出过敏警告...
- samba网络服务的搭建和配置
- LeetCode Median of Two Sorted Arrays (DFS)
- oracle rcu 安装,Oracle Fusion MiddlewareⅠ: 数据库和RCU
- 要找到现阶段最适合自己的方法
- 计算机dns的工作原理,DNS的工作原理图解说明
- 35个非主流开源数据库
- 关于人脸和指纹识别共同交流方案
- C语言二叉树实验报告流程图,二叉树的建立与遍历实验报告(c语言编写,附源代码).doc...
- 最实用DOS命令参数的中文详解
- android studio moudel,Android Studio 添加其他目录下的module
- java package public_Java中的public,protected,package-private和private有...
- yjv是电缆还是电线_2019最新电缆载流量对照表,不用每次都百度了!
- abcde类 ip地址_IP寻址基础,让你了解IP地址ABCDE类的区分
- 【Reference Reading】一种基于双硼/Gd剂的治疗诊断学方法以提高硼中子捕获治疗肺癌的疗效
- 基于babylon3D模型研究3D骨骼动画(1)
- 无人驾驶时代的室外组网技术研究
- precision 为什么和recall成反比
- shell脚本scp自动输入密码
热门文章
- Flink On Yarn模式,为什么使用Flink On Yarn?Session模式、Per-Job模式、关闭yarn的内存检查,由Yarn模式切换回standalone模式时需要注意的点
- 5.解决UltraEdit在无网线情况下连接不到虚拟机上的问题,回环网卡设置
- sqlplus连接远程数据库
- Mysql生成连续时间段记录
- 操作多个表_3_查询两个表共同的行
- rabittmq java spring_消息队列 RabbitMQ 与 Spring 整合使用的实例代码
- gba徽章机器人_徽章战士GBA攻略
- Linux系统入门学习:在Debian或Ubuntu上安装完整的内核源码
- caffe基础(8):draw_net.py绘制网络结构
- AAAI 2019 滴滴被收录论文全解读