manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1198556 - /incubator/lcf/trunk/loadtests/rss/src/test/java/org/apache/manifoldcf/rss_loadtests/MockRSSService.java
Date Sun, 06 Nov 2011 21:07:08 GMT
Author: kwright
Date: Sun Nov  6 21:07:08 2011
New Revision: 1198556

URL: http://svn.apache.org/viewvc?rev=1198556&view=rev
Log:
Set the number of jetty threads for the rss load tests.

Modified:
    incubator/lcf/trunk/loadtests/rss/src/test/java/org/apache/manifoldcf/rss_loadtests/MockRSSService.java

Modified: incubator/lcf/trunk/loadtests/rss/src/test/java/org/apache/manifoldcf/rss_loadtests/MockRSSService.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/loadtests/rss/src/test/java/org/apache/manifoldcf/rss_loadtests/MockRSSService.java?rev=1198556&r1=1198555&r2=1198556&view=diff
==============================================================================
--- incubator/lcf/trunk/loadtests/rss/src/test/java/org/apache/manifoldcf/rss_loadtests/MockRSSService.java
(original)
+++ incubator/lcf/trunk/loadtests/rss/src/test/java/org/apache/manifoldcf/rss_loadtests/MockRSSService.java
Sun Nov  6 21:07:08 2011
@@ -26,6 +26,8 @@ import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
+import org.mortbay.thread.QueuedThreadPool;
+
 import java.io.*;
 import java.util.*;
 
@@ -38,6 +40,7 @@ public class MockRSSService
   public MockRSSService(int docsPerFeed)
   {
     server = new Server(8189);
+    server.setThreadPool(new QueuedThreadPool(35));
     servlet = new RSSServlet(docsPerFeed);
     Context asContext = new Context(server,"/rss",Context.SESSIONS);
     asContext.addServlet(new ServletHolder(servlet), "/gen.php");



Mime
View raw message