On May 15, 2008, at 10:34 PM, Stargazer wrote: > Jay Ballinger wrote: >> You're setting these in the resin config file and not on the >> command-line call, right? >> >> + jay >> >> >> > Yup ;-) > To clarify further, when you set them too low all that happens is > resin > restarts more often as the watchdog sees the java oom, rather than > linux just grabbing the swap.
You should enable <jvm-arg>-agentlib:resin</jvm-arg> and take a heap dump to see what's taking up the memory. If there's a memory leak, then it's important to identify the leak, not just tweak configuration parameters. -- Scott > >> Stargazer wrote: >> >>> I have a RH server with 750mb ram. Its serving about 30 hosts, split >>> between php (quercus) and jsp. As its not doing >>> anything else, just the usual email etc, I want to allocate 500mb to >>> resin (3.1.6 but this subject is pretty generic). I tried Xms512m, >>> -Xmx512m but the system still goes into swap (and eventually uses >>> it all >>> so dies). Even -Xms256m, -Xmx256m does it too. Of course I could set >>> these really low and might get away with it, but I'm really >>> looking for >>> the best values for my config which won't swap and won't waste ram >>> by >>> setting them too low, and by extension apply this login for any >>> amount >>> of ram in the server. Are there any other params I should modify too >>> please? Thanks. >>> >>> >>> >>> _______________________________________________ >>> resin-interest mailing list >>> resin-interest@caucho.com >>> http://maillist.caucho.com/mailman/listinfo/resin-interest >>> >> >> >> _______________________________________________ >> resin-interest mailing list >> resin-interest@caucho.com >> http://maillist.caucho.com/mailman/listinfo/resin-interest >> >> >> >> > > > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest