Community
Participate
Working Groups
Build Identifier: 7.4.3 When running Jetty in embedded mode and sending a lot of requests in a short period (10 sec), the Java process jumps to 100% and stays there, also when no requests are being send anymore. Reproducible: Always Steps to Reproduce: 1. Start the Jetty server, see the attached code 2. Open a browser (tested with Chrome and IE), and go to the http://localhost/test.jsp 3. Keep pressing F5 for 10 seconds, eventually all cores will jump to 100%, overall CPU usage will go to 100% after a while. 4. Stop pressing F5, close your browser(s), jetty will keep using 100% CPU forever (tested it for more than one hour). A few more details about the systems I have tested and reproduced this on: - Intel Core 2 DUO, 4GB, Windows 7 32 bit, JDK_1.6.0_26 - Intel Core i5 QUAD, 6GB, Windows 7 64 bit, JDK_1.6.0_26
Created attachment 199474 [details] Code used to run the testcase
Created attachment 199475 [details] Test jsp file, prints 10.000 short strings to keep the CPU busy and create a substantial response
Created attachment 199476 [details] Test jsp file, prints 10.000 short strings to keep the CPU busy and create a substantial response
Probably a duplicate of bug 351624.
(In reply to comment #4) > Probably a duplicate of bug 351624. I can confirm that the threads in my case show the same stacktrace as posted in issue 351624.
There is a new Thread Monitor tool in Jetty that has been developed over the past few weeks in attempt to automatically detect spinning and deadlocked threads on a live Jetty instance. This tool is part of the jetty-monitor module that can be added to your maven project as follows. <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-monitor</artifactId> <version>7.5.0-SNAPSHOT</version> </dependency> Alternatively, you could download the snapshot directly here: http://goo.gl/cGJo1 For instructions on how to run this tool, please see README.txt file located here: http://goo.gl/UmZ4N It would be great if you could run the Thread Monitor on your instance of Jetty and attach the log file collected after running the tool to bug 351624. -Michael *** This bug has been marked as a duplicate of bug 351624 ***