Mantis - Resin
Viewing Issue Advanced Details
1258 crash random 07-18-06 17:23 07-27-06 14:14
vc Linux  
ferg Fedora Core 4  
normal 2.6.15  
closed 3.0.18  
fixed  
none    
none 3.0.20  
0001258: Precompiled JSP are deleted
Resin 3.0.18 unexpectely deletes precompiled JSP pages after restarting by main tread on out of memory.

Our resin configuration is as follows:
1. $RESIN_HOME/conf/resin.conf contains
<dependency-check-interval>1800s</dependency-check-interval>
<javac compiler="internal" args="" encoding="SJIS"/>
<min-free-memory>3M</min-free-memory>
   
2. application is packaged into war file and has following lines in resin-web.xml
    <class-loader>
        <simple-loader path="WEB-INF/classes"/>
        <library-loader path="WEB-INF/lib"/>
    </class-loader>

    <jsp
        auto-compile="false"
        fast-jstl="true"
        precompile="true"
        recompile-on-error="false"
    />

    <character-encoding>UTF-8</character-encoding>

Usually compiled pages were deleted after resin restarts itself on out of memory and they are deleted only from unpacked application.

I was reporting the same issue 0000318 which was closed as duplicate without reference to actual duplicate number. Next time it willbe nice to have duplicate issue too or somehow linking them.
Deploy application with memory leaks as war file.
Wait till resin will be restarted by itself.
Check unpackaged directory, some of precompiled JSP will be deleted.
java -version
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)
Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode)


There are no notes attached to this issue.