Resin is a high-performance application server that supports Java/PHP. There are currently two versions available: an open source version under the GPL for hobbyists, developers and low-traffic sites; One is a fee-based professional version that adds features more suitable for production environments.

Resin has some features:

Reliability: Resin includes a number of reliable features, including automatic server restart, detecting and restarting deadlocked servers, and managing JVM memory to prevent memory leaks.

Cluster: Resin can respond to customers with multiple servers as one server, so as to enhance the scalability of the server.

Persistent and Distributed sessions: Persistent sessions can maintain existing Http sessions when the server restarts, and distributed sessions can share the Http session state between multiple servers.

Enhanced native code: Native code enhancement support is provided for both Windows and Linux systems. Improves Socket links, persistent links, and file read and write performance.

OpenSSL: Provides native OpenSSL library support, which is much better than what JSSE provides.

HTTP proxy caching: Improves server performance through memory and disk caching systems, increasing the speed of dynamic pages to near static pages.

Gzip filter: Reduces bandwidth by Gzip.

 

Resin Server Installation (Windows – Standalone)

1. Install JDK1.5 or higher

2. Make sure the JDK is installed and the environment variable JAVA_HOME is set correctly

3, extract Resin file

4. Run Java -jar resin-3.1.8/lib/resin.jar

5, or run http.exe

6. Enter http://localhost:8080 in the browser address bar

 

Resin can also be set up as a system service.

 

Vm configuration:

The Resin configuration file is located under./conf/. The default configuration file is resin.conf.

To configure a simple VIRTUAL machine, we just need to join

  <host host-name=”test.heep.com” root-directory=”D:\workspaces\java\testsys”>

<access-log path=”logs/test.access.log”

format=’%h %l %u %t “%r” %s %b “%{Referer}i” “%{User-Agent}i”‘

rollover-period=”1W”/>

    <web-app id=”/” root-directory=”WebRoot/”>

    </web-app>

</host>

</cluster>

Add the corresponding record to the host file so that we can access test.heep.com

 

References:

2, Easy to build Resin development platform 3, Windows Resin configuration details 4, Resin learning notes