You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/12/10 11:46:51 UTC
DO NOT REPLY [Bug 46373] New: tomcat6 cpu100%
https://issues.apache.org/bugzilla/show_bug.cgi?id=46373
Summary: tomcat6 cpu100%
Product: Tomcat 6
Version: 6.0.18
Platform: Other
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P1
Component: Connectors
AssignedTo: dev@tomcat.apache.org
ReportedBy: waterdh@hotmail.com
sometimes ,server's cpu reaches 100%,and keep 100% all the time,until restart
the server.
there's about 100 servers using tomcat6.0.18(nio), and each server receives
more than 120 request per second, and the java version is 1.6.0_03.
i use ps -eL to find the nid which is using highest cpu%,
here's the jstack infomation:
"http-8080-ClientPoller" daemon prio=10 tid=0x0000002aee1ca400 nid=0x4a21
runnable [0x0000000040b39000..0x0000000040b39c30]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:184)
at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:65)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
- locked <0x0000002a9f6c1f98> (a sun.nio.ch.Util$1)
- locked <0x0000002a9f6c1f80> (a java.util.Collections$UnmodifiableSet)
- locked <0x0000002a9edd3488> (a sun.nio.ch.EPollSelectorImpl)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
at
org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1473)
at java.lang.Thread.run(Thread.java:619)
here's server.xml conf:
<Connector executor="tomcatThreadPool" port="8080"
protocol="org.apache.coyote.http11.Http11NioProtocol" enableLookups="false"
maxThreads="200" acceptCount="500"
acceptorThreadCount="1" connectionTimeout="5000" compression="on"
redirectPort="8443" />
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46373] tomcat6 cpu100%
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46373
--- Comment #5 from Filip Hanik <fh...@apache.org> 2008-12-17 20:44:37 PST ---
Well, the JDK folks thought it was already fixed, but apparently not.
We could try to implement a workaround for it (namely cancelling the selector
and starting a new one) but that can get real messy real fast.
one key factor would be to have a scenario that we can reproduce, so as of now,
I can't give you any certain dates when this will be fixed
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46373] tomcat6 cpu100%
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46373
--- Comment #8 from Konstantin Kolinko <kn...@gmail.com> 2008-12-23 08:04:43 PST ---
For reference:
The JDK bug 6403933 (mentioned in message which is referenced in comment #3) is
mentioned as fixed in JDK 6u4 release notes,
http://java.sun.com/javase/6/webnotes/6u4.html
Thus you should try at least that version, or better 6u7. Cannot recommend 6u10
or 6u11 yet, though.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46373] tomcat6 cpu100%
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46373
--- Comment #6 from huangjunjie <wa...@hotmail.com> 2008-12-17 21:13:27 PST ---
All right, if there's some good news, let me know please.
Thank you anyway.
Best
Water.DH
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46373] tomcat6 cpu100%
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46373
--- Comment #9 from huangjunjie <wa...@hotmail.com> 2008-12-24 00:54:14 PST ---
Ok, we will try it,thank you
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46373] tomcat6 cpu100%
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46373
--- Comment #4 from huangjunjie <wa...@hotmail.com> 2008-12-17 18:24:28 PST ---
Will it be fixed in jdk 7 ? NIO's performance is very good.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46373] tomcat6 cpu100%
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46373
huangjunjie <wa...@hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |ASSIGNED
--- Comment #2 from huangjunjie <wa...@hotmail.com> 2008-12-11 01:57:22 PST ---
there's many servers with compression "on" or "off",and a few of both kind
of server has been found to show the same situation, cpu grows 100%
suddenly,and the jstack infomation is the same, until restart tomcat.
it's hard to reproduce, there's no regular rule, but all of the servers need
to process over 200 request per second .there may be something wrong with the
concorrency
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46373] tomcat6 cpu100%
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46373
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |enhancement
Status|ASSIGNED |RESOLVED
Resolution| |INVALID
--- Comment #7 from Mark Thomas <ma...@apache.org> 2008-12-23 05:21:50 PST ---
Making this as invalid since it is a JVM bug.
If you can provide a reproducible test case then please re-open and we can look
at the possibility of putting in a work around although as Filip suggested
earlier, that could be tricky.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46373] tomcat6 cpu100%
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46373
Filip Hanik <fh...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Filip Hanik <fh...@apache.org> 2008-12-10 06:45:07 PST ---
What happens if you turn compression off?
There has been a bug reported to Sun about the selector waking up but reporting
no keys, causing the selector thread to spin. But we haven't got a reproducible
case yet.
Your jstack output shows the thread waiting in a select, and not spinning at
the very moment.
If you have more info, we would like to hear from you, to see if we can get a
reproducible test case
best
Filip
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46373] tomcat6 cpu100%
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46373
--- Comment #3 from Filip Hanik <fh...@apache.org> 2008-12-17 08:49:38 PST ---
This looks like it is still a JDK bug
Grizzly seem to have the same issue on linux
http://www.nabble.com/Comet-handler-starts-terminating-TCP-connections-with-RST--td20337445.html
Filip
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org