关于tomcat的性能的问题

04-04-14 FgtPWD
各位老大好

我目前是一个菜鸟

用tomcat+jsp+sqlserver2000搭起来一个网站

现在用一个软件测试登入登出,200人在线

结果有的时候会出现

outofmemory的异常,服务就不能用了

这是怎么回事

java.lang.OutOfMemoryError

java.lang.OutOfMemoryError

java.lang.NullPointerException

at org.apache.coyote.tomcat4.OutpubBuffer.realWriteChars<OutputBuffer.java:579)

2004-4-14 12:57:05 org.apache.coyote.http11.Http11Protocol$Htto11ConnectionHnadler processConnection

严重:Error reading request, ignored

java.lang.OutOfMemoryError

at org.apache.tomcat.util.buf.charChunk.flushBuffer(CharChunk.java:465)

at org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:313)

......

    

FgtPWD
2004-04-14 15:14
测试软件给出的错误是

web server closed socket prematurely

FgtPWD
2004-04-14 17:53
我找了官方的说法,

怀疑这三个

1。现在的问题是,怎么知道win2000允许的一个进程的最大线程?能设置嘛?

2。怎么看或者更改我的jvm能用的最大内存数?

3。我用的是jdk1.4,还有下面第三个说的bug嘛?

忘达人指教啊

1。

You have too many threads running. Some OS's have a limit to the number of

threads which may be executed by a single process. (Which is what the JVM

is.) Refer to your OS docs for more information on how to raise this

threshold.

2。

Your OS limits the amount of memory your process may take. OK, this one is

grasping at straws.

3。

The JVM has a bug. This has been known to happen with JVM1.2.? and using

EJB's with another servlet engine.

banq
2004-04-15 10:08
在测试同时,需要使用Borland之类的Optimiz软件同时监控,可以发现内存泄漏或其它问题。

FgtPWD
2004-04-15 10:44
谢谢先

另外我问一下,对于p41.5g,256M内存的机器,我用tomcat+jsp+sql2000

一般能跑多少用户?对这个没概念

还有,监控内存的软件哪儿有的down啊,我听也没听说过那个名字

再次感谢

猜你喜欢
2Go 1 2 下一页