tomcat无故死掉,请各位大哥帮忙

问题描述

小弟新接手了一个系统,unix+tomcat5.5+mysqltomcat5启动后3小时左右总会无故死掉,请各位javaeyer帮忙看下,有思路的话,我可以提供详细log环境变量:# ./shutdown.shUsing CATALINA_BASE: /opt/tomcat5Using CATALINA_HOME: /opt/tomcat5Using CATALINA_TMPDIR: /opt/tomcat5/tempUsing JRE_HOME: /usr/javaUsing CLASSPATH: /opt/tomcat5/bin/bootstrap.jar# ./startup.shUsing CATALINA_BASE: /opt/tomcat5Using CATALINA_HOME: /opt/tomcat5Using CATALINA_TMPDIR: /opt/tomcat5/tempUsing JRE_HOME: /usr/javaUsing CLASSPATH: /opt/tomcat5/bin/bootstrap.jar关闭log:Oct 21, 2010 9:49:56 AM org.apache.coyote.http11.Http11BaseProtocol pauseINFO: Pausing Coyote HTTP/1.1 on http-8080Oct 21, 2010 9:49:57 AM org.apache.catalina.core.StandardService stopINFO: Stopping service Catalina2010-10-21 09:49:57,703 - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ReportManager] INFO - Closing Spring root WebApplicationContext2010-10-21 09:49:57,704 - org.springframework.web.context.support.XmlWebApplicationContext INFO - Closing org.springframework.web.context.support.XmlWebApplicationContext@5a3923: display name [Root WebApplicationContext]; startup date [Thu Oct 21 08:52:54 CST 2010]; root of context hierarchy2010-10-21 09:49:57,706 - org.quartz.core.QuartzScheduler INFO - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.2010-10-21 09:49:57,707 - org.springframework.beans.factory.support.DefaultListableBeanFactory INFO - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@fe315d: defining beans [quartzManager,autoGenerateFileJob,DoxFileOut,autoAccuracyRateJob,autoAccuracyRateOut,autoWorkLoadJob,autoWorkLoadOut,autoResourcesWorkLoadJob,autoResourcesWorkLoadOut,resourcePipeJob,TrafficResourcePipeTrigger,ResourceOpticalCableJob,TrafficResourceOpticalCableTrigger,ResourceFiberJob,TrafficResourceFiberTrigger,ResourceCircuitJob,TrafficResourceCircuitTrigger,ResourceCircuitClassJob,TrafficResourceCircuitClassTrigger,ResourceNetUsageJob,TrafficResourceNetUsageTrigger,ResourceVendorJob,TrafficResourceVendorTrigger,dataSource4tnms,multiDataSource,mysqlSessionFactory,transactionManager,transactionInterceptor,org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator#0,InformixBaseService,mysqlBaseService,com.boco.common.util.MyApplicationContextUtil#0,baseAction,userLogger,webUtils,userDao,systemDao,reportCommonDao,reportCommonDao_Local,reportCommonGroupDao,actionManageDao,report4MulitRecordDao,report4MulitRecordDao_Local,linkReportDao_Local,reportCommonService,report4MulitRecordService,/loginAction,/systemAction,/userLogAction,/regionManageAction,/userManageAction,/menuManageAction,/privilegeManageAction,/reportCommonAction,/exportExcelAction,/report4MulitRecordAction,/reportCommonActionFiber,/ReportCommonActionPipeRes,reportpiperesource,autoResourcePipeReport,autoResourceOpticalCableReport,autoResourceFiberReport,autoResourceCircuitReport,autoResourceCircuitClassReport,autoResourceNetUsageReport,autoResourceVendorReport,autoResource,auto<script type="text/javascript" src="http://www.iteye.com/javascripts/tinymce/themes/advanced/langs/zh.js"></script><script type="text/javascript" src="http://www.iteye.com/javascripts/tinymce/plugins/javaeye/langs/zh.js"></script>Factory,autoMonthlyFactory,autoTrafficQualityMonthlyBaseDataReport,autoTrafficQualityMonthlyNetFaultReport,autoTrafficQualityMonthlyFaultEffectReport,dataSource4nmosdb,alarmReportDao,alarmReportDao_Local,alarmReportService,/alarmReportAction,quartzJob,jobtask,doTime,startQuertz,statementManagementBean]; root of factory hierarchy2010-10-21 09:49:57,722 - org.springframework.scheduling.quartz.SchedulerFactoryBean INFO - Shutting down Quartz Scheduler2010-10-21 09:49:57,722 - org.quartz.core.QuartzScheduler INFO - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.2010-10-21 09:49:57,723 - org.quartz.core.QuartzScheduler INFO - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.2010-10-21 09:49:57,734 - org.quartz.core.QuartzScheduler INFO - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.2010-10-21 09:49:57,740 - org.springframework.orm.hibernate3.LocalSessionFactoryBean INFO - Closing Hibernate SessionFactory2010-10-21 09:49:57,741 - org.hibernate.impl.SessionFactoryImpl INFO - closing2010-10-21 09:49:57,764 - org.springframework.scheduling.quartz.SchedulerFactoryBean INFO - Shutting down Quartz Schedulerlog4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.Oct 21, 2010 9:49:59 AM org.apache.coyote.http11.Http11BaseProtocol destroyINFO: Stopping Coyote HTTP/1.1 on http-8080Oct 21, 2010 9:49:59 AM org.apache.catalina.core.AprLifecycleListener lifecycleEventINFO: Failed shutdown of Apache Portable Runtime启动log:Oct 21, 2010 9:51:35 AM org.apache.catalina.core.AprLifecycleListener lifecycleEventINFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jre/lib/sparc/server:/usr/java/jre/lib/sparc:/usr/java/jre/../lib/sparc:/usr/jdk/packages/lib/sparc:/lib:/usr/libOct 21, 2010 9:51:35 AM org.apache.coyote.http11.Http11BaseProtocol initINFO: Initializing Coyote HTTP/1.1 on http-8080Oct 21, 2010 9:51:35 AM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 2750 msOct 21, 2010 9:51:35 AM org.apache.catalina.core.StandardService startINFO: Starting service CatalinaOct 21, 2010 9:51:35 AM org.apache.catalina.core.StandardEngine startINFO: Starting Servlet Engine: Apache Tomcat/5.5.28Oct 21, 2010 9:51:36 AM org.apache.catalina.core.StandardHost startINFO: XML validation disabledOct 21, 2010 9:51:38 AM org.apache.catalina.startup.HostConfig deployWARINFO: Deploying web application archive ReportManager.warOct 21, 2010 9:51:39 AM org.apache.catalina.loader.WebappClassLoader validateJarFileINFO: validateJarFile(/opt/tomcat5/webapps/ReportManager/WEB-INF/lib/javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classOct 21, 2010 9:51:39 AM org.apache.catalina.loader.WebappClassLoader validateJarFileINFO: validateJarFile(/opt/tomcat5/webapps/ReportManager/WEB-INF/lib/javax.servlet.jsp.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class2010-10-21 09:51:40,407 - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ReportManager] INFO - Initializing Spring root WebApplicationContext2010-10-21 09:51:40,414 - org.springframework.web.context.ContextLoader INFO - Root WebApplicationContext: initialization started2010-10-21 09:51:40,599 - org.springframework.web.context.support.XmlWebApplicationContext INFO - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@676e3f: display name [Root WebApplicationContext]; startup date [Thu Oct 21 09:51:40 CST 2010]; root of context hierarchy2010-10-21 09:52:02,531 - org.quartz.core.QuartzScheduler INFO - JobFactory set to: org.springframework.scheduling.quartz.AdaptableJobFactory@192563a2010-10-21 09:52:02,535 - org.springframework.scheduling.quartz.SchedulerFactoryBean INFO - Starting Quartz Scheduler now2010-10-21 09:52:02,536 - org.quartz.core.QuartzScheduler INFO - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.2010-10-21 09:52:02,537 - org.springframework.web.context.ContextLoader INFO - Root WebApplicationContext: initialization completed in 22122 ms2010-10-21 09:52:02,541 - com.boco.framework.common.AppListener INFO - ReportManager started!Oct 21, 2010 9:52:04 AM org.apache.catalina.core.StandardContext startSEVERE: Error filterStartOct 21, 2010 9:52:04 AM org.apache.catalina.core.StandardContext startSEVERE: Context [/servlets-examples] startup failed due to previous errorsOct 21, 2010 9:52:05 AM org.apache.coyote.http11.Http11BaseProtocol startINFO: Starting Coyote HTTP/1.1 on http-8080Oct 21, 2010 9:52:05 AM org.apache.jk.common.ChannelSocket initINFO: JK: ajp13 listening on /0.0.0.0:8009Oct 21, 2010 9:52:05 AM org.apache.jk.server.JkMain startINFO: Jk running ID=0 time=0/93 config=nullOct 21, 2010 9:52:06 AM org.apache.catalina.storeconfig.StoreLoader loadINFO: Find registry server-registry.xml at classpath resourceOct 21, 2010 9:52:06 AM org.apache.catalina.startup.Catalina startINFO: Server startup in 30837 ms急...... 问题补充:<div class="quote_title">dwbin 写道</div><div class="quote_div">这些日志没用啊,估计内存爆掉了吧,直接把jvm给down了,看看logs目录下面有没有别的东西?</div><br />内存正常,不超过1.2%

