Does JBoss automatically increase every day of the log suddenly do not write?

Source: Internet
Author: User
Tags jboss

The first step is to check if disk space is insufficient, and the second step is to check if the Jboss-log4j.xml configuration information in JBoss is changed

This is the detailed configuration information for jboss-log4j.xml inside JBoss: http://my.oschina.net/liangbo/blog/215593

is not, then the information obtained by flipping through the last log is as follows:

2015-05-19 12:55:53,293 INFO [Org.jboss.bootstrap.microcontainer.ServerImpl] (JBoss Shutdown Hook) Runtime Shutdown Hook called, forcehalt:true2015-05-19 12:55:53,293 INFO [Org.apache.coyote.http11.Http11Protocol] (JBoss Shutdown Hook ) pausing Coyote http/1.1 on http-0.0.0.0-80882015-05-19 12:55:53,309 INFO [Org.apache.coyote.http11.Http11Protocol] ( JBoss Shutdown Hook) stopping Coyote http/1.1 on http-0.0.0.0-80882015-05-19 12:55:53,309 INFO [org.apache.coyote.ajp.Aj Pprotocol] (JBoss Shutdown Hook) pausing Coyote ajp/1.3 on ajp-127.0.0.1-80092015-05-19 12:55:53,309 INFO [Org.apache.coy Ote.ajp.AjpProtocol] (JBoss Shutdown Hook) stopping Coyote ajp/1.3 on ajp-127.0.0.1-80092015-05-19 12:55:53,324 INFO [org . Jboss.jms.server.connectionfactory.ConnectionFactory] (JBoss Shutdown Hook) [email protected] undeployed2015-05-19 12:55:53,324 INFO [org.jboss.jms.server.connectionfactory.ConnectionFactory] (JBoss Shutdown Hook) [email protected] undeployed2015-05-19 12:55:53,324 INFO [Org.jboss.jms.server.connectionfactory.ConnectionFactory] (JBoss Shutdown Hook) [email protected] undeployed2015-05-19 12:55:53,340 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (JBoss Shutdown Hook) Undeploy, ctxpath=/web-console2015-05-19 12:55:53,355 INFO [Org.jboss.jms.server.destination.QueueService] ( JBoss Shutdown Hook) queue[/queue/expiryqueue] stopped2015-05-19 12:55:53,355 INFO [ Org.jboss.jms.server.destination.QueueService] (JBoss Shutdown Hook) QUEUE[/QUEUE/DLQ] stopped2015-05-19 12:55:53,371 INFO [Org.jboss.ejb3.session.SessionSpecContainer] (JBoss Shutdown Hook) stopping jboss.j2ee:jar= profileservice-secured.jar,name=secureprofileservice,service=ejb32015-05-19 12:55:53,434 INFO [ Org.jboss.ejb3.EJBContainer] (JBoss Shutdown Hook) STOPPED EJB: Org.jboss.profileservice.ejb.SecureProfileServiceBean ejbname:secureprofileservice2015-05-19 12:55:53,496 INFO [ Org.jboss.ejb3.session.SessionSpecContainer] (JBoss Shutdown Hook) stopping JBOSS.J2EE:jar=profileservice-secured.jar,name=securedeploymentmanager,service=ejb32015-05-19 12:55:53,527 INFO [ Org.jboss.ejb3.EJBContainer] (JBoss Shutdown Hook) STOPPED EJB:org.jboss.profileservice.ejb.SecureDeploymentManager ejbname:securedeploymentmanager2015-05-19 12:55:53,605 INFO [Org.jboss.ejb3.session.SessionSpecContainer] (JBoss Shutdown Hook) Stopping jboss.j2ee:jar=profileservice-secured.jar,name=securemanagementview,service= ejb32015-05-19 12:55:53,605 INFO [Org.jboss.ejb3.EJBContainer] (JBoss Shutdown Hook) STOPPED EJB: Org.jboss.profileservice.ejb.SecureManagementView ejbname:securemanagementview2015-05-19 12:55:53,652 INFO [ Org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (JBoss Shutdown Hook) unbound ConnectionManager ' Jboss.jca:service=connectionfactorybinding,name=jmsxa ' from JNDI name ' Java:jmsxa ' 2015-05-19 12:55:53,746 INFO [Org.jboss.jms.server.ServerPeer] (JBoss Shutdown Hook) JMS Serverpeer[0] Stopped2015-05-19 12:55:53,762 INFO [Org.jboss.web. Tomcat.service.deployers.TomcatDeployment] (JBoss Shutdown Hook) undeploy, ctxpath=/invoker2015-05-19 12:55:53,793 INFO [Org.jboss.web.tomcat.service.deployers.TomcatDeployment] (JBoss Shutdown Hook) Undeploy, ctxpath=/ jbossws2015-05-19 12:55:53,809 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (JBoss Shutdown Hook) Undeploy, ctxpath=/admin-console2015-05-19 12:55:53,809 INFO [ Org.jboss.web.tomcat.service.deployers.TomcatDeployment] (JBoss Shutdown Hook) Undeploy, ctxpath=/2015-05-19 12:55:53,809 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (JBoss Shutdown Hook) Undeploy, ctxpath=/ egret-server2015-05-19 12:55:53,840 INFO [org.apache.catalina.core.containerbase.[ Jboss.web]. [localhost]. [/egret-server]] (JBoss Shutdown Hook) Closing Spring Root webapplicationcontext2015-05-19 12:55:53,840 INFO [ Org.springframework.web.context.support.XmlWebApplicationContext] (JBoss Shutdown Hook) Closing Root Webapplicationcontext:startup Date [Tue May 19 12:50:CST 2015]; Root of context hierarchy2015-05-19 12:55:53,918 INFO [ Org.springframework.beans.factory.support.DefaultListableBeanFactory] (JBoss Shutdown Hook) destroying singletons in org.s[email protected]13cfb7a:defining Beans [Reader,sessionfactory, Org.springframework.context.annotation.internalConfigurationAnnotationProcessor, Org.springframework.context.annotation.internalAutowiredAnnotationProcessor, Org.springframework.context.annotation.internalRequiredAnnotationProcessor, Org.springframework.context.annotation.internalCommonAnnotationProcessor, Org.springframework.context.annotation.internalpersistenceannotationprocessor,transactionmanager,txadvice, Org.springframework.aop.config.internalautoproxycreator,pointcutmethod, Org.springframework.aop.support.defaultbeanfactorypointcutadvisor#0,datasource,jdbctemplate,newtransmanager, Basedao,vitalsigndao,docformtemplatedao,docpatientformdao,inoutrecorddao,datadictdao,docmenudao,docreportdao, Printlogdao,nursingcheckedandevaluateddao, Wardreportdao,vitalsignmanager,docformtemplatemanager,docpatientformmanager,inoutrecordmanager, Datadictmanager,docmenumanager,specialdatadictmanager,docreportmanager,printlogmanager,hisinterface, Nursingcheckedandevaluatedmanager,weekschemamanager,zhikongerrorevaluatemanager, Basicoperationarrangementmanager,learncheckwarddiscussmanager,wardreportmanager,inpaccidentmanager]; Root of Factory hierarchy2015-05-19 12:55:53,918 INFO [ Org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean] (JBoss Shutdown Hook) Closing Hibernate sessionfactory2015-05-19 12:55:53,918 INFO [Org.hibernate.impl.SessionFactoryImpl] (JBoss Shutdown Hook) closing2015-05-19 12:55:53,918 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (JBoss Shutdown Hook) Undeploy, ctxpath=/jmx-console2015-05-19 12:55:53,934 INFO [Org.apache.catalina.core.StandardService] (JBoss Shutdown Hook) Stopping service jboss.web2015-05-19 12:55:54,012 INFO [Org.jboss.mail.MailService] (JBoss Shutdown HoOK) Mail service ' Java:/mail ' removed from jndi2015-05-19 12:55:54,090 INFO [ Org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (JBoss Shutdown Hook) unbound ConnectionManager ' Jboss.jca:service=datasourcebinding,name=wuhanehisds ' from JNDI name ' Java:wuhanehisds ' 2015-05-19 12:55:54,090 INFO [Org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (JBoss Shutdown Hook) Unbound ConnectionManager ' Jboss.jca:service=datasourcebinding,name=wuhanhisds ' from JNDI name ' Java:WuHanHisDS ' 2015-05-19 12:55:54,090 INFO [Org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (JBoss Shutdown Hook) Unbound ConnectionManager ' Jboss.jca:service=datasourcebinding,name=defaultds ' from JNDI name ' Java:d Efaultds ' 2015-05-19 12:55:54,090 INFO [Org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] ( JBoss Shutdown Hook) unbound ConnectionManager ' Jboss.jca:service=datasourcebinding,name=wuhanpacsds ' from JNDI name ' Java:wuhanpacsds ' 2015-05-1912:55:54,105 INFO [Org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (JBoss Shutdown Hook) Unbound ConnectionManager ' Jboss.jca:service=datasourcebinding,name=wuhandhisds ' from JNDI name ' Java:WuHanDHisDS ' 2015-05-19 12:55:54,402 INFO [Org.quartz.core.QuartzScheduler] (JBoss Shutdown Hook) Scheduler Defaultquartzscheduler_ $_non_clustered shutting down.2015-05-19 12:55:54,402 INFO [Org.quartz.core.QuartzScheduler] (JBoss Shutdown Hook) Scheduler defaultquartzscheduler_$_non_clustered paused.2015-05-19 12:55:54,418 INFO [ Org.quartz.core.QuartzScheduler] (JBoss Shutdown Hook) Scheduler defaultquartzscheduler_$_non_clustered Shutdown complete.2015-05-19 12:55:54,684 INFO [Com.arjuna.ats.jbossatx.jta.TransactionManagerService] (JBoss Shutdown Hook) Stopping transaction recovery manager2015-05-19 12:55:54,684 INFO [ Com.arjuna.ats.jbossatx.jta.TransactionManagerService] (JBoss Shutdown Hook) destroying transactionmanagerservice2015-05-19 12:55:54,965 INFO [Org.jboss.Jdbc. Hypersonicdatabase] (JBoss Shutdown Hook) Database Standalone closed clean2015-05-19 12:55:55,652 INFO [org.jboss.wsf.fr Amework.management.DefaultEndpointRegistry] (JBoss Shutdown Hook) remove:jboss.ws:context=egret-server,endpoint= ehiswsservlet2015-05-19 12:55:55,652 INFO [Org.jboss.wsf.framework.management.DefaultEndpointRegistry] (JBoss Shutdown Hook) Remove:jboss.ws:context=egret-server,endpoint=ehisvitalsignwsservlet
I found out it was dead.

Search by Baidu runtime shutdown Hook called, Forcehalt:true, get the following results:

The following content is from: http://blog.knowsky.com/264489.htm

There have been several recent anomalies in JBoss 's irregular auto-shutdown, with history commands and last login information showing no signs of manipulation.

Later, some of the information was given by theJBoss official forum:
1.JBoss itself does not have a mechanism to automatically shutdown;
2.JBoss can be closed via the Web console, but we have removed the relevant packages;
3.JBoss may accept CTRL + C or non-background running session interrupt signal to execute shutdown.

Later I found our situation and the 3rd very similar:

From the log you can see that JBoss received a shutdown request at 06:02:04.
2011-10-27 06:02:04, 086 INFO [org.jboss. Bootstrap.microcontainer.ServerImpl] (jboss Shutdown hook) Runtime Shutdown Hook called, forcehalt:true
2011-10-27 06:02:05,089 INFO [Org.apache.coyote.http11.Http11Protocol] (JBoss Shutdown Hook) Pausing coyote http/1.1 on http-0.0.0.0-80
2011-10-27 06:02:05,090 INFO [Org.apache.coyote.http11.Http11Protocol] (JBoss Shutdown Hook) Stopping Coyote http/1.1 on http-0.0.0.0-80

And Jack exits the terminal at this time:
Jack pts/0 125.69.77.99 Thu Oct 05:20- 06:02 (00:41)

To view the history record, the last time that JBoss was started was done at 05:49:20 by executing the Restart_jboss. Sh script:
2011-10-27_05:49:20./restart_jboss. Sh

It then finds the Restart_jboss. Sh script in Jack's home directory with the Find command.

Continue to review the script content, found that after a series of operations, finally performed the service JBoss start and tail-f./log/server.log, I suspect that Jack's abnormal exit led to the JBoss And then tested on the virtual machine.
As it turns out, if you close the client window directly after executing the script, instead of exiting gracefully with exit,JBoss will automatically execute the shutdown and the situation is very easy to reproduce.

However, according to the rationale, we are using the JBoss official own script, should be with other software such as Apache, such as the script to let the process of the future service to run the way, should not receive non-background running session interrupt signal. But after repeated testing, it proves that it is not as trustworthy as we thought.

Therefore, we would better add nohup to ensure that JBoss does not receive the interrupt signal from the session: Nohup service JBoss start.

Remarks, follow-up progress, in addition!

Related citation: http://dikar.iteye.com/blog/659444

Does JBoss automatically increase every day of the log suddenly do not write?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.