Hi!<div><br></div><div>Why are the js files not served through apache.</div><div>I have also sometimes long waiting times for the js files only.</div><div><br></div><div>BTW we are using Nginx. We moved from apache to lighttp to nginx.</div>
<div>We also compress all js files into one file before serving.<br></div><div><br></div><div>So it seems not be related to the png files only.</div><div><br></div><div><br></div><div>Cheers</div><div>Gerhard</div><div><br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 27, 2012 at 8:34 PM, Tudor Girba <span dir="ltr">&lt;<a href="mailto:tudor@tudorgirba.com" target="_blank">tudor@tudorgirba.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bob and James,<br>
<br>
Thanks again.<br>
<br>
It seems to be that the 15s is too much of a coincidence :).<br>
<br>
I put together two experiments that show that the loading problem depends on the amount of images:<br>
<br>
- a page with 3 extra images on top of the template. This seems to exhibit the problem for exactly one slow loading image:<br>
<a href="http://www.humane-assessment.com/test3ExtraImages" target="_blank">http://www.humane-assessment.com/test3ExtraImages</a><br>
<br>
- a page with only 1 extra image on top of the template. This loads fine:<br>
<a href="http://www.humane-assessment.com/testOneExtraImage" target="_blank">http://www.humane-assessment.com/testOneExtraImage</a><br>
<br>
<br>
But, I still do not quite understand where to look next. Any further advice?<br>
<br>
Cheers,<br>
Doru<br>
<div><div class="h5"><br>
<br>
On 26 Nov 2012, at 20:41, Bob Arning &lt;<a href="mailto:arning315@comcast.net">arning315@comcast.net</a>&gt; wrote:<br>
<br>
&gt; I wrote a Squeak simulation of the browser loading 14 of the files on your page. I used a separate process for each httpGet: and typically were complete in under 1.5 seconds. When I hit reload on the browser, there are often 1 or 2 files taking a bit over 15 seconds. Suggests something different about how the browser requests data vs. my simple simulation.<br>

&gt;<br>
&gt; Interesting that the response headers are:<br>
&gt;<br>
&gt; HTTP/1.1 304 Not Modified<br>
&gt; Date: Mon, 26 Nov 2012 19:19:23 GMT<br>
&gt; Server: Apache/2.2.8 (Ubuntu)<br>
&gt; Connection: Keep-Alive<br>
&gt; Keep-Alive: timeout=15, max=100<br>
&gt; ETag: &quot;392802a-7974-4cf387f145600&quot;<br>
&gt;<br>
&gt; Is it just a coincidence that the keep-alive timeout is 15 seconds and that the slow files take 15.7 seconds? Attached is an HAR file with the browser timing details.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Bob<br>
&gt;<br>
&gt; On 11/26/12 4:27 AM, Tudor Girba wrote:<br>
&gt;&gt; Hi Paul, hi James,<br>
&gt;&gt;<br>
&gt;&gt; Thanks for the answers.<br>
&gt;&gt;<br>
&gt;&gt; I also thought it has to do with the Apache config, but I had no idea what to look for. Your suggestion certainly look interesting to look into, but I have close to no clue of how to do it. Do you happen to have a bit more hands-on pointers for         how to:<br>

&gt;&gt; - increase the resources count<br>
&gt;&gt; - add expire headers for the images<br>
&gt;&gt;<br>
&gt;&gt; ?<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Doru<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Nov 26, 2012 at 5:28 AM, Paul DeBruicker &lt;<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>&gt; wrote:<br>
&gt;&gt; I suspect James has the answer but you might also consider doing the<br>
&gt;&gt; following:<br>
&gt;&gt;<br>
&gt;&gt; -Add expires headers for the images in Apache and people will only have<br>
&gt;&gt; to download them once.<br>
&gt;&gt;<br>
&gt;&gt; -Apache 2.2.8 was released Jan 19, 2008 so I&#39;d definitely spend time<br>
&gt;&gt; upgrading to the latest stable version just to get the security<br>
&gt;&gt; vulnerability fixes.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 11/25/2012 08:11 PM, James Foster wrote:<br>
&gt;&gt; &gt; Hi Doru,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; How many resources do you have loading from the same site? Once I had a problem in which Apache was configured (by default) to only provide ten (10) items per second to the same client. I believe this was an attempt to avoid a denial-of-service attack. When I changed Apache to allow 30 items per second then my site loaded much faster.<br>

&gt;&gt; &gt;<br>
&gt;&gt; &gt; James<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Nov 25, 2012, at 3:24 PM, Tudor Girba wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Thanks. But, somehow, I think size is not really the issue.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Somehow randomly, one or two of the pictures take significantly more (the delta is measured in seconds) to load than the others.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; And yes, I am using the timeline debugging functionality from the browser.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; It&#39;s strange.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Doru<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On 24 Nov 2012, at 10:26, Gerhard Obermann &lt;<a href="mailto:obi068@gmail.com">obi068@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Hi Doru,<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; I would reduce the image size to the displayed size and reduce the bit depth of the png to 8.<br>
&gt;&gt; &gt;&gt;&gt; I tried it with home-icons-400-200-37.png.<br>
&gt;&gt; &gt;&gt;&gt; Before: 31.092 Bytes<br>
&gt;&gt; &gt;&gt;&gt; After: 7.678 Bytes<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Cheers<br>
&gt;&gt; &gt;&gt;&gt; Gerhard<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; On Sat, Nov 24, 2012 at 8:29 AM, Tudor Girba &lt;<a href="mailto:tudor@tudorgirba.com">tudor@tudorgirba.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;&gt; Hi,<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; I am working on a pier page, and I have a couple of images in it that seem to be slow to load, although they are served through apache.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; It is true that the images are slightly large (~230K), but still I think they appear too slow.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; The example is here:<br>
&gt;&gt; &gt;&gt;&gt; <a href="http://www.humane-assessment.com/" target="_blank">http://www.humane-assessment.com/</a><br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Anyone has any idea of why this would happen?<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Cheers,<br>
&gt;&gt; &gt;&gt;&gt; Doru<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; --<br>
&gt;&gt; &gt;&gt;&gt; <a href="http://www.tudorgirba.com" target="_blank">www.tudorgirba.com</a><br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &quot;Live like you mean it.&quot;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt; seaside mailing list<br>
&gt;&gt; &gt;&gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt; &gt;&gt;&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt; seaside mailing list<br>
&gt;&gt; &gt;&gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt; &gt;&gt;&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; <a href="http://www.tudorgirba.com" target="_blank">www.tudorgirba.com</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &quot;We can create beautiful models in a vacuum.<br>
&gt;&gt; &gt;&gt; But, to get them effective we have to deal with the inconvenience of reality.&quot;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; seaside mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; seaside mailing list<br>
&gt;&gt; &gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt; &gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; seaside mailing list<br>
&gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; <a href="http://www.tudorgirba.com" target="_blank">www.tudorgirba.com</a><br>
&gt;&gt;<br>
&gt;&gt; &quot;Every thing has its own flow&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; seaside mailing list<br>
&gt;&gt;<br>
&gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
</div></div>&gt; &lt;www.humane-assessmen&gt;_______________________________________________<br>
<div class="im">&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br>
--<br>
<a href="http://www.tudorgirba.com" target="_blank">www.tudorgirba.com</a><br>
<br>
</div>&quot;Problem solving should be focused on describing<br>
the problem in a way that makes the solution obvious.&quot;<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br></div>