Tune OpenWayback Performance and Caching

High-traffic archives benefit from careful tuning.

Tomcat connector

<Connector port="8080" protocol="HTTP/1.1"
           maxThreads="400"
           connectionTimeout="20000"
           enableLookups="false" />

Ehcache snippet (WEB-INF/ehcache.xml)

<cache name="ReplayCache"
       maxEntriesLocalHeap="5000"
       timeToLiveSeconds="3600" />

Compress responses

<Valve className="org.apache.catalina.valves.RemoteIpValve" />
<Connector ... compression="on" compressionMinSize="1024" />

Diagram

  flowchart LR
    A[Tomcat threads] --> B[Ehcache]
    B --> C[Faster replay]

Monitor JVM memory and adjust heap sizes to avoid GC pauses while caching.