解决方案

你看一下tomcat挂掉之前的后台日志(不是你提供的log,是命令行中给的异常信息),有没有out of memory异常,同时看一下tomcat挂掉后,访问前台页面是什么结果,能访问但出错还是没有反应。如果是out of memory,可以增加tomcat启动参数,在%tomcat%/bin/catalina.bat文件中,在rem Guess CATALINA_HOME if not defined后面增加"set JAVA_OPTS=-Xms256m -Xmx512m -XX:+PerfBypassFileSystemCheck”,提升tomcat可使用的内存大小。
解决方案二:
之前我也遇到过同样的问题,可能和系统有关吧 尝试换下系统或者从做下系统看看呢
解决方案三:
如果是out of memory,tomcat 6也会有同样的问题,你也可以用上面的方法修改:)
解决方案四:
之前遇到过类似的问题,tomcat5.5好像是存在bug,后来直接更换了tomcat6.0,这个问题就不存在了。建议更换版本试试。
解决方案五:
看你的启动日子能看出什么呢,我最近用了个TOMACAT,过段时间直接CORE掉了,内存用完了吧,在bin目录里产生了几个core文件,用工具分析了,原来是堆栈满了。你可以看看有没有core掉。
解决方案六:
这些日志没用啊,估计内存爆掉了吧,直接把jvm给down了,看看logs目录下面有没有别的东西?

