tomcat总是自动关闭

问题描述

JSP网站,用tomcat做服务器,sqlserver2000数据库(tomcat6.0+jdk1.5)。tomcat总是自动关闭。曾经用tomcat5.0,当时错误提示“StandardWrapperValve[debugjsp]:Servlet.service()forservletdebugjspthrewexceptionjava.sql.SQLException:Generalerror”,但是每次查询数据库操作后,结果集都关闭了,很困惑。下面是用tomcat6.0得到的错误信息。请高人指点。

解决方案

解决方案二:
##AnunexpectederrorhasbeendetectedbyHotSpotVirtualMachine:##EXCEPTION_ACCESS_VIOLATION(0xc0000005)atpc=0x77f3200b,pid=9248,tid=5984##JavaVM:JavaHotSpot(TM)ClientVM(1.5.0_05-b05mixedmode)#Problematicframe:#C[ntdll.dll+0x200b]#---------------THREAD---------------Currentthread(0x3ab68a30):JavaThread"http-80-12"daemon[_thread_in_native,id=5984]siginfo:ExceptionCode=0xc0000005,readingaddress0x00000018Registers:EAX=0x00000004,EBX=0x35160a08,ECX=0x7ff8d000,EDX=0x00000004ESP=0x3bc5f3e0,EBP=0x3bc5f414,ESI=0x00000000,EDI=0x3b572f70EIP=0x77f3200b,EFLAGS=0x00010246TopofStack:(sp=0x3bc5f3e0)0x3bc5f3e0:3b4d1351000000043b572f943b4d137b0x3bc5f3f0:3b572f943b572f703b4d1f823b572f940x3bc5f400:3ab68aec3b4d4e9f3b572f703b5000000x3bc5f410:006700003bc5f4443b4d51603b572f700x3bc5f420:3bc5f44c000000033ac454303ab68aec0x3bc5f430:6d3711da3b572f703bc5f44c3ab68a300x3bc5f440:35160a083bc5f47c008c826f000000000x3bc5f450:3bc5f4983b572f70000000003bc5f48cInstructions:(pc=0x77f3200b)0x77f31ffb:9090909090648b0d180000008b5424040x77f3200b:837a140075409090909090f0ff420475Stack:[0x3bc10000,0x3bc60000),sp=0x3bc5f3e0,freespace=316kNativeframes:(J=compiledJavacode,j=interpreted,Vv=VMcode,C=nativecode)C[ntdll.dll+0x200b]C[ODBC32.dll+0x5160]jsun.jdbc.odbc.JdbcOdbc.allocStmt(J[B)J+0jsun.jdbc.odbc.JdbcOdbc.SQLAllocStmt(J)J+47jsun.jdbc.odbc.JdbcOdbcConnection.createStatement(II)Ljava/sql/Statement;+27Jorg.apache.jsp.lib_jsp._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Vjorg.apache.jasper.runtime.HttpJspBase.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3Jjavax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)Vjorg.apache.jasper.servlet.JspServletWrapper.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V+320jorg.apache.jasper.servlet.JspServlet.serviceJspFile(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ljava/lang/Throwable;Z)V+126jorg.apache.jasper.servlet.JspServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+347Jjavax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)VJorg.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)Vv~RuntimeStub::alignment_frame_returnRuntime1stubjorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82jorg.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41jjava.lang.Thread.run()V+11v~StubRoutines::call_stubV[jvm.dll+0x8295c]V[jvm.dll+0xd752e]V[jvm.dll+0x8282d]V[jvm.dll+0x8258a]V[jvm.dll+0x9d476]V[jvm.dll+0x1042ae]V[jvm.dll+0x10427c]C[MSVCRT.dll+0x291ed]C[kernel32.dll+0xa990]Javaframes:(J=compiledJavacode,j=interpreted,Vv=VMcode)jsun.jdbc.odbc.JdbcOdbc.allocStmt(J[B)J+0jsun.jdbc.odbc.JdbcOdbc.SQLAllocStmt(J)J+47jsun.jdbc.odbc.JdbcOdbcConnection.createStatement(II)Ljava/sql/Statement;+27Jorg.apache.jsp.lib_jsp._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Vjorg.apache.jasper.runtime.HttpJspBase.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3Jjavax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)Vjorg.apache.jasper.servlet.JspServletWrapper.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V+320jorg.apache.jasper.servlet.JspServlet.serviceJspFile(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ljava/lang/Throwable;Z)V+126jorg.apache.jasper.servlet.JspServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+347Jjavax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)VJorg.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)Vv~RuntimeStub::alignment_frame_returnRuntime1stubjorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82jorg.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41jjava.lang.Thread.run()V+11v~StubRoutines::call_stub
解决方案三:
---------------PROCESS---------------JavaThreads:(=>currentthread)0x3ac6be00JavaThread"http-80-18"daemon[_thread_blocked,id=3052]0x3ac459a0JavaThread"http-80-17"daemon[_thread_blocked,id=6228]0x3abaf038JavaThread"http-80-16"daemon[_thread_blocked,id=6064]0x3abafe60JavaThread"http-80-15"daemon[_thread_blocked,id=10144]0x3ab8fec8JavaThread"http-80-14"daemon[_thread_blocked,id=4600]0x3ad7a268JavaThread"http-80-13"daemon[_thread_blocked,id=10000]=>0x3ab68a30JavaThread"http-80-12"daemon[_thread_in_native,id=5984]0x3acc3998JavaThread"http-80-11"daemon[_thread_blocked,id=7224]0x3ab946a0JavaThread"http-80-10"daemon[_thread_blocked,id=4740]0x3ab3add0JavaThread"http-80-9"daemon[_thread_blocked,id=4568]0x3ab40238JavaThread"http-80-8"daemon[_thread_blocked,id=8376]0x3ab8a240JavaThread"http-80-7"daemon[_thread_blocked,id=9896]0x3ab7bd30JavaThread"http-80-6"daemon[_thread_blocked,id=10196]0x00850778JavaThread"http-80-5"daemon[_thread_blocked,id=9524]0x3adc99b8JavaThread"http-80-4"daemon[_thread_blocked,id=8624]0x008a9b50JavaThread"http-80-3"daemon[_thread_blocked,id=3020]0x008b5a50JavaThread"http-80-2"daemon[_thread_blocked,id=7444]0x008a3e50JavaThread"http-80-1"daemon[_thread_blocked,id=4880]0x3ae61170JavaThread"TP-Monitor"daemon[_thread_blocked,id=9708]0x3ae86408JavaThread"TP-Processor4"daemon[_thread_in_native,id=5108]0x3ae66e58JavaThread"TP-Processor3"daemon[_thread_blocked,id=9908]0x3ae68278JavaThread"TP-Processor2"daemon[_thread_blocked,id=6744]0x3ae867f0JavaThread"TP-Processor1"daemon[_thread_blocked,id=9916]0x3ae5f1e8JavaThread"http-80-Acceptor-0"daemon[_thread_in_native,id=5456]0x3ae7acb0JavaThread"ContainerBackgroundProcessor[StandardEngine[Catalina]]"daemon[_thread_blocked,id=7348]0x3abd9c68JavaThread"GCDaemon"daemon[_thread_blocked,id=7856]0x3a9fd750JavaThread"Thread-2"[_thread_in_native,id=10076]0x00886080JavaThread"LowMemoryDetector"daemon[_thread_blocked,id=7804]0x00884ce0JavaThread"CompilerThread0"daemon[_thread_blocked,id=7300]0x00883f78JavaThread"SignalDispatcher"daemon[_thread_blocked,id=9920]0x008763c8JavaThread"Finalizer"daemon[_thread_blocked,id=9056]0x00875740JavaThread"ReferenceHandler"daemon[_thread_blocked,id=6888]0x003c5bd8JavaThread"main"[_thread_in_native,id=8540]OtherThreads:0x00871680VMThread[id=7720]0x00887390WatcherThread[id=5768]VMstate:notatsafepoint(normalexecution)VMMutex/Monitorcurrentlyownedbyathread:NoneHeapdefnewgenerationtotal56704K,used2208K[0x028c0000,0x06640000,0x06640000)edenspace50432K,3%used[0x028c0000,0x02a744f8,0x05a00000)fromspace6272K,7%used[0x06020000,0x06093d40,0x06640000)tospace6272K,0%used[0x05a00000,0x05a00000,0x06020000)tenuredgenerationtotal756224K,used7425K[0x06640000,0x348c0000,0x348c0000)thespace756224K,0%used[0x06640000,0x06d807f8,0x06d80800,0x348c0000)compactingpermgentotal13056K,used12929K[0x348c0000,0x35580000,0x388c0000)thespace13056K,99%used[0x348c0000,0x355606e0,0x35560800,0x35580000)Nosharedspacesconfigured.Dynamiclibraries:0x00400000-0x0040f000C:Tomcat6.0bintomcat6.exe0x77f30000-0x77ffa000C:WINDOWSsystem32ntdll.dll0x77e10000-0x77f2d000C:WINDOWSsystem32kernel32.dll0x77cd0000-0x77d5e000C:WINDOWSsystem32USER32.dll0x77bd0000-0x77c14000C:WINDOWSsystem32GDI32.dll0x77d60000-0x77e00000C:WINDOWSsystem32ADVAPI32.dll0x77c20000-0x77cc4000C:WINDOWSsystem32RPCRT4.dll0x77b70000-0x77bc4000C:WINDOWSsystem32MSVCRT.dll0x77370000-0x77b2b000C:WINDOWSsystem32SHELL32.dll0x77280000-0x772c9000C:WINDOWSsystem32SHLWAPI.dll0x76180000-0x7619d000C:WINDOWSsystem32IMM32.DLL0x63090000-0x63099000C:WINDOWSsystem32LPK.DLL0x72ee0000-0x72f3e000C:WINDOWSsystem32USP10.dll0x70ad0000-0x70bb6000C:WINDOWSWinSxSx86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.100.0_x-ww_8417450Bcomctl32.dll0x6d640000-0x6d7cc000C:ProgramFilesJavajre1.5.0_05binclientjvm.dll0x769e0000-0x76a09000C:WINDOWSsystem32WINMM.dll0x6d280000-0x6d288000C:ProgramFilesJavajre1.5.0_05binhpi.dll0x76ab0000-0x76abb000C:WINDOWSsystem32PSAPI.DLL0x76eb0000-0x76ec3000C:WINDOWSsystem32Secur32.dll0x6d610000-0x6d61c000C:ProgramFilesJavajre1.5.0_05binverify.dll0x6d300000-0x6d31d000C:ProgramFilesJavajre1.5.0_05binjava.dll0x6d630000-0x6d63f000C:ProgramFilesJavajre1.5.0_05binzip.dll0x6d4b0000-0x6d4b8000C:ProgramFilesJavajre1.5.0_05binmanagement.dll0x6d190000-0x6d1bf000C:ProgramFilesJavajre1.5.0_05bincmm.dll0x6d3c0000-0x6d3df000C:ProgramFilesJavajre1.5.0_05binjpeg.dll0x6d4c0000-0x6d4d3000C:ProgramFilesJavajre1.5.0_05binnet.dll0x71b60000-0x71b78000C:WINDOWSsystem32WS2_32.dll0x71b50000-0x71b58000C:WINDOWSsystem32WS2HELP.dll0x71a80000-0x71ac2000C:WINDOWSsystem32mswsock.dll0x71a40000-0x71a48000C:WINDOWSSystem32wshtcpip.dll0x76e30000-0x76e58000C:WINDOWSsystem32DNSAPI.dll0x76ed0000-0x76ed7000C:WINDOWSSystem32winrnr.dll0x76e70000-0x76e9f000C:WINDOWSsystem32WLDAP32.dll0x76ee0000-0x76ee5000C:WINDOWSsystem32rasadhlp.dll0x6d370000-0x6d37d000C:ProgramFilesJavajre1.5.0_05binJdbcOdbc.dll0x3b4d0000-0x3b50a000C:WINDOWSsystem32ODBC32.dll0x70bc0000-0x70c50000C:WINDOWSWinSxSx86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.0.0_x-ww_8A69BA05COMCTL32.dll0x761a0000-0x761e5000C:WINDOWSsystem32comdlg32.dll0x3b730000-0x3b747000C:WINDOWSsystem32odbcint.dll0x77b60000-0x77b68000C:WINDOWSsystem32VERSION.dll0x77150000-0x77274000C:WINDOWSsystem32ole32.dll0x3b900000-0x3b91a000C:WINDOWSsystem32odbccp32.dll0x76bf0000-0x76c14000C:WINDOWSsystem32msv1_0.dll0x3bba0000-0x3bc05000C:WINDOWSsystem32SQLSRV32.dll0x5be20000-0x5be4d000C:WINDOWSsystem32SQLUNIRL.dll0x72f40000-0x72f66000C:WINDOWSsystem32WINSPOOL.DRV0x770d0000-0x7714d000C:WINDOWSsystem32OLEAUT32.dll0x71ba0000-0x71bf3000C:WINDOWSsystem32NETAPI32.dll0x75710000-0x75717000C:WINDOWSsystem32NDDEAPI.DLL0x3c600000-0x3c616000C:WINDOWSsystem32sqlsrv32.rll0x6d810000-0x6d823000C:WINDOWSsystem32DBNETLIB.DLL0x71b10000-0x71b1b000C:WINDOWSsystem32WSOCK32.dll0x71e90000-0x71e94000C:WINDOWSsystem32security.dll0x76630000-0x76646000C:WINDOWSsystem32ntdsapi.dll0x760a0000-0x76136000C:WINDOWSsystem32crypt32.dll0x76080000-0x76092000C:WINDOWSsystem32MSASN1.dll0x74cd0000-0x74cd7000C:WINDOWSsystem32DBmsLPCn.dllVMArguments:jvm_args:-Dcatalina.home=C:Tomcat6.0-Dcatalina.base=C:Tomcat6.0-Djava.endorsed.dirs=C:Tomcat6.0endorsed-Djava.io.tmpdir=C:Tomcat6.0temp-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager-Djava.util.logging.config.file=C:Tomcat6.0conflogging.propertiesvfprintf-Xms800m-Xmx800mjava_command:<unknown>EnvironmentVariables:PATH=C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:ProgramFilesMicrosoftSQLServer80ToolsBINNOS=Windows_NTPROCESSOR_IDENTIFIER=x86Family15Model4Stepping3,GenuineIntel
解决方案四:
---------------SYSTEM---------------OS:WindowsServer2003familyBuild3790CPU:total4family15,cmov,cx8,fxsr,mmx,sse,sse2,htMemory:4kpage,physical1048060k(470120kfree),swap2527032k(430712kfree)vm_info:JavaHotSpot(TM)ClientVM(1.5.0_05-b05)forwindows-x86,builtonAug26200515:36:02by"java_re"withMSVC++6.0

