UNIX> bin/httpd. Sh-xmn100m-xms500m-xmx500m
Win> bin/httpd.exe-xmn100m-xms500m-xmx500m
Install win service> bin/httpd.exe-xmn100m-xms500m-xmx500m-install-Xss1m.
In Linux/Unix or edit httpd. Sh, as follows:
ARGs = '-J-server-xms200m-xmx1024m-xloggc :. /log/GC. log-XX: maxnewsize = 256 m-XX: maxpermsize = 256 m-djava. AWT. headless = true'
Note: (1) J-server-xms200m-xmx1024m.-xms200m indicates the initial memory size at startup, and-xmx1024m indicates the maximum memory usage. (2)-XX: maxnewsize = 256 m-XX: maxpermsize = 256 M indicates the size of the permanent storage area of the memory (3)-djava. AWT. headless = true solves the problem that images of Linux/Unix verification codes cannot be displayed.
In resin3.1, you only need to modify resin. conf and the following configuration.
<JVM-Arg>-xmx2048m </JVM-Arg>
<JVM-Arg>-xms1024m </JVM-Arg>
<JVM-Arg>-xss1m </JVM-Arg>
<JVM-Arg>-xdebug </JVM-Arg>
<JVM-Arg>-DCOM. Sun. Management. jmxremote </JVM-Arg>
It has improved a lot and made it much easier!
Address: http://darkmasky.javaeye.com/blog/217160