时间: 2024-11-17 10:53:56

tomcat无故死掉,请各位大哥帮忙的相关文章

tomcat 自动死掉,有时候运行一天,有时候两三天

问题描述 tomcat自动死掉,有时候运行一天,有时候两三天,反正不稳定,查看catalina日志内容如下,那位高手帮忙看看.是不是tomcat内存不足的原因?2015-2-42:37:01org.apache.catalina.session.StandardManagerstop严重:Exceptionunloadingsession2015-2-42:37:01org.apache.catalina.core.ApplicationContextlog信息:ClosingSpringroo

解决tomcat频繁死掉的问题

解决|问题 某天在服务器上的网页打不开了,频繁报以下错误. 2007-3-18 1:08:26 org.apache.tomcat.util.threads.ThreadPool logFull严重: All threads (150) are currently busy, waiting. Increase maxThreads (150) or check the servlet status 在网上找了些回答,以下是我觉得正确的回答:1.我想你的部分资源没有释放,积压卡死的2.连接池问题

linux下tomcat自动死掉

问题描述 抛错:严重:Exceptionunloadingsessionstopersistentstoragejava.io.FileNotFoundException:/opt/jx/tomcat7/work/Catalina/localhost/docs/SESSIONS.ser(Toomanyopenfiles)估计是使用这个线程的原因:classsendThreadextendsThread{//成员变量(私有)//构造函数(共有,无返回值)@SuppressWarnings("unc

tomcat 老是自动死掉

问题描述 tomcat老是自动死掉spring连接配置:<beanid="dataSource"class="org.apache.commons.dbcp.BasicDataSource"destroy-method="close"p:driverClassName="${db.drivers}"p:url="${db.url}"p:username="${db.user}"p:

websphere-WebSphere 部署,选择文件点击下一步,就死掉了,求大神帮忙,实在没招了

问题描述 WebSphere 部署,选择文件点击下一步,就死掉了,求大神帮忙,实在没招了 如题,我的war包大概17兆多一点,安装部署是选择文件点下一步就卡住了,控制台也进不去 后台日志提示内存溢出,前面小的测试程序能部署

jboss-SOS请大家帮帮忙~愁死了java

问题描述 SOS请大家帮帮忙~愁死了java 问题是这样的,jsp页面统一采用的是GBK的编码格式.web服务器使用的是JBOSS. 在如下查询页面中输入中文的查询条件: 在点击下一页的时候,要求查询条件也进行回显.但是会出现下面这样的乱码问题. 麻烦大神帮我看看···· 解决方案 数据库里的数据正常吗 ? 解决方案二: 应该是你的web服务起做了编码UTF-8了 后台传回来的中文是UTF-8格式 但是前台显示的是GBK 这个就会造成乱码 解决方案三: 先右键项目的properties,点res

c#使用webbrowser和javascript交互的问题 困扰我快一个礼拜了 急死了 各位大哥帮忙啊

问题描述 javascript函数1:functionselect_area(num,s){varctr=0;s.act1.selectedIndex=0;s.act1.options[0]=newOption("请选择场所","");if(num=="1"){s.act1.options[ctr]=newOption("中央平原→01","1");ctr=ctr+1;}if(num=="1&qu

使用WAMP进行压力测试,等到TOMCAT报错发现问题,基本解决国航OA服务器慢慢死掉的问题

进入D盘目录下 D:\wamp\bin\apache\apache2.2.21\bin\ 输入命令 abs -H "X-Anhe-Account-Username: 00000dsadasads" -H "X-Anhe-Account-Password: *****" -n 500 -c 1 http://*******:8081/airchina/Services?_action=MAINSCREEN abs -H "X-Anhe-Account-Use

服务器-oracel 数据库和客户端的问题,请大神帮忙看看

问题描述 oracel 数据库和客户端的问题,请大神帮忙看看 数据库安装的是oracle 10g,公司服务器的一个应用程序以前通过oracle10的客户端(ODBC的形式)去访问,但因为某种原因需要将客户端升级为11,不过服务器上现在有两个11的客户端,一个没有卸载工具的,一个是正常的完整版,但是现在能够连通数据库,就是时不时进入网站后,网页只显示一部分,但无法登陆进入网站的这个应用程序,可能是访问不到数据库,需要重启服务器上的IIS才能恢复.代码什么的都没动过,和之前相比只是升级了oracle