tomcat不稳定时间长老报这个错麻烦大家给个好的解决方案!

yougucao379548695 2007-08-02 12:32:21
开始正常,运行一段时间tomcat就死掉拉。这是最近的日志大家给我看看有没有好的解决方案啊。

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
0)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:595)
select convert(varchar,a.typeid) str_typeid, a.typename, (select convert(varcha
r,count(1)) from bigclass b where b.typeid = a.typeid and b.bigclassview=1) str_
count_bigclass from type a where typeview=1 order by a.typeorder
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unhandled toke
n type: ROW
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unkn
own Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Sour
ce)
at com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.closeCursor(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.completeRowProcessi
ng(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplResultSet.close(Unknown Sou
rce)
at com.microsoft.jdbc.base.BaseResultSet.close(Unknown Source)
at org.apache.commons.dbcp.DelegatingResultSet.close(DelegatingResultSet
.java:193)
at org.apache.commons.dbcp.DelegatingStatement.passivate(DelegatingState
ment.java:248)
at org.apache.commons.dbcp.DelegatingStatement.close(DelegatingStatement
.java:177)
at com.bonc.javax.DataCenter.retrieve(DataCenter.java:354)
at com.bonc.javax.DataCenter.retrieve(DataCenter.java:377)
at com.shangdunet.cmsadmin.action.BaseAction.setMenuInfo(BaseAction.java
:138)
at com.shangdunet.cmsadmin.action.BaseAction.execute(BaseAction.java:63)

at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
...全文
3546 39 打赏 收藏 转发到动态 举报
写回复
用AI写文章
39 条回复
切换为时间正序
请发表友善的回复…
发表回复
yougucao379548695 2007-08-04
  • 打赏
  • 举报
回复
恩谢谢拉结贴哈
goooglehi 2007-08-04
  • 打赏
  • 举报
回复
sadfsdf
yougucao379548695 2007-08-03
  • 打赏
  • 举报
回复
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
CATALINA_HOME=`cygpath --absolute --windows "$CATALINA_HOME"`
CATALINA_BASE=`cygpath --absolute --windows "$CATALINA_BASE"`
CATALINA_TMPDIR=`cygpath --absolute --windows "$CATALINA_TMPDIR"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
[ -n "$JSSE_HOME" ] && JSSE_HOME=`cygpath --absolute --windows "$JSSE_HOME"`
JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
fi

# ----- Execute The Requested Command -----------------------------------------

echo "Using CATALINA_BASE: $CATALINA_BASE"
echo "Using CATALINA_HOME: $CATALINA_HOME"
echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR"
echo "Using JAVA_HOME: $JAVA_HOME"

if [ "$1" = "jpda" ] ; then
if [ -z "$JPDA_TRANSPORT" ]; then
JPDA_TRANSPORT="dt_socket"
fi
if [ -z "$JPDA_ADDRESS" ]; then
JPDA_ADDRESS="8000"
fi
if [ -z "$JPDA_OPTS" ]; then
JPDA_OPTS="-Xdebug -Xrunjdwp:transport=$JPDA_TRANSPORT,address=$JPDA_ADDRESS,server=y,suspend=n"
fi
CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS"
shift
fi

if [ "$1" = "debug" ] ; then

if $os400; then
echo "Debug command not available on OS400"
exit 1
else
shift
if [ "$1" = "-security" ] ; then
echo "Using Security Manager"
shift
exec "$_RUNJDB" $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
-sourcepath "$CATALINA_HOME"/../../jakarta-tomcat-catalina/catalina/src/share \
-Djava.security.manager \
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
org.apache.catalina.startup.Bootstrap "$@" start
else
exec "$_RUNJDB" $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
-sourcepath "$CATALINA_HOME"/../../jakarta-tomcat-catalina/catalina/src/share \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
org.apache.catalina.startup.Bootstrap "$@" start
fi
fi

elif [ "$1" = "run" ]; then

shift
if [ "$1" = "-security" ] ; then
echo "Using Security Manager"
shift
exec "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
-Djava.security.manager \
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
org.apache.catalina.startup.Bootstrap "$@" start
else
exec "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
org.apache.catalina.startup.Bootstrap "$@" start
fi

elif [ "$1" = "start" ] ; then

shift
touch "$CATALINA_BASE"/logs/catalina.out
if [ "$1" = "-security" ] ; then
echo "Using Security Manager"
shift
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
-Djava.security.manager \
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
org.apache.catalina.startup.Bootstrap "$@" start \
>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &

if [ ! -z "$CATALINA_PID" ]; then
echo $! > $CATALINA_PID
fi
else
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
org.apache.catalina.startup.Bootstrap "$@" start \
>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &

if [ ! -z "$CATALINA_PID" ]; then
echo $! > $CATALINA_PID
fi
fi

elif [ "$1" = "stop" ] ; then

shift
FORCE=0
if [ "$1" = "-force" ]; then
shift
FORCE=1
fi

"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
org.apache.catalina.startup.Bootstrap "$@" stop

if [ $FORCE -eq 1 ]; then
if [ ! -z "$CATALINA_PID" ]; then
echo "Killing: `cat $CATALINA_PID`"
kill -9 `cat $CATALINA_PID`
fi
fi

elif [ "$1" = "version" ] ; then

"$_RUNJAVA" \
-classpath "$CATALINA_HOME/server/lib/catalina.jar" \
org.apache.catalina.util.ServerInfo

else

echo "Usage: catalina.sh ( commands ... )"
echo "commands:"
if $os400; then
echo " debug Start Catalina in a debugger (not available on OS400)"
echo " debug -security Debug Catalina with a security manager (not available on OS400)"
else
echo " debug Start Catalina in a debugger"
echo " debug -security Debug Catalina with a security manager"
fi
echo " jpda start Start Catalina under JPDA debugger"
echo " run Start Catalina in the current window"
echo " run -security Start in the current window with security manager"
echo " start Start Catalina in a separate window"
echo " start -security Start in a separate window with security manager"
echo " stop Stop Catalina"
echo " stop -force Stop Catalina (followed by kill -KILL)"
echo " version What version of tomcat are you running?"
exit 1

fi
yougucao379548695 2007-08-03
  • 打赏
  • 举报
回复
catalina.sh
大侠帮我看看那个设置内存的东西加到那里好我加拉没起效啊。我服务器内存是2G的


#!/bin/sh
# -----------------------------------------------------------------------------
# Start/Stop Script for the CATALINA Server
#
# Environment Variable Prequisites
#
# CATALINA_HOME May point at your Catalina "build" directory.
#
# CATALINA_BASE (Optional) Base directory for resolving dynamic portions
# of a Catalina installation. If not present, resolves to
# the same directory that CATALINA_HOME points to.
#
# CATALINA_OPTS (Optional) Java runtime options used when the "start",
# "stop", or "run" command is executed.
#
# CATALINA_TMPDIR (Optional) Directory path location of temporary directory
# the JVM should use (java.io.tmpdir). Defaults to
# $CATALINA_BASE/temp.
#
# JAVA_HOME Must point at your Java Development Kit installation.
#
# JAVA_OPTS (Optional) Java runtime options used when the "start",
# "stop", or "run" command is executed.
#
# JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
# command is executed. The default is "dt_socket".
#
# JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
# command is executed. The default is 8000.
#
# JSSE_HOME (Optional) May point at your Java Secure Sockets Extension
# (JSSE) installation, whose JAR files will be added to the
# system class path used to start Tomcat.
#
# CATALINA_PID (Optional) Path of the file which should contains the pid
# of catalina startup java process, when start (fork) is used
#
# $Id: catalina.sh,v 1.13.2.1 2004/08/21 15:49:49 yoavs Exp $
# -----------------------------------------------------------------------------
# OS specific support. $var _must_ be set to either true or false.
cygwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
esac

# resolve links - $0 may be a softlink
PRG="$0"

while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done

# Get standard environment variables
PRGDIR=`dirname "$PRG"`

# Only set CATALINA_HOME if not already set
[ -z "$CATALINA_HOME" ] && CATALINA_HOME=`cd "$PRGDIR/.." ; pwd`

if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
. "$CATALINA_HOME"/bin/setenv.sh
fi

# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$CATALINA_HOME" ] && CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"`
[ -n "$CATALINA_BASE" ] && CATALINA_BASE=`cygpath --unix "$CATALINA_BASE"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
[ -n "$JSSE_HOME" ] && JSSE_HOME=`cygpath --absolute --unix "$JSSE_HOME"`
fi

# For OS400
if $os400; then
# Set job priority to standard for interactive (interactive - 6) by using
# the interactive priority - 6, the helper threads that respond to requests
# will be running at the same priority as interactive jobs.
COMMAND='chgjob job('$JOBNAME') runpty(6)'
system $COMMAND

# Enable multi threading
export QIBM_MULTI_THREADED=Y
fi

# Get standard Java environment variables
if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
BASEDIR="$CATALINA_HOME"
. "$CATALINA_HOME"/bin/setclasspath.sh
else
echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"
echo "This file is needed to run this program"
exit 1
fi

# Add on extra jar files to CLASSPATH
if [ -n "$JSSE_HOME" ]; then
CLASSPATH="$CLASSPATH":"$JSSE_HOME"/lib/jcert.jar:"$JSSE_HOME"/lib/jnet.jar:"$JSSE_HOME"/lib/jsse.jar
fi
CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HOME"/bin/commons-logging-api.jar

if [ -z "$CATALINA_BASE" ] ; then
CATALINA_BASE="$CATALINA_HOME"
fi

if [ -z "$CATALINA_TMPDIR" ] ; then
# Define the java.io.tmpdir to use for Catalina
CATALINA_TMPDIR="$CATALINA_BASE"/temp
fi

IceCraft 2007-08-03
  • 打赏
  • 举报
回复
like this:

#
# CATALINA_PID (Optional) Path of the file which should contains the pid
# of catalina startup java process, when start (fork) is used
#
# $Id: catalina.sh,v 1.13.2.1 2004/08/21 15:49:49 yoavs Exp $
# -----------------------------------------------------------------------------
# OS specific support. $var _must_ be set to either true or false.
CATALINA_OPTS='-server -Xms256m -Xmx256m -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=128m -Dcom.sun.management.jmxremote'
cygwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
esac



最后这个-Dcom.sun.management.jmxremote本来可以不加的,主要用于probe监控内存的详细信息的需要。

我的服务器都是这样配的,你试一试
yougucao379548695 2007-08-03
  • 打赏
  • 举报
回复
用probe检测的系统信息如下
Memory utilization
Current memory usage is 94.8% Force Garbage Collection
Free: 1.25 MB Total: 61.64 MB Max: 63.56 MB

好像分给他的内存还是64兆我该的设置好像没用到啊!!!!!!郁闷!
IceCraft 2007-08-03
  • 打赏
  • 举报
回复
apache的jmeter比较不错,不过就你现在的情况,还是先找原因,不然压了也是同样的问题。
yougucao379548695 2007-08-03
  • 打赏
  • 举报
回复
这个网站每天在线也就1000左右啊。你们都用的杀搞压力测试啊,请大家给点建议吧
yougucao379548695 2007-08-03
  • 打赏
  • 举报
回复
娃哈哈终于看到那个监控界面拉,我得花时间找找这个原因拉谢谢大家啊
little06 2007-08-03
  • 打赏
  • 举报
回复
建议做一下压力测试吧
然后再跟踪一下
聪头 2007-08-03
  • 打赏
  • 举报
回复
严重: An exception or error occurred in the container during the request process
ing
java.lang.OutOfMemoryError: Java heap space
select convert(varchar,a.typeid) str_typeid, a.typename, (select convert(varcha
r,count(1)) from bigclass b where b.typeid = a.typeid and b.bigclassview=1) str_
count_bigclass from type a where typeview=1 order by a.typeorder
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unhandled toke
n type: ROW

应该是这个问题,限制一下得到的记录条数
colincrazy 2007-08-03
  • 打赏
  • 举报
回复
是程序的某一个地方执行时占用了大量的内存,这问题以前也遇到过.只有去程序里找了.
yougucao379548695 2007-08-03
  • 打赏
  • 举报
回复
==我按这个配下看看啊
yougucao379548695 2007-08-03
  • 打赏
  • 举报
回复
JAVA_OPTS='-server -Xms512m -Xmx768m -XX:NewSize=128m -XX:MaxNewSize=192m -XX:SurvivorRatio=8'

我加上后tomcat不能启动拉
liuguangshuai 2007-08-03
  • 打赏
  • 举报
回复
在tomcat的bin/catalina.bat文件中
rem Set JVM Memery Size
set JAVA_OPTS=-Xms800m -Xmx2048m
liuguangshuai 2007-08-03
  • 打赏
  • 举报
回复
关注学习中。。。。。。
zheng376 2007-08-02
  • 打赏
  • 举报
回复
应该是程序的原因吧,一般tomcat 启不来都是程序编译有问题

这是一次启动的错误提示吗?
只有最开始启动的是根本原因
yougucao379548695 2007-08-02
  • 打赏
  • 举报
回复
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:46:25 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing
java.lang.OutOfMemoryError: Java heap space
java.lang.NullPointerException
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReturnValue(Unk
nown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unkn
own Source)
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:47:00 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:47:08 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:47:11 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:47:16 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:48:28 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:48:33 unknown unknown
严重: Error reading request, ignored
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:48:36 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:48:36 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run

严重: Caught exception (java.lang.OutOfMemoryError: Java heap space) executing o
rg.apache.tomcat.util.net.TcpWorkerThread@140b8fd, terminating thread
2007-7-31 17:48:40 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:49:06 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:49:10 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing


服务器内存2g
jdk1.5
tomcat5.028
有没有好的配置方案啊???请大家多多的支持啊
yougucao379548695 2007-08-02
  • 打赏
  • 举报
回复
ilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
ContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
0)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:595)
2007-7-31 17:46:11 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing
java.lang.OutOfMemoryError: Java heap space
select convert(varchar,a.typeid) str_typeid, a.typename, (select convert(varcha
r,count(1)) from bigclass b where b.typeid = a.typeid and b.bigclassview=1) str_
count_bigclass from type a where typeview=1 order by a.typeorder
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unhandled toke
n type: ROW
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unkn
own Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Sour
ce)
at com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.closeCursor(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.completeRowProcessi
ng(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplResultSet.close(Unknown Sou
rce)
at com.microsoft.jdbc.base.BaseResultSet.close(Unknown Source)
at org.apache.commons.dbcp.DelegatingResultSet.close(DelegatingResultSet
.java:193)
at org.apache.commons.dbcp.DelegatingStatement.passivate(DelegatingState
ment.java:248)
at org.apache.commons.dbcp.DelegatingStatement.close(DelegatingStatement
.java:177)
at com.bonc.javax.DataCenter.retrieve(DataCenter.java:354)
at com.bonc.javax.DataCenter.retrieve(DataCenter.java:377)
at com.shangdunet.cmsadmin.action.BaseAction.setMenuInfo(BaseAction.java
:138)
2007-7-31 17:46:19 org.apache.coyote.http11.Http11Processor process
严重: Error processing request
java.lang.OutOfMemoryError: Java heap space
2007-7-31 17:46:25 org.apache.coyote.tomcat5.CoyoteAdapter service
严重: An exception or error occurred in the container during the request process
ing
IceCraft 2007-08-02
  • 打赏
  • 举报
回复
把probe.war拷贝到webapps目录下
打开conf/tomcat-users.xml,增加如下内容
<role rolename="manager"/>
<role rolename="tomcat"/>
<role rolename="admin"/>
<role rolename="poweruser"/>
<role rolename="probeuser"/>
<user username="admin" password="admin" roles="admin,user,manager,poweruser,probeuser"/>

启动tomcat后访问/probe
输入这里配置的用户名和密码即可登录probe管理界面
首先可以查看一下tomcat内存情况,最大值和已使用值等等,看是否和你配置的优化参数相符,然后再查看其他的参数。
加载更多回复(19)

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