I have a Java (Spring MVC) webapp running on Heroku. It uses the setup described in this article: Getting Started with Spring MVC Hibernate on Heroku
It looks like Jetty by default uses just one thread. Given this Heroku & jetty-runner setup, what is the simplest way to increase the threadpool size?
NB: I do not have any custom Jetty related code (so it's unclear how I'd apply the advice e.g. at: How to use setThreadPool() in Jetty). If possible, I'd prefer to keep it that way. Everything Jetty-related is now in Procfile and pom.xml (see below).
Can I set the threadpool size with some jetty-runner parameter or config option? If I need to create a Jetty config file, how do I make Heroku/jetty-runner use it?
Procfile:
web: java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT target/*.war
pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-runner</artifactId>
<version>8.1.10.v20130312</version>
<destFileName>jetty-runner.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>