Hi Frank-
My apologies for jumping in the middle of a thread
-could you elaborate on what you used for a 'custom build'?
-which webserver are you implementing?
-where you able to collect metrics for scenarios other than expire headers
of 1 hour..perhaps 2 hours?
Kudos for attaining astounding 70% performance increase!!!
Thanks,
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Saturday, July 28, 2007 10:17 AM
Subject: Re: [S2] Ajax performance optimisation
I have a very complex app using Dojo that just went live a few weeks ago
(although *not* using S2), and this past week we got a 70+% performance
improvement out of it. We did three things Dojo-related. First, we used a
custom build (previously we just let Dojo import whatever it needed on the
fly). I know this is a primary suggestion the Dojo team makes, so I assume
you've done that already. Second, all the Dojo resources, all the .js,
.css and image files, were moved onto the web server. Third, we set
expires headers for all these resources to one hour on Apache.
None of that is rocket science, but it made an absolutely amazing
difference. We're under SSL as well, and our performance right now is on
par with what a developer sees running it locally without SSL. It's
absolutely stunning.
We actually moved *all* our static resources out to the web server (we use
other libraries like ActiveWidgets, WiseBlocks and have a ton of .js that
makes up the app itself). We also made some other architectural changes,
so the improvement we saw isn't strictly what we did with Dojo. But,
myself and another senior guy spent all week measuring and benchmarking
and testing and I can say for sure that the biggest improvement was in
fact the Dojo changes.
hth,
Frank
Nuwan Chandrasoma wrote:
Hi,
we also had the similar problem, we had a s1.x application with dojo and
we did all the performance enhancements that was recommended by dojo, but
we could not achive what we want and our application was running in https
mode. it add more performance problem to the application.
Thanks,
Nuwan
Adam Hardy wrote:
Jason Wyatt on 27/07/07 08:55, wrote:
I've been trying to speed up the Ajax performance of our application,
based
on the notes at http://cwiki.apache.org/WW/performance-tuning.html
I'm a bit unsure where I should extract the static content to, such as
the
css and javascript files included by the Ajax theme (shown below):
<link rel="stylesheet" href="/iacd/struts/xhtml/styles.css"
type="text/css"/>
<script type="text/javascript"
src="/iacd/struts/dojo/dojo.js"></script>
<script type="text/javascript"
src="/iacd/struts/simple/dojoRequire.js"></script>
<script type="text/javascript"
src="/iacd/struts/ajax/dojoRequire.js"></script>
<script type="text/javascript"
src="/iacd/struts/CommonFunctions.js"></script>
For example, the styles.css file above is stored in the
struts2-core-2.0.8.jar under the path /template/xhtml.
But if I extract this file to the webroot/template/xhtml, it seems that
the
link in the code above won't work, so I should instead extract it to
webroot/struts/xhtml.
Is this understanding correct? Basically I'm wondering how the mapping
works
between the template folder in the jar file and the struts folders
mentioned
in the Ajax theme's code.
Looks like a servlet filter declared in the web.xml would pick up
anything with /struts/* and handle it from there but I don't see it
mentioned in a casual check of the wiki so it could be some other
mechanism.
I spent about a week trying to get dojo to perform better the way we
were using it, and for the performance we required then, we worked out
we couldn't afford any more than a dozen dojo widgets on a page, even
with all the dojo performance enhancements recommended by dojo.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
(2006, Apress, ISBN 1-59059-695-1)
and "JavaScript, DOM Scripting and Ajax Projects"
(2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]