时间: 2025-01-25 10:21:20

tomcat总是自动关闭的相关文章

tomcat javaweb-tomcat 自动关闭 每天都会重启

问题描述 tomcat 自动关闭 每天都会重启 Oct 13, 2015 7:35:06 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-8900"] Oct 13, 2015 7:35:06 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["ajp-bi

sqlSessionTemplate在tomcat启动时自动关闭

问题描述 sqlSessionTemplate在tomcat启动时自动关闭 sqlSessionTemplate在tomcat启动时自动关闭 数据库连接没有问题 <!-- mapper扫描 --> <!-- --> 解决方案 Tomcat 启动时类加载顺序

tomcat上部署了一个项目,一访问就会自动关闭

问题描述 tomcat上部署了一个项目,一访问就会自动关闭 ay 12, 2015 9:49:47 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-8888"] May 12, 2015 9:49:47 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["a

quartz-web 项目 tomcat 自动关闭

问题描述 web 项目 tomcat 自动关闭 2015 12 22 08:44:52 INFO [DataHibernateDao] ****************** 2015 12 22 08:44:52 INFO [XmlWebApplicationContext] Closing Root WebApplicationContext: startup date [Tue Dec 22 08:20:32 GMT+08:00 2015]; root of context hierarch

Tomcat自动关闭问题,求教如何分析错误日志!!!

