Upon further investigation, I've learned that since Oct 28, 2013, Rackspace 
images have swap turned off by default 
(http://www.rackspace.com/knowledge_center/article/swap-space-on-cloud-servers).
 This explains why I'm running out of memory.

Do you have a recommendation as to whether or not I should enable swap, or try 
to curtail Java's memory use via JVM args? The number of concurrent requests on 
my site is typically very low (although one of my servers has a burstiness of 
several hundred to a couple thousand requests simultaneously on average once a 
week).

> On Jun 1, 2015, at 14:19 , Rick Mann <rm...@latencyzero.com> wrote:
> 
> Something is killing my resin process. The watchdog log shows this when it 
> happens:
> 
> [2015/06/01 21:13:45.624] {watchdog-app-0} Watchdog detected close of 
> Resin[app-0,pid=3728]
>                                             exit reason: SIGKILL (signal=9)
> [2015/06/01 21:13:45.628] {watchdog-app-0} WatchdogChild[app-0] starting
> [2015/06/01 21:13:45.677] {watchdog-app-0} Watchdog starting Resin[app-0]
> 
> This seems to correlate with invoking an action that spawns some threaded 
> activity. Note that this is a webapp I've been running for years on an older 
> VM, and a few days ago I moved it to a new VM. ps shows this:
> 
> 4985 ?        Sl     0:25 /usr/lib/jvm/java-8-oracle/bin/java -Xmx2048m 
> -XX:MaxPermSize=256m -Dresin.server=app-0 
> -Djava.util.logging.manager=com.caucho.log.LogManagerImpl 
> -Djava.system.class.loader=com.caucho.loader.SystemClassLoader 
> -Djava.endorsed.dirs=/usr/lib/jvm/java-8-oracle/jre/lib/endorsed:/lz/usr/resin/current//endorsed:/lz/var/www/endorsed
>  -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl 
> -Djava.awt.headless=true -Djava.awt.headlesslib=true 
> -Dresin.home=/lz/usr/resin/current/ -Xss1m -d64 -server 
> com.caucho.server.resin.Resin --root-directory /lz/var/www -conf 
> /lz/etc/resin/resin.xml -server app-0 -socketwait 50229 -root-directory 
> /lz/var/www -log-directory /logs/resin restart
> 21256 ?        Sl    11:12 /usr/lib/jvm/java-8-oracle/bin/java 
> -Dresin.watchdog=app-0 
> -Djava.util.logging.manager=com.caucho.log.LogManagerImpl 
> -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl 
> -Djava.awt.headless=true -Djava.awt.headlesslib=true 
> -Dresin.home=/lz/usr/resin/current/ -Dresin.root=/lz/var/www -Xrs -Xss256k 
> -Xmx32m -d64 -server com.caucho.boot.WatchdogManager -root-directory 
> /lz/var/www -conf /lz/etc/resin/resin.xml -log-directory /logs/resin start 
> --log-directory /logs/resin
> 
> I started resin as root with "resinctl start."
> 
> I'm not sure what else to look at. Any suggestions?
> 
> Thanks!
> 
> -- 
> Rick Mann
> rm...@latencyzero.com
> 
> 


-- 
Rick Mann
rm...@latencyzero.com



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to