Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64 的 中标麒麟类的环境 使用 openjdk 1.8_242环境无法启动 #39

Open
GengPu opened this issue Mar 22, 2023 · 6 comments

Comments

@GengPu
Copy link

GengPu commented Mar 22, 2023

启动显示

JPOM_AGENT_APPLICATION
automatic running: agent-2.10.36.jar
@bwcx-jzy
Copy link
Member

大概率是启动卡住,一般是 hostname 相关的,https://jpom.top/pages/a1e454/#%E5%90%AF%E5%8A%A8%E5%BE%88%E6%85%A2

@GengPu
Copy link
Author

GengPu commented Mar 23, 2023

尝试过并不行,问题还是一样 ,我的修改是 在 /etc/hosts 文件中 127.0.0.1 行 以及 ::1 行,这两行后面添加了 " $hostname" 会不会是因为 hostname 中 存在 "-"的问题?

@bwcx-jzy
Copy link
Member

这块需要你根据环境来判断,还有可以在搜索引擎看看相关问题。因为 agent 本质就是一个 jar ,理论上不会存在无法启动的问题

@GengPu
Copy link
Author

GengPu commented Mar 23, 2023

是啊,我也很好奇,所以过来问问需要怀疑几个地方。我目前怀疑的是 jvm 版本环境 基础环境 ,我今天中午在我自己的 linux 环境(jdk 17 eclipse 版本 amd64位的debain系统)上也没启动或者是一些基础配置不对。或许我应该拿Oracle的jdk试试?

@bwcx-jzy
Copy link
Member

bwcx-jzy commented Apr 4, 2023

经实测可能是确定了,但是没有输出日志

@bwcx-jzy
Copy link
Member

bwcx-jzy commented Apr 4, 2023

可以看看脚本里面的,看看加这一段

echo "Jpom server starting:$pid"
	pid=$(getPid)
	if [ "$pid" == "" ]; then
		echo "Please check the $Log for failure details"
		errorExit "Jpom server Startup failed"
	fi
	tail -fn 0 --pid="$pid" "$server_log"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants