On Sun, Jul 27, 2008 at 8:03 AM, vernekap <[EMAIL PROTECTED]> wrote: > > Hi > > I have been using jruby in a webapp for 4 months now. > The setup is tomcat 5.5/ java 1.5 + jrubyscript engine classes (compiled > with java 1.5)/ jruby 1.1 > > I am facing a problem during performance tests. > My client threads send a soap request per second. > If I run 450 thread with ramp-up time of 150 seconds, tenured gen space > becomes full within 3 seconds and I get Out Of memory error. > I am looking for some pointers on how to figue out the leaks are in my > application or in jruby.
Have you tried doing heap dumps of your application using a tool like jmap? NetBeans has a memory profiler that you could try also. See http://www.netbeans.org/kb/articles/nb-profiler-uncoveringleaks_pt1.html for example. > I would also like to get some advice on memory settings for tomcat + jruby. Your maximum heap should probably be 512M at a minimum and may need to go up above 1G depending on what your application is doing. Some other things to try: * You should also consider trying more recent versions of JRuby (e.g., 1.1.3) since we're constantly improving memory usage and fixing bugs. * Try running with the compiler off -- pass -Djruby.compile.mode=NONE to the JVM startup Cheers, /Nick --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
