本文主要是介绍resin设置jvm启动参数,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在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>
这篇关于resin设置jvm启动参数的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!