Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

Apache 怎么会自动关闭?

[复制链接]
文軒 发表于 2008-9-3 11:33:15 | 显示全部楼层 |阅读模式
服务器装的是Apache tomcat 6, 最近Apache 老是自动关闭. 我在tomcat 6/logs/下找了日志(请问apaceh日志是在这个文件夹下吧?) 

我找了两个日志给大家看看.



****catalina.2008-09-03.log


2008-9-3 9:18:43 org.apache.tomcat.util.digester.Digester startElement
严重: Begin event threw error
java.lang.OutOfMemoryError: (class: org/apache/tomcat/util/http/mapper/Mapper, method: internalMap signature: (Lorg/apache/tomcat/util/buf/CharChunk;Lorg/apache/tomcat/util/buf/CharChunk;Lorg/apache/tomcat/util/http/mapper/MappingData;)V) 
at org.apache.catalina.connector.Connector.(Connector.java:260)
at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:44)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)****


****stderr_20080903.log

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Caused by: java.lang.OutOfMemoryError: (class: org/apache/tomcat/util/http/mapper/Mapper, method: internalMap signature: (Lorg/apache/tomcat/util/buf/CharChunk;Lorg/apache/tomcat/util/buf/CharChunk;Lorg/apache/tomcat/util/http/mapper/MappingData;)V) 
at org.apache.catalina.connector.Connector.(Connector.java:260)
at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:44)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
... 6 more****



谢谢!
xiaoyuwxz 发表于 2008-9-3 14:14:42 | 显示全部楼层
OutOfMemoryError
试下多给点内存给tomcat,装个probe监控下看什么原因导致死掉的,
http://www.lambdaprobe.org/
回复

使用道具 举报

 楼主| 文軒 发表于 2008-9-3 18:32:22 | 显示全部楼层
原帖由 xiaoyuwxz 于 2008-9-3 14:14 发表
OutOfMemoryError
试下多给点内存给tomcat,装个probe监控下看什么原因导致死掉的,
http://www.lambdaprobe.org/


谢谢! 我这就去下个probe , 至于tomcat ,如何设置给它多点内存呢? 不好意思,麻烦了!
回复

使用道具 举报

ok9966 发表于 2008-9-3 18:53:05 | 显示全部楼层
我不会用这个环境。帮你顶下。。。
回复

使用道具 举报

soxy 发表于 2008-9-3 20:12:46 | 显示全部楼层
如果你用resin,我很乐意帮你
回复

使用道具 举报

xiaoyuwxz 发表于 2008-9-3 20:29:45 | 显示全部楼层
tomcat安装后有个监控,里面可以设定最大内存的,

这个程序监控,可以看到具体的访问和访问量的,不过,都是英文,要自己多多研究.
回复

使用道具 举报

cn667.com 发表于 2008-9-3 23:24:30 | 显示全部楼层
后台啊 找找看啊
回复

使用道具 举报

 楼主| 文軒 发表于 2008-9-4 08:59:08 | 显示全部楼层
原帖由 xiaoyuwxz 于 2008-9-3 20:29 发表
tomcat安装后有个监控,里面可以设定最大内存的,

这个程序监控,可以看到具体的访问和访问量的,不过,都是英文,要自己多多研究.


我刚接触tomcat ,请问如何进入它后台这个监控呢? 谢谢!
回复

使用道具 举报

mbaadmission 发表于 2008-10-23 18:31:45 | 显示全部楼层
正在"生"
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-18 17:20 , Processed in 0.025681 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表