<div dir="ltr">The problem is solved: I had to replace localhost by 127.0.0.1<div>Thanks a lot Norbert Hartl for your advice!</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-05 12:25 GMT+01:00 Sabine Manaa [via Smalltalk] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4928844&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span>:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,
<br><br>I need the help of the community.
<br><br>I am not succeding in making our app faster.
<br>The problem is the Time to first Byte (TTFB). It is always more than one second which is much to much.
<br>We reduced the problem to a problem between apache and pharo/seaside.
<br><br>For this, I have a test application which only renders "hello World". So I am sure it is not my code, my database, my css, my js, my ssl.... :-)
<br><br>I optimized and learned a lot for my app, but it did not solve the TTFB problem, which costs 1 additional sec for each click of the user which is inaceptable.
<br><br>Please follow this tests to see the problem:
<br><br>===>>> Test 1: test.html without Pharo/seaside
<br><a href="https://tools.keycdn.com/performance?url=http://app.spesenfuchs.de/test.html" rel="nofollow" link="external" target="_blank">https://tools.keycdn.com/<wbr>performance?url=http://app.<wbr>spesenfuchs.de/test.html</a><br>TTFB in Frankfurt below 10 ms -> this proves that the server and configuration is fast.
<br><br>===>>> Test 2: hello world, simple seaside page
<br><a href="https://tools.keycdn.com/performance?url=app.spesenfuchs.de/hello" rel="nofollow" link="external" target="_blank">https://tools.keycdn.com/<wbr>performance?url=app.<wbr>spesenfuchs.de/hello</a><br>TTFB in Frankfurt more than 1 second! -> this proves that it is not my application :-) it is only a hello world seaside page...
<br><br>===>>> Test 3: my login page
<br><a href="https://tools.keycdn.com/performance?url=app.spesenfuchs.de/rka" rel="nofollow" link="external" target="_blank">https://tools.keycdn.com/<wbr>performance?url=app.<wbr>spesenfuchs.de/rka</a><br>TTFB in Frankfurt more than 1 second!
<br><br>(alternative: enter the urls into <a href="https://gtmetrix.com/" rel="nofollow" link="external" target="_blank">https://gtmetrix.com/</a>)
<br><br>In Apache, we enabled tracing of the rewrite and this tells me (i assume), that apache makes the rewrite very fast, within the same millisecond :-)
<br>[Thu Jan 05 12:14:35.243400 2017] [rewrite:trace2] [pid 1288:tid 1692] mod_rewrite.c(477): [client <a href="http://91.89.219.232:52272" target="_blank" rel="nofollow" link="external">91.89.219.232:52272</a>] 91.89.219.232 - - [<a href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial" target="_blank" rel="nofollow" link="external">app.spesenfuchs.de/sid#<wbr>66c848][rid#20bc4c8/initial</a>] init rewrite engine with requested uri /hello
<br>[Thu Jan 05 12:14:35.243400 2017] [rewrite:trace3] [pid 1288:tid 1692] mod_rewrite.c(477): [client <a href="http://91.89.219.232:52272" target="_blank" rel="nofollow" link="external">91.89.219.232:52272</a>] 91.89.219.232 - - [<a href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial" target="_blank" rel="nofollow" link="external">app.spesenfuchs.de/sid#<wbr>66c848][rid#20bc4c8/initial</a>] applying pattern '^/rka(.*)$' to uri '/hello'
<br>[Thu Jan 05 12:14:35.243400 2017] [rewrite:trace3] [pid 1288:tid 1692] mod_rewrite.c(477): [client <a href="http://91.89.219.232:52272" target="_blank" rel="nofollow" link="external">91.89.219.232:52272</a>] 91.89.219.232 - - [<a href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial" target="_blank" rel="nofollow" link="external">app.spesenfuchs.de/sid#<wbr>66c848][rid#20bc4c8/initial</a>] applying pattern '^/hello(.*)$' to uri '/hello'
<br>[Thu Jan 05 12:14:35.243400 2017] [rewrite:trace2] [pid 1288:tid 1692] mod_rewrite.c(477): [client <a href="http://91.89.219.232:52272" target="_blank" rel="nofollow" link="external">91.89.219.232:52272</a>] 91.89.219.232 - - [<a href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial" target="_blank" rel="nofollow" link="external">app.spesenfuchs.de/sid#<wbr>66c848][rid#20bc4c8/initial</a>] rewrite '/hello' -> '<a href="http://localhost:8085/HelloWorld/'" rel="nofollow" link="external" target="_blank">http://localhost:8085/<wbr>HelloWorld/'</a><br>[Thu Jan 05 12:14:35.243400 2017] [rewrite:trace2] [pid 1288:tid 1692] mod_rewrite.c(477): [client <a href="http://91.89.219.232:52272" target="_blank" rel="nofollow" link="external">91.89.219.232:52272</a>] 91.89.219.232 - - [<a href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial" target="_blank" rel="nofollow" link="external">app.spesenfuchs.de/sid#<wbr>66c848][rid#20bc4c8/initial</a>] forcing proxy-throughput with <a href="http://localhost:8085/HelloWorld/" rel="nofollow" link="external" target="_blank">http://localhost:8085/<wbr>HelloWorld/</a><br>[Thu Jan 05 12:14:35.243400 2017] [rewrite:trace1] [pid 1288:tid 1692] mod_rewrite.c(477): [client <a href="http://91.89.219.232:52272" target="_blank" rel="nofollow" link="external">91.89.219.232:52272</a>] 91.89.219.232 - - [<a href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial" target="_blank" rel="nofollow" link="external">app.spesenfuchs.de/sid#<wbr>66c848][rid#20bc4c8/initial</a>] go-ahead with proxy request proxy:<a href="http://localhost:8085/HelloWorld/" rel="nofollow" link="external" target="_blank">http://localhost:8085/<wbr>HelloWorld/</a> [OK]
<br><br>So, I assume that there is problem between Apache and Seaside....
<br><br>My questiond are:
<br>what can I do to find the bottleneck?
<br>what is the reason that is so slow?
<br>your help is very appreciated because I have run out of ideas what it could be and I was investigating it several days now.
<br>
<br>Concerning the system:
<br>The server is at Amazon ec2 windows Server 2009 R2 SP1
<br>The Apache version is 2.4.23
<br>The configuration of the apache is like this (as described in the seaside book <a href="http://book.seaside.st/book/advanced/deployment/deployment-apache/configure-apache" rel="nofollow" link="external" target="_blank">http://book.seaside.st/book/<wbr>advanced/deployment/<wbr>deployment-apache/configure-<wbr>apache</a>)
<br><br><VirtualHost *:80><br> ProxyPreserveHost On
<br> ServerName <a href="http://app.spesenfuchs.de" target="_blank" rel="nofollow" link="external">app.spesenfuchs.de</a>
<br> RewriteEngine On
<br><Directory "C:\xampp\htdocs"><br> Require all granted
<br></Directory><br> DocumentRoot "C:\xampp\htdocs"
<br> RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_<wbr>FILENAME} !-f
<br><br> RewriteRule ^/rka(.*)$ <a href="http://localhost:8085/RKA/$1" rel="nofollow" link="external" target="_blank">http://localhost:8085/RKA/$1</a> [<wbr>proxy,last]
<br> RewriteRule ^/hello(.*)$ <a href="http://localhost:8085/HelloWorld/$1" rel="nofollow" link="external" target="_blank">http://localhost:8085/<wbr>HelloWorld/$1</a> [proxy,last]
<br></VirtualHost>
<br>
<br>
<hr noshade size="1" color="#cccccc">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://forum.world.st/TTFB-Apache-Seaside-Performance-Problem-tp4928842.html" target="_blank" rel="nofollow" link="external">http://forum.world.st/TTFB-<wbr>Apache-Seaside-Performance-<wbr>Problem-tp4928842.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To start a new topic under Seaside General, email <a href="/user/SendEmail.jtp?type=node&node=4928844&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
To unsubscribe from Seaside, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></blockquote></div><br></div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/TTFB-Apache-Seaside-Performance-Problem-tp4928842p4928844.html">Re: TTFB, Apache, Seaside Performance Problem</a><br/>
Sent from the <a href="http://forum.world.st/Seaside-General-f86180.html">Seaside General mailing list archive</a> at Nabble.com.<br/>