在resin.xml的 <cluster id="web">后面加上
<server-default>
<jvm-arg>-Xms4096m</jvm-arg>
<jvm-arg>-Xmx2048m</jvm-arg>
<jvm-arg>-Xmn1024m</jvm-arg>
<jvm-arg>-XX:PermSize=1048m</jvm-arg>
<jvm-arg>-XX:MaxPermSize=2000m</jvm-arg>
<thread-max>1024</thread-max>
<socket-timeout>30s</socket-timeout>
<keepalive-max>512</keepalive-max>
<keepalive-timeout>60s</keepalive-timeout>
</server-default>
原文地址:http://blog.csdn.net/u011700281/article/details/45061795