1 Star 0 Fork 5

luxuexian/canal

forked from src-openEuler/canal 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Modify-JAVA_OPTS-to-fix-startup-failure.patch 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
huanghaitao 提交于 2021-07-22 15:31 . Package init
From 4d8355622e5eed7dd8b90246bf50e937c0b43923 Mon Sep 17 00:00:00 2001
From: hht8 <huanghaitao12138@163.com>
Date: Mon, 19 Jul 2021 11:35:38 +0800
Subject: [PATCH] Modified the stack size in JAVA_OPTS and remove two useless options
---
deployer/src/main/bin/startup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/deployer/src/main/bin/startup.sh b/deployer/src/main/bin/startup.sh
index 7624349..61daed8 100644
--- a/deployer/src/main/bin/startup.sh
+++ b/deployer/src/main/bin/startup.sh
@@ -81,7 +81,7 @@ esac
str=`file -L $JAVA | grep 64-bit`
if [ -n "$str" ]; then
- JAVA_OPTS="-server -Xms2048m -Xmx3072m -Xmn1024m -XX:SurvivorRatio=2 -XX:PermSize=96m -XX:MaxPermSize=256m -Xss256k -XX:-UseAdaptiveSizePolicy -XX:MaxTenuringThreshold=15 -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError"
+ JAVA_OPTS="-server -Xms2048m -Xmx3072m -Xmn1024m -XX:SurvivorRatio=2 -XX:PermSize=96m -XX:MaxPermSize=256m -Xss512k -XX:-UseAdaptiveSizePolicy -XX:MaxTenuringThreshold=15 -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError"
else
JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:MaxPermSize=128m "
fi
--
2.30.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rearcher/canal.git
git@gitee.com:rearcher/canal.git
rearcher
canal
canal
master

搜索帮助