<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style="COLOR: #000000; FONT-FAMILY: Arial" bgColor=#ffffff>
<DIV><SPAN class=476275513-25062003><FONT size=2>We were able to handle
sustained 10Mbs worth of traffic with 5.0rc2 by doing the
following:</FONT></SPAN></DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2>1) quality load balancer (F5
Big / IP) set to sticky IP session persistence</FONT></SPAN></DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2>2) 3 web servers running apache
2.0. We used mod_jk in sticky-mode to talk to the tomcat servers in a failover
configuration. We tuned apache with 50 servers at startup, which seemed to do
the trick. I believe we also upped the mod_jk connection pool pretty high for
each server.</FONT></SPAN></DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2>3) 2 tomcat servers -
configured with tons of ram. We used -Mmx to get a half gig of ram for each
tomcat instance.</FONT></SPAN></DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2>4) 1 dedicated mysql box, tuned
as much as we could.</FONT></SPAN></DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2>to make sure we had the maximum
speed, we used wget, rsync, and mod_rewrite to transparently cache a number of
files statically. This was the single most important optimization. You could
probably do the same with mod_proxy, but we wanted to be extremely fine-grained
with the pages we cached. Second was probably the mysql tuning. Basically, we
fed it a half gig of ram, and tried to get it to keep everything cached- it
would have been nice to use some of the more advanced load tuning options in
mysql 4.0, so I'm looking forward to getting that one going in the near
future.</FONT></SPAN></DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2>We did have trouble with jsp
files caching on one of the tomcat servers or the other when making changes-
publish didn't seem to work exactly as desired. We found we could edit using the
wysiwig tool with out any issues, but had to stop the other server when
publishing. I'm sure better tuning of the flex cache parameters would have made
sense there- but we were under the gun and had no time to tweak
it.</FONT></SPAN></DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2>In your situation, I'd try to
aggressively cache as much static graphical information as possible at the
apache layer- that's likely to bear fruit much more quickly than throwing more
servers at it. I'd also make sure you configured tomcat to use as much ram as
you had available with the -Mmx flag in catalina_opts.</FONT></SPAN></DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2>HTH,</FONT></SPAN></DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=476275513-25062003><FONT size=2>Tim</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Steve
[mailto:steven@livingimpact.com.my] <BR><B>Sent:</B> Wednesday, June 25, 2003
1:26 AM<BR><B>To:</B> opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev]
Improve OpenCMS performance?<BR><BR></FONT></DIV>
<DIV><FONT size=2>Hello,</FONT></DIV>
<DIV><FONT size=2> I am currently using OpenCMS to develop
application website, I have already deploy two of them, both of them works
well but they are generally quite slow. I tried to minimize all the image
size, the page is averagely 200 K bytes in size and many graphic elements are
generated on the fly by JSP in OpenCMS.</FONT></DIV>
<DIV><FONT size=2> Does anyone know how to improve
performance on these subject generally? Other than to minimize the graphic
elements?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thank you all,</FONT></DIV>
<DIV><FONT size=2>Steven Ho.</FONT></DIV></BLOCKQUOTE></BODY></HTML>