Mantis - Resin
Viewing Issue Advanced Details
4323 crash always 12-09-10 07:48 01-10-11 18:20
Prabhu  
ferg  
normal  
closed 4.0.13  
fixed  
none    
none 4.0.15  
0004323: Resin Crash immeditely after start
Resin 4.0.13 Pro crash and restart itself immmedtialey after start and after restart from crash runs fine. Attached is crash log and in addtional info I have my resin config xml. Please let me know you need any new information. I have pro license from Caucho and we are trying to upgrade our prod server with this version.

Thanks.
<resin xmlns="http://caucho.com/ns/resin" [^]
       xmlns:resin="urn:java:com.caucho.resin">

  <log name="" level="info" path="../../logs/demo_server.log" rollover-size="1M">
    <logger name="com.caucho.server.rewrite" level="finest"/>
  </log>


  <!-- Prod => 1h, Dev/Demo => 2s-->
  <dependency-check-interval>1h</dependency-check-interval>
  
  <resin:AdminAuthenticator>
        <user name="adminstrator" password="XXXXXXX"/>
  </resin:AdminAuthenticator>
  
  <cluster-default>
    <!-- comment in prod -->
    <development-mode-error-page/>
  
    <!-- standard servlet behavior, including .jsp, .php, and WEB-INF -->
    <resin:import path="${resin.home}/conf/app-default.xml"/>
    
        
    <!--
       - Admin services
      -->
    <resin:DeployService/>
    
    <!--<resin:if test="${resin.professional}">
      <resin:JmxService/>
      <resin:LogService/>
      <resin:StatService/>
      <resin:XaLogService/>
    </resin:if>-->
    
    <resin:if test="${resin.professional}">
      <resin:AdminServices/>
    </resin:if>
    
    <resin:if test="${resin.professional}">
      <cache memory-size="64M">
       <!-- Vary header rewriting for IE -->
        <rewrite-vary-as-private/>
      </cache>
    </resin:if>
    
    <!--
       - Default host configuration applied to all virtual hosts.
      -->
    <host-default>
      <access-log path="../../logs/demo_access.log" rollover-period="1W" rollover-size="10M" format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" responsetime=%T cookie=%{cookie}c' auto-flush="true"/>

      <!-- creates the webapps directory for .war expansion -->
      <web-app-deploy path="webapps" versioning="true"/>

      <!--
         - Defaults applied to each web-app.
        -->
      <web-app-default>
        <prologue>
          <allow-servlet-el/>
        </prologue>

        <!-- enable persistent sessions -->
        <session-config>
          <use-persistent-store/>
          <enable-url-rewriting>false</enable-url-rewriting>
        </session-config>
     
        <!--
           - Sets max-age for cacheable pages, e.g. static pages.
          -->
        <!--<resin:if test="${resin.professional}">
          <cache-mapping url-pattern="/" max-age="5s"/>
          <cache-mapping url-pattern="*.gif" max-age="60s"/>
          <cache-mapping url-pattern="*.jpg" max-age="60s"/>
          <cache-mapping url-pattern="*.png" max-age="60s"/>
          <cache-mapping url-pattern="*.css" max-age="60s"/>
          <cache-mapping url-pattern="*.js" max-age="60s"/>
         </resin:if>-->
      </web-app-default>
    </host-default>
    
  </cluster-default>
  
  
  <cluster id="app-tier">
        
    <!--
       - Enables periodic checking of the server status and
       - check for deadlocks..
       -
       - All servers can add <url>s to be checked.
      -->
    <!--<resin:if test="${resin.professional}">
      <resin:PingThread>
          <url>http://abcd.com/login.jsp</url> [^]
      </resin:PingThread>
    </resin:if>
    -->
  
    <server-default>
        
        <jvm-arg>-Xmn256m</jvm-arg>
        <jvm-arg>-Xms1024m</jvm-arg>
        <jvm-arg>-Xmx1024m</jvm-arg>
        <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>
        
        <thread-max>256</thread-max>
        
        <keepalive-timeout>120s</keepalive-timeout>
        
        <!--
         - Configures the minimum free memory allowed before Resin
         - will force a restart.
        -->
        <memory-free-min>5M</memory-free-min>
    </server-default>

    <server id="DEMO_SERVER_4013" address="127.0.0.1" port="6800">
        <http port="80" />
        <http port="443">
            <openssl>
                    <certificate-file>keys/abcd.cer</certificate-file>
                    <certificate-key-file>keys/abcd.key</certificate-key-file>
                    <password>XXXXX</password>
            </openssl>
        </http>
        <!-- ONLY FOR ONE SERVICE-->
        <http port="19000" />
    </server>

    <!-- Pre-Compile JSP's -->
    <web-app-default>
      <listener>
        <listener-class>com.caucho.jsp.JspPrecompileListener</listener-class>
        <init>
          <extension>jsp</extension>
          <extension>jspx</extension>
          <extension>xtp</extension>
        </init>
      </listener>
    </web-app-default>

    <host id="cpdndemo" host-name="appdemoserver" root-directory=".">
      <web-app id="/oneservice" root-directory="../../applications/one_service">
        <access-log path='../../logs/one_service_access.log' rollover-size="5M" rollover-period="1W" format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" responsetime=%T' auto-flush="true"/>
      </web-app>
      
      <web-app id="/admin" root-directory="${resin.root}/doc/admin">
        <prologue>
          <resin:set var="resin_admin_external" value="true"/>
          <resin:set var="resin_admin_insecure" value="true"/>
        </prologue>
        <access-log path='../../../../logs/demo_admin_access.log' rollover-size="5M" rollover-period="1W" format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" responsetime=%T' auto-flush="true"/>
      </web-app>
    </host>
    
    <host id="www.abcd.ca" host-name="appdemoserver" root-directory=".">
        <host-alias>domain.abcd.ca</host-alias>
        <host-alias>domainpilot.abcd.ca</host-alias>
        
        <web-app id="/" root-directory="../../applications/demoapp">
            <access-log path='../../logs/demoapp_access.log' rollover-size="5M" rollover-period="1W" format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" responsetime=%T' auto-flush="true"/>
        </web-app>
    </host>
  </cluster>
</resin>
 hs_err_pid2568.log [^] (527,053 bytes) 12-09-10 07:48

Notes
(0004878)
Prabhu   
12-17-10 11:53   
FYI.

It crash only when I try to access site using https in Google chrome browser, it works fine in Firefox and IE.

when I disable https or disable resin cache config it doesn't crash and works fine.
(0004879)
Prabhu   
12-17-10 13:45   
Dec/17/2010 16:44

<rewrite-vary-as-private/> -> Seems this is culprit. When I remove this fron cache config it works fine.