<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Interesting. I mean, 1 second????<br>
<br>
Am 05.01.17 um 13:10 schrieb Sabine Manaa:<br>
</div>
<blockquote
cite="mid:CA+UbgZY=5quUAKiAeyRVukWFe_dxNnebZPHb55o=CKEDtWsHZg@mail.gmail.com"
type="cite">
<div dir="ltr"><a moz-do-not-send="true"
href="http://stackoverflow.com/questions/25199405/localhost-vs-127-0-0-1-performance"
target="_top" rel="nofollow" link="external">http://stackoverflow.com/questions/25199405/localhost-vs-127-0-0-1-performance</a><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-01-05 13:24 GMT+01:00 Sabine Manaa
<span dir="ltr"><<a moz-do-not-send="true"
href="/user/SendEmail.jtp?type=node&node=4928847&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">
<div dir="ltr">Mariano, no, there is no difference in the
response time between localhost and 127.0.0.1
<div>I entered now the ip of the server there.</div>
<div><br>
</div>
<div>Don't you think that this should be written in the
book?</div>
<div><a moz-do-not-send="true"
href="http://book.seaside.st/book/advanced/deployment/deployment-apache/configure-apache"
target="_blank" rel="nofollow" link="external">http://book.seaside.st/book/<wbr>advanced/deployment/<wbr>deployment-apache/configure-<wbr>apache</a><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote"><span class="">2017-01-05 12:58
GMT+01:00 Mariano Martinez Peck [via Smalltalk] <span
dir="ltr"><<a moz-do-not-send="true"
href="/user/SendEmail.jtp?type=node&node=4928847&i=1"
target="_top" rel="nofollow" link="external">[hidden
email]</a>></span>:<br>
</span>
<blockquote style="border-left:2px solid
#CCCCCC;padding:0 1em" class="gmail_quote"><span
class=""><span>
<div dir="ltr">Wow, that's what I call to nail it!
hahahaha.
<div><br>
</div>
<div>Norbert, do you have some explanation we
could all learn from it? It's something
concrete about Apache or is it something as
general as resolving localhost could take
longer than 127.0.0.1? </div>
<div><br>
</div>
<div>Sabine, do you see a difference in the
response time when ping to localhost and
127.0.0.1 ?</div>
<div><br>
</div>
<div>Thanks in advance,</div>
</div>
</span></span>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="h5"><span>On Thu, Jan 5, 2017 at
8:47 AM, Sabine Manaa <span dir="ltr"><<a
moz-do-not-send="true"
href="http:///user/SendEmail.jtp?type=node&node=4928845&i=0"
rel="nofollow" link="external"
target="_blank">[hidden email]</a>></span>
wrote:<br>
</span></div>
</div>
<blockquote style="border-left:2px solid
#CCCCCC;padding:0 1em" class="gmail_quote">
<div>
<div class="h5"><span>
<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>
</span>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="m_-1173398150755480083h5">
<div>
<div
class="m_-1173398150755480083m_-5705219244411924048h5">2017-01-05
12:25 GMT+01:00 Sabine Manaa
[via Smalltalk] <span dir="ltr"><<a
moz-do-not-send="true"
href="http:///user/SendEmail.jtp?type=node&node=4928844&i=0"
rel="nofollow"
link="external"
target="_blank">[hidden
email]</a>></span>:<br>
</div>
</div>
</div>
</div>
<blockquote style="border-left:2px solid
#CCCCCC;padding:0 1em"
class="gmail_quote">
<div>
<div
class="m_-1173398150755480083h5">
<div>
<div
class="m_-1173398150755480083m_-5705219244411924048h5">
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 moz-do-not-send="true"
href="https://tools.keycdn.com/performance?url=http://app.spesenfuchs.de/test.html"
rel="nofollow"
link="external"
target="_blank">https://tools.keycdn.com/perfo<wbr>rmance?url=http://app.spesenfu<wbr>chs.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 moz-do-not-send="true"
href="https://tools.keycdn.com/performance?url=app.spesenfuchs.de/hello"
rel="nofollow"
link="external"
target="_blank">https://tools.keycdn.com/perfo<wbr>rmance?url=app.spesenfuchs.de/<wbr>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 moz-do-not-send="true"
href="https://tools.keycdn.com/performance?url=app.spesenfuchs.de/rka"
rel="nofollow"
link="external"
target="_blank">https://tools.keycdn.com/perfo<wbr>rmance?url=app.spesenfuchs.de/<wbr>rka</a><br>
TTFB in Frankfurt more than 1
second! <br>
<br>
(alternative: enter the urls
into <a
moz-do-not-send="true"
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
moz-do-not-send="true"
href="http://91.89.219.232:52272"
rel="nofollow"
link="external"
target="_blank">91.89.219.232:52272</a>]
91.89.219.232 - - [<a
moz-do-not-send="true"
href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial"
rel="nofollow"
link="external"
target="_blank">app.spesenfuchs.de/sid#66c848<wbr>][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
moz-do-not-send="true"
href="http://91.89.219.232:52272"
rel="nofollow"
link="external"
target="_blank">91.89.219.232:52272</a>]
91.89.219.232 - - [<a
moz-do-not-send="true"
href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial"
rel="nofollow"
link="external"
target="_blank">app.spesenfuchs.de/sid#66c848<wbr>][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
moz-do-not-send="true"
href="http://91.89.219.232:52272"
rel="nofollow"
link="external"
target="_blank">91.89.219.232:52272</a>]
91.89.219.232 - - [<a
moz-do-not-send="true"
href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial"
rel="nofollow"
link="external"
target="_blank">app.spesenfuchs.de/sid#66c848<wbr>][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
moz-do-not-send="true"
href="http://91.89.219.232:52272"
rel="nofollow"
link="external"
target="_blank">91.89.219.232:52272</a>]
91.89.219.232 - - [<a
moz-do-not-send="true"
href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial"
rel="nofollow"
link="external"
target="_blank">app.spesenfuchs.de/sid#66c848<wbr>][rid#20bc4c8/initial</a>]
rewrite '/hello' -> '<a
moz-do-not-send="true"
href="http://localhost:8085/HelloWorld/%27"
rel="nofollow"
link="external"
target="_blank">http://localhost:8085/HelloWo<wbr>rld/'</a><br>
[Thu Jan 05 12:14:35.243400
2017] [rewrite:trace2] [pid
1288:tid 1692]
mod_rewrite.c(477): [client <a
moz-do-not-send="true"
href="http://91.89.219.232:52272"
rel="nofollow"
link="external"
target="_blank">91.89.219.232:52272</a>]
91.89.219.232 - - [<a
moz-do-not-send="true"
href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial"
rel="nofollow"
link="external"
target="_blank">app.spesenfuchs.de/sid#66c848<wbr>][rid#20bc4c8/initial</a>]
forcing proxy-throughput with
<a moz-do-not-send="true"
href="http://localhost:8085/HelloWorld/"
rel="nofollow"
link="external"
target="_blank">http://localhost:8085/HelloWor<wbr>ld/</a><br>
[Thu Jan 05 12:14:35.243400
2017] [rewrite:trace1] [pid
1288:tid 1692]
mod_rewrite.c(477): [client <a
moz-do-not-send="true"
href="http://91.89.219.232:52272"
rel="nofollow"
link="external"
target="_blank">91.89.219.232:52272</a>]
91.89.219.232 - - [<a
moz-do-not-send="true"
href="http://app.spesenfuchs.de/sid#66c848][rid%2320bc4c8/initial"
rel="nofollow"
link="external"
target="_blank">app.spesenfuchs.de/sid#66c848<wbr>][rid#20bc4c8/initial</a>]
go-ahead with proxy request
proxy:<a
moz-do-not-send="true"
href="http://localhost:8085/HelloWorld/"
rel="nofollow"
link="external"
target="_blank">http://localhost:8085/He<wbr>lloWorld/</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 moz-do-not-send="true"
href="http://book.seaside.st/book/advanced/deployment/deployment-apache/configure-apache"
rel="nofollow"
link="external"
target="_blank">http://book.seaside.st/book/ad<wbr>vanced/deployment/deployment-a<wbr>pache/configure-apache</a>)
<br>
<br>
<VirtualHost *:80><br>
ProxyPreserveHost On <br>
ServerName <a
moz-do-not-send="true"
href="http://app.spesenfuchs.de"
rel="nofollow"
link="external"
target="_blank">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_FIL<wbr>ENAME}
!-f <br>
<br>
RewriteRule ^/rka(.*)$ <a
moz-do-not-send="true"
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
moz-do-not-send="true"
href="http://localhost:8085/HelloWorld/$1"
rel="nofollow"
link="external"
target="_blank">http://localhost:8085/HelloWor<wbr>ld/$1</a> [proxy,last]
<br>
</VirtualHost> <br>
<br>
</div>
</div>
<hr color="#cccccc" size="1"
noshade="noshade">
<div style="color:#444;font:12px
tahoma,geneva,helvetica,arial,sans-serif"><span>
<div style="font-weight:bold">If
you reply to this email,
your message will be added
to the discussion below:</div>
</span><a moz-do-not-send="true"
href="http://forum.world.st/TTFB-Apache-Seaside-Performance-Problem-tp4928842.html"
rel="nofollow" link="external"
target="_blank">http://forum.world.st/TTFB-Apa<wbr>che-Seaside-Performance-Proble<wbr>m-tp4928842.html</a>
</div>
</div>
</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
moz-do-not-send="true"
href="http:///user/SendEmail.jtp?type=node&node=4928844&i=1"
rel="nofollow" link="external"
target="_blank">[hidden email]</a>
<br>
<span> To unsubscribe from Seaside,
<a moz-do-not-send="true"
rel="nofollow" link="external"
target="_top">click here</a>.<br>
<a moz-do-not-send="true"
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" link="external"
target="_blank">NAML</a> </span></div>
</blockquote>
</div>
<br>
</div>
<span
class="m_-1173398150755480083m_-5705219244411924048im
m_-1173398150755480083m_-5705219244411924048HOEnZb"> <br>
<span>
<hr align="left" width="300">
View this message in context: <a
moz-do-not-send="true"
href="http://forum.world.st/TTFB-Apache-Seaside-Performance-Problem-tp4928842p4928844.html"
rel="nofollow" link="external"
target="_blank">Re: TTFB, Apache,
Seaside Performance Problem</a><br>
</span></span><span>
<div
class="m_-1173398150755480083m_-5705219244411924048HOEnZb">
<div
class="m_-1173398150755480083m_-5705219244411924048h5">
Sent from the <a
moz-do-not-send="true"
href="http://forum.world.st/Seaside-General-f86180.html"
rel="nofollow" link="external"
target="_blank">Seaside General
mailing list archive</a> at
Nabble.com.<br>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
seaside mailing list<br>
</span></div>
</div>
<a moz-do-not-send="true"
href="http:///user/SendEmail.jtp?type=node&node=4928845&i=1"
rel="nofollow" link="external" target="_blank">[hidden
email]</a><br>
<a moz-do-not-send="true"
href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside"
rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/s<wbr>easide</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div
class="m_-1173398150755480083m_-5705219244411924048gmail_signature"
data-smartmail="gmail_signature">Mariano<br>
<a moz-do-not-send="true"
href="http://marianopeck.wordpress.com"
rel="nofollow" link="external" target="_blank">http://marianopeck.wordpress.c<wbr>om</a><br>
</div>
</div>
<br>
<span class="">______________________________<wbr>_________________
<br>
seaside mailing list
<br>
<a moz-do-not-send="true"
href="http:///user/SendEmail.jtp?type=node&node=4928845&i=2"
rel="nofollow" link="external" target="_blank">[hidden
email]</a>
<br>
<a moz-do-not-send="true"
href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside"
rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/s<wbr>easide</a><br>
<br>
<br>
</span>
<hr color="#cccccc" size="1" noshade="noshade">
<div style="color:#444;font:12px
tahoma,geneva,helvetica,arial,sans-serif"><span
class=""><span>
<div style="font-weight:bold">If you reply to
this email, your message will be added to the
discussion below:</div>
</span></span><a moz-do-not-send="true"
href="http://forum.world.st/TTFB-Apache-Seaside-Performance-Problem-tp4928842p4928845.html"
target="_blank" rel="nofollow" link="external">http://forum.world.st/TTFB-Apa<wbr>che-Seaside-Performance-Proble<wbr>m-tp4928842p4928845.html</a>
</div>
<span class="">
<div style="color:#666;font:11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em"><span>
To start a new topic under Seaside General,
email <a moz-do-not-send="true"
href="/user/SendEmail.jtp?type=node&node=4928847&i=2"
target="_top" rel="nofollow" link="external">[hidden
email]</a> <br>
</span> To unsubscribe from TTFB, Apache, Seaside
Performance Problem, <a moz-do-not-send="true"
href="" target="_blank" rel="nofollow"
link="external">click here</a>.<br>
<a moz-do-not-send="true"
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>
</span></blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<hr align="left" width="300">
View this message in context: <a moz-do-not-send="true"
href="http://forum.world.st/TTFB-Apache-Seaside-Performance-Problem-tp4928842p4928847.html">Re:
TTFB, Apache, Seaside Performance Problem</a><br>
Sent from the <a moz-do-not-send="true"
href="http://forum.world.st/Seaside-General-f86180.html">Seaside
General mailing list archive</a> at Nabble.com.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
<br>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel <a class="moz-txt-link-freetext" href="mailto:jtuchel@objektfabrik.de">mailto:jtuchel@objektfabrik.de</a>
Fliederweg 1 <a class="moz-txt-link-freetext" href="http://www.objektfabrik.de">http://www.objektfabrik.de</a>
D-71640 Ludwigsburg <a class="moz-txt-link-freetext" href="http://joachimtuchel.wordpress.com">http://joachimtuchel.wordpress.com</a>
Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1
</pre>
</body>
</html>