Multisite Railo Performance

128 views
Skip to first unread message

Andy Jackson

unread,
Apr 15, 2015, 7:13:25 PM4/15/15
to lu...@googlegroups.com
I posted this on the railo google groups but thought I'd post again here:

We have a single instance of railo running on Ubuntu configured to use a single context for around 200 websites. We use apache mod_proxy to forward the requests for a specific domain to the corresponding subdirectory that lives within the tomcat document root. For example, a request for domain1.com gets forwarded by apache to {tomcat_root}/domain1.

This setup seemed to work well when we had less than 70-80 websites but is starting to get bogged down now that we're around 200 websites. We seem to be getting a rather large constant latency (+3 seconds) regardless of load. Has anyone seen similar results? Are we overly ambitious to expect decent performance with this many sites on a server?

Robert Munn

unread,
Apr 15, 2015, 11:56:27 PM4/15/15
to lu...@googlegroups.com
Have you done any profiling on Railo or Apache in an attempt to isolate the problem? Look at this blog post re Apache profiling:



I would look at your Apache config for possible problems with the numbers of threads and processes.

With Railo, you should be able to monitor the JVM using any number of available JVM monitoring tools. That could give you a sense of whether your performance issues have to do with Railo or Apache. 


--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/131a5f00-f792-488e-919f-a22344180dd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Blackwell

unread,
Apr 16, 2015, 5:31:14 AM4/16/15
to lu...@googlegroups.com
Unlikely to be apache httpd, but have eliminated that by testing against tomcat directly e.g.  http://localhost:8080/domain1  Do you see the same latency?

Have You tried attaching a JVM monitor, like VisualVM to see whats going on with memory and threads?

What java version are you using, what CATALINA_OPTS are you using?

It might be that you're seeing a lot of GC's, as railo's going to compile the templates and cache them, but if you have insufficient space its going to GC them to make room for classes compiled for the next request.

Do some digging and let us know what you find


--

Alex Skinner

unread,
Apr 16, 2015, 7:51:50 AM4/16/15
to lu...@googlegroups.com

Look at the memory usage if you are getting pauses it could be garbage collection you can also Tarek JVM settings and use a different collector which give more constant GC rather than these big pauses.

If you need immediate help tap up rasia.ch who can help you

Cheers

Alex

Sent from my phone

Andy Jackson

unread,
Apr 20, 2015, 2:56:46 PM4/20/15
to lu...@googlegroups.com
Ok. So bone-headed mistake. The issue was that we had "Debugging" in the railo admin turned on in production. Once we turned that off, we saw dramatic increase in performance.

Thanks for all your suggestions!
Reply all
Reply to author
Forward
0 new messages