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

lts admin不定期挂掉的解决方案 #389

Open
lusong1986 opened this issue Nov 1, 2017 · 4 comments
Open

lts admin不定期挂掉的解决方案 #389

lusong1986 opened this issue Nov 1, 2017 · 4 comments

Comments

@lusong1986
Copy link
Contributor

lts admin如果长时间不使用,会隔一段时间挂掉。
原因是admin使用内嵌的jetty启动的,jetty会把lts admin的war包解压到根目录下的/tmp,而这个tmp目录如果长时间没有更新,会被cron任务定时删除的,删除后就会出现页面打开只有文字,js、css都加载不出来。

解决方案:
修改lts-admin.sh脚本,其中启动那段改为如下的,新增了一个-D参数,保证war解压到这个目录,不会被删掉。
nohup "$JAVA" -Djava.io.tmpdir=/home/work/tmp -cp "$CLASSPATH" $JVMFLAGS $LTS_MAIN "$CONF_HOME" > "$_LTS_DAEMON_OUT" 2>&1 < /dev/null &

@wangxuekai
Copy link

屌了,松老师

@jedyang
Copy link

jedyang commented Nov 21, 2017

感谢感谢

@ddatsh
Copy link

ddatsh commented Dec 29, 2017

屌爆了,之前公司没仔细看这个,经常挂

@SDingBaMan
Copy link

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

5 participants