[SOLVED] Tomcat server getting shutdown frequently
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
HI
i had installed tomcat server its works fine but its getting stop frequently.i had check out logs it doesint give anythings about error about shutdown ..can someone help me out how can i resolve tomcat stopping issue
i had chkconfig --level 345 tomcat on ..even server restart chkconfig level not staying off
HI
i had installed tomcat server its works fine but its getting stop frequently.i had check out logs it doesint give anythings about error about shutdown ..can someone help me out how can i resolve tomcat stopping issue
i had chkconfig --level 345 tomcat on ..even server restart chkconfig level not staying off
How can we help you? You don't give us any details...version/distro of Linux? Tomcat? ANY log messages (not just syslog, have you checked both the apache and tomcat logs?). The chkconfig will only set a service to start at boot time or when the server enters that runlevel. It won't automatically restart a process.
If the only thing crashing is tomcat, and you can restart tomcat manually after a crash, then there has to be a log message SOMEWHERE that tells you why it died.
Tomcat memory leak error while lauching web application
[root@xx~]# tail -f /tomcat/apache-tomcat-6.0.26/logs/catalina.out
2012-Jan-20 13:33:42:186(MultiDaoSupport.java:getJdbcTemplate:250)-getJdbcTemplate() - start
2012-Jan-20 13:33:42:187(MultiDaoSupport.java:getJdbcTemplate:252)-getJdbcTemplate() - end
2012-Jan-20 13:33:42:188(MultiDaoSupport.java:initTemplateConfig:68)-initTemplateConfig() - end
2012-Jan-20 13:33:42:189(MultiDaoSupport.java:setJdbcTemplate:242)-setJdbcTemplate(JdbcTemplate) - end
2012-Jan-20 13:33:42:189(MultiDaoSupport.java:setJpaTemplate:167)-setJpaTemplate(JpaTemplate) - start
2012-Jan-20 13:33:42:189(MultiDaoSupport.java:setJpaTemplate:171)-setJpaTemplate(JpaTemplate) - end
2012-Jan-20 13:33:42:190(MultiDaoSupport.java:checkDaoConfig:267)-checkDaoConfig() - start
2012-Jan-20 13:33:42:190(MultiDaoSupport.java:checkDaoConfig:273)-checkDaoConfig() - end
2012-Jan-20 13:33:42:664(FlightServiceInvoker.java:init:81)-init starts
2012-Jan-20 13:33:42:958(FlightServiceInvoker.java:init:95)-init ends
2012-Jan-20 13:33:48:592(ContextLoader.java:initWebApplicationContext:215)-Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taxInterceptor' defined in ServletContext resource [/WEB-INF/ctx/common.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolve r.java:254)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(Abst ractAutowireCapableBeanFactory.java:835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:2 64)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.ja va:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java: 45)
at org.performics.util.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:28)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:87)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolve r.java:248)
... 42 more
Caused by: java.lang.NumberFormatException: For input string: "0,1000"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
at java.lang.Double.valueOf(Double.java:475)
at org.performics.business.mis.interceptors.common.TaxInterceptor.<clinit>(TaxInterceptor.java:55)
... 49 more
2012-Jan-20 13:33:48:594(MasterDataApplicationScopeListener.java:contextInitialized:79)-contextInitialized(ServletContextEvent) - start 20.01.2012 13:33:48 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
20.01.2012 13:33:48 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [] startup failed due to previous errors
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SCHWERWIEGEND: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
SCHWERWIEGEND: A web application appears to have started a TimerThread named [Timer-0] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-10] but has failed to stop it. This is very likely to create a memory leak.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak.
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
20.01.2012 13:33:49 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
20.01.2012 13:33:49 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
20.01.2012 13:33:49 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory cms
log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
20.01.2012 13:33:49 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
20.01.2012 13:33:49 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8081
20.01.2012 13:33:49 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/12 config=null
20.01.2012 13:33:49 org.apache.catalina.startup.Catalina start
INFO: Server startup in 14104 ms
Hi
Frequently im facing out problem of tomcat service getting shut down automatically .
Ditro os:centos 5.4
Tomcat version :6.0.26
chkconfig level i had made made on for 345 level but still the tomcat breaks up frequently .i never getting out any error about the shutdown in tomcat logs.
Hi
Frequently im facing out problem of tomcat service getting shut down automatically .
Ditro os:centos 5.4
Tomcat version :6.0.26
chkconfig level i had made made on for 345 level but still the tomcat breaks up frequently .i never getting out any error about the shutdown in tomcat logs.
Ok...did you read the reply above???
Unless you can identify WHAT is causing the crash, there's no way of anyone being able to help you. There is some application/script/SOMETHING, somewhere, causing the problem(s). Identify what, then debug it...can't get much simpler than that. All you've told us is your tomcat crashes...which gives us NOTHING to go on.
[root@xx~]# tail -f /tomcat/apache-tomcat-6.0.26/logs/catalina.out
2012-Jan-20 13:33:48:592(ContextLoader.java:initWebApplicationContext:215)-Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taxInterceptor' defined in ServletContext resource [/WEB-INF/ctx/common.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
Caused by: java.lang.ExceptionInInitializerError
Caused by: java.lang.NumberFormatException: For input string: "0,1000"
SCHWERWIEGEND: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
SCHWERWIEGEND: A web application appears to have started a TimerThread named [Timer-0] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled.
20.01.2012 13:33:48 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
Ok...you posted a chunk of your tomcat logs, and hijacked someone elses thread with a question too. I'll take it that the version/distro of Linux and the version of tomcat are what you hijacked that other thread with.
However, you STILL don't tell us WHAT web application is causing this, who wrote it, etc. Looks like it was poorly written, and tells you that the JDBC driver wasn't unregistered when the app stopped. Whoever wrote the app probably has more work to do on it...why don't you contact the developer? Also, again...have you bothered to check Google for these errors??? Amazingly, there appears to be over 5,000 hits, along with solutions....
@jayakumar01: please (and I mean please) don't add confusion by replying in place of someone from your team or don't post in the same thread with two different accounts whatever be the case. In the meanwhile I've merged two strictly related threads of yours into this one, but please (and I repeat please) refrain from this behaviour in the future. Nuff' said!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.