Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to increase Jetty threadpool size with jetty-runner on Heroku?
    primarykey
    data
    text
    <p>I have a Java (Spring MVC) webapp running on Heroku. It uses the setup described in this article: <a href="https://devcenter.heroku.com/articles/spring-mvc-hibernate" rel="nofollow noreferrer">Getting Started with Spring MVC Hibernate on Heroku</a></p> <p>It looks like Jetty by default uses just one thread. Given this Heroku &amp; jetty-runner setup, <strong>what is the simplest way to increase the threadpool size</strong>? </p> <p>NB: I do not have any custom Jetty related code (so it's unclear how I'd apply the advice e.g. at: <a href="https://stackoverflow.com/questions/7444800/how-to-use-setthreadpool-in-jetty">How to use setThreadPool() in Jetty</a>). If possible, I'd prefer to keep it that way. Everything Jetty-related is now in Procfile and pom.xml (see below).</p> <p>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?</p> <p>Procfile:</p> <pre class="lang-none prettyprint-override"><code>web: java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT target/*.war </code></pre> <p>pom.xml:</p> <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt; &lt;version&gt;2.7&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;package&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;copy&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;artifactItems&gt; &lt;artifactItem&gt; &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt; &lt;artifactId&gt;jetty-runner&lt;/artifactId&gt; &lt;version&gt;8.1.10.v20130312&lt;/version&gt; &lt;destFileName&gt;jetty-runner.jar&lt;/destFileName&gt; &lt;/artifactItem&gt; &lt;/artifactItems&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload