楼主: maskwy

[讨论] jboss莫名其妙自动关闭

[复制链接]
论坛徽章:
63
水瓶座
日期:2015-12-21 12:42:05马上有车
日期:2014-02-20 16:34:05马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11雪铁龙
日期:2013-12-10 11:21:27
11#
发表于 2011-5-16 10:28 | 只看该作者
在jboss官方的wiki又发现了一个信息,你可以在你的java启动参数前加一个-Xrs以减少到JVM的signals
-Xrs Reduces use of operating-system signals by the Java virtual machine (JVM). This option is available beginning with J2SE 1.3.1. In J2SE 1.3.0, the Shutdown Hooks facility was added to allow orderly shutdown of a Java application. The intent was to allow user cleanup code (such as closing database connections) to run at shutdown, even if the JVM terminates abruptly. You can reference the following url, that gives you a table of the operating systems and the associated interrupts that Xrs will stop the vm from listening to. Revelations on Java signal handling



Sun's JVM catches signals to implement shutdown hooks for abnormal JVM termination. The JVM uses SIGHUP, SIGINT, and SIGTERM to initiate the running of shutdown hooks.



The JVM uses a similar mechanism to implement the pre-1.2 feature of dumping thread stacks for debugging purposes. Sun's JVM uses SIGQUIT to perform thread dumps.
Applications embedding the JVM frequently need to trap signals like SIGINT or SIGTERM, which can lead to interference with the JVM's own signal handlers. To address this issue, the -Xrs command-line option has been added beginning in J2SE 1.3.1. When -Xrs is used on Sun's JVM, the signal masks for SIGINT, SIGTERM, SIGHUP, and SIGQUIT are not changed by the JVM, and signal handlers for these signals are not installed.

http://community.jboss.org/wiki/MysteriousShutdowns

使用道具 举报

回复
论坛徽章:
0
12#
 楼主| 发表于 2011-5-16 11:54 | 只看该作者

回复 #7 gangyaocn 的帖子

nohup 启动 关键是它隔一天(两天一次)就凌晨自动shutdown 关键我不知道它是怎么触发它shutdown的

crontabs\admin
#ident        "@(#)adm        1.5        92/07/14 SMI"        /* SVr4.0 1.2        */
#
# The adm crontab file should contain startup of performance collection if
# the profiling and performance feature has been installed.
#

crontabs\root
#ident        "@(#)root        1.21        04/03/23 SMI"
#
# The root crontab should be used to perform accounting data collection.
#
#
10 3 * * * /usr/sbin/logadm
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
#10 3 * * * /usr/lib/krb5/kprop_script ___slave_kdcs___


crontabs\lp
#ident        "@(#)lp        1.11        01/11/05 SMI"
#
#  At 03:13am on Sundays:
#  Move a weeks worth of 'requests' to 'requests.1'.
#  If there was a 'requests.1' move it to 'requests.2'.
#  If there was a 'requests.2' then it is lost.
#
13 3 * * 0 cd /var/lp/logs; if [ -f requests ]; then if [ -f requests.1 ]; then /bin/mv requests.1 requests.2; fi; /usr/bin/cp requests requests.1; >requests; fi
#
#  Rotating of the "lpsched" log files is handled by logadm(1M).
#


crontabs\sys
#ident        "@(#)sys        1.5        92/07/14 SMI"        /* SVr4.0 1.2        */
#
# The sys crontab should be used to do performance collection. See cron
# and performance manual pages for details on startup.
#
# 0 * * * 0-6 /usr/lib/sa/sa1
# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
# 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A

crontabs\uucp
#
#ident        "@(#)uudemon.crontab        1.5        97/12/09 SMI"
#
# This crontab is provided as a sample. For systems
# running UUCP edit the time schedule to suit, uncomment
# the following lines, and use crontab(1) to activate the
# new schedule.
#
#48 8,12,16 * * * /usr/lib/uucp/uudemon.admin
#20 3 * * * /usr/lib/uucp/uudemon.cleanup
#0 * * * * /usr/lib/uucp/uudemon.poll
#11,41 * * * * /usr/lib/uucp/uudemon.hour

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
13#
发表于 2011-5-16 16:11 | 只看该作者
大苹果牛逼

使用道具 举报

回复
论坛徽章:
0
14#
 楼主| 发表于 2011-5-19 10:41 | 只看该作者
大苹果 to be continue……

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
15#
发表于 2011-5-19 23:45 | 只看该作者
呼唤大苹果

使用道具 举报

回复
论坛徽章:
63
水瓶座
日期:2015-12-21 12:42:05马上有车
日期:2014-02-20 16:34:05马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11雪铁龙
日期:2013-12-10 11:21:27
16#
发表于 2011-5-21 02:58 | 只看该作者
老大,你贴的crontabs我看不懂啊?不知道你的系统是不是有计划任务会干扰JBOSS自动CLOSE.
还有你的server日志级别是否提高?有没有详细的日志提供分析?

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
17#
发表于 2011-5-21 12:44 | 只看该作者
大苹果神人..

使用道具 举报

回复
论坛徽章:
0
18#
发表于 2011-6-4 13:56 | 只看该作者
try to check system log, it's possible be killed by OS memory management tools because high memory usage.

使用道具 举报

回复
论坛徽章:
63
水瓶座
日期:2015-12-21 12:42:05马上有车
日期:2014-02-20 16:34:05马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11雪铁龙
日期:2013-12-10 11:21:27
19#
发表于 2011-6-13 18:03 | 只看该作者
lz问题解决没?啥原因?难道是资源受限?

使用道具 举报

回复
论坛徽章:
102
现任管理团队成员
日期:2011-05-07 01:45:08ITPUB十周年纪念徽章
日期:2012-11-26 16:33:25慢羊羊
日期:2015-03-04 14:19:442015年新春福章
日期:2015-03-06 11:57:312016猴年福章
日期:2016-02-23 09:58:34
20#
发表于 2011-6-22 00:09 | 只看该作者
查查你的应用是不是与其他第三方应用进行了集成?
如果这些第三方的应用出了啥问题当机了
也可能会引起你的jboss当机也说不定

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表