LoginSignup
3
3

More than 5 years have passed since last update.

Jetty が HTTP Error 413 を返してきた場合の対応方法

Last updated at Posted at 2012-07-13

問題

solr に POST される query が設定の上限を超えていると

HTTPError: HTTP Error 413: FULL head

となってしまう。

対応方法

etc/jetty.xml の headerBufferSize を変更する。
※ headerBufferSize が無い場合は項目を追加する

etc/jetty.xml
<Call name="addConnector">
  <Arg>
      <New class="org.mortbay.jetty.bio.SocketConnector">
        <Set name="host"><SystemProperty name="jetty.host" /></Set>
        <Set name="port"><SystemProperty name="jetty.port" default="28983"/></Set>
        <Set name="maxIdleTime">50000</Set>
        <Set name="lowResourceMaxIdleTime">1500</Set>
        <Set name="statsOn">false</Set>
        <Set name="headerBufferSize">16384</Set>
      </New>
  </Arg>
</Call>

3
3
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3