jetty dies with virtual hosts

From: witichis (gwitichis_at_hotmail.com)
Date: 06/29/04


Date: 28 Jun 2004 17:04:29 -0700

Hi,

using jetty 4.2.9 on redhat with sun jdk 1.4.2_01-b06
When using virtual hosts the java process dies after a few minutes
while the CPU load goes slowly from 100% to zero (e-function?) on that
process.
Without virtual hosts jetty usually runs for months (no restarts
necessary) on this setup.
There is nothing unusual in the logs or stdout/stderr during that.

see jetty.xml below - what can be done?

TIA

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure
1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd">

<Configure class="org.mortbay.jetty.Server">

  <Call name="addListener">
    <Arg>
      <New class="org.mortbay.http.SocketChannelListener">
        <Set name="Port"><SystemProperty name="jetty.port"
default="8080"/></Set>
        <Set name="MinThreads">10</Set>
        <Set name="MaxThreads">1000</Set>
        <Set name="MaxIdleTimeMs">30000</Set>
        <Set name="BufferSize">20000</Set>
      </New>
    </Arg>
  </Call>
  
  <Set name="rootWebApp">planapp</Set>

  <Call name="addWebApplication">
    <Arg>/</Arg>
    <Arg><SystemProperty name="jetty.home" default=""/>planapp</Arg>
    <Set name="extractWAR">false</Set>
    <Set name="defaultsDescriptor"><SystemProperty name="jetty.home"
default="jetty"/>/etc/webdefault.xml</Set>
    <Set name="virtualHosts">
      <Array type="java.lang.String">
        <Item>xdyne.net</Item>
        <Item>www.xdyne.net</Item>
      </Array>
    </Set>
  </Call>
 
  <Call name="addWebApplication">
    <Arg>/</Arg>
    <Arg>/home/carol</Arg>
    <Set name="extractWAR">false</Set>
    <Set name="defaultsDescriptor"><SystemProperty name="jetty.home"
default="jetty"/>/etc/webdefault.xml</Set>
    <Set name="virtualHosts">
      <Array type="java.lang.String">
        <Item>artproject.com</Item>
        <Item>www.artproject.com</Item>
      </Array>
    </Set>
  </Call>
 
  <Set name="RequestLog">
    <New class="org.mortbay.http.NCSARequestLog">
      <Arg><SystemProperty name="jetty.home"
default="jetty"/>/logs/yyyy_mm_dd.request.log</Arg>
      <Set name="retainDays">999</Set>
      <Set name="append">true</Set>
      <Set name="extended">false</Set>
      <Set name="buffered">true</Set>
      <Set name="LogTimeZone">CET</Set>
    </New>
  </Set>

  <Set name="requestsPerGC">200</Set>
  <Set name="statsOn">false</Set>

</Configure>