问题描述 tomcat运行一段时间后会自动关闭,并产生错误日志,怀疑是客户端访问同时读取大字段造成的问题,但是看不懂错误日志文档,求教如何分析问题,错误日志见附件 问题补充:aronlulu 写道 解决方案 从日志看是调本地库的时候引起jvm崩溃的.本地库是spring jdbc调的.从你的heap信息看,perm区已经满了.你设置了-XX:MaxPermSize=512m,但是初始时只分了64M你改成-XX:PermSize=512m -XX:MaxPermSize=512m试试吧.另外看你们

tomcat运行一段时间后自动关闭

问题描述 ##AnunexpectederrorhasbeendetectedbyJavaRuntimeEnvironment:##EXCEPTION_ACCESS_VIOLATION(0xc0000005)atpc=0x7c94a379,pid=3868,tid=5592##JavaVM:JavaHotSpot(TM)ClientVM(1.6.0-beta2-b86mixedmode,sharing)#Problematicframe:#C[ntdll.dll+0x1a379]##Ifyouw

tomcat关闭时执行servlet?

问题描述 tomcat启动时可以用<load-on-startup>1</load-on-startup>执行servlet那关闭前能自动执行servlet吗?主要是自己写的连接池,在tomcat启动时创建连接,想在tomcat关闭时关掉连接池里的所有连接.新手哈.原理不太清楚,猜想是不是tomcat关闭时连接也自动关闭了?这样就没问题了.谢谢! 解决方案 解决方案二:拜托,那个<load-on-startup>1</load-on-startup>是指启动

tomcat连接mysql超时

今天,开发一同事反映,每天早上来以后tomcat连接不上mysql,需要重启tomcat才行,本人经验有限,只得先google后baidu,网上普遍认为是mysql的等待超时连接所致,其默认的时间是28800,也就是8个小时.超过这个时间后,就自动关闭该连接,其参数为wait_timeout,还有一个交互参数为interactive_timeout. 这里有疑问?为什么tomcat不重新连接,而是要重启才行呢?????      由于是开发阶段,所以连接绝对够用,就把此值设大一点吧,打开my.c

tomcat启动不起来

问题描述 tomcat启动的时候,首先在输入启动命令的dos窗口上会出现几条提示语句:UsingCATALINE_BASE:"c:tomcat-7.0"等,过一会会有一个新的dos窗口一闪而过,然后tomcat的应用程序也自动关闭.这个问题怎么解决? 解决方案 解决方案二:startupdebug或是檢視logs目錄裡的紀錄.解决方案三:在命令行里进行启动!解决方案四:你的系统变量里面配了java_home没呢,使用tomcat的时候是需要这个变量的解决方案五:检查组件包及JDK路径是