<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>keep-alive &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/keep-alive/</link>
	<description>Feed of posts on WordPress.com tagged "keep-alive"</description>
	<pubDate>Fri, 25 Dec 2009 06:15:48 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Every Day is Record Store Day]]></title>
<link>http://beatbungalow.wordpress.com/2009/10/30/every-day-is-record-store-day/</link>
<pubDate>Fri, 30 Oct 2009 19:38:09 +0000</pubDate>
<dc:creator>ABcease</dc:creator>
<guid>http://beatbungalow.wordpress.com/2009/10/30/every-day-is-record-store-day/</guid>
<description><![CDATA[You know the feeling? Every vinyl junkie dreams of discovering their own little cave full of rare ja]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://beatbungalow.wordpress.com/files/2009/10/lee-perry-n-mad-prof4.jpg"><img class="aligncenter size-full wp-image-224" title="lee perry n mad prof4" src="http://beatbungalow.wordpress.com/files/2009/10/lee-perry-n-mad-prof4.jpg" alt="lee perry n mad prof4" width="300" height="337" /></a></p>
<p>You know the feeling?</p>
<p>Every vinyl junkie dreams of discovering their own little cave full of rare jams that no one&#8217;s ever heard before, like DJ Shadow&#8217;s <a href="http://www.youtube.com/watch?v=1gpKYnRdf0A">vinyl wonderland in &#8216;Scratch&#8217;</a>. Once your mind switches into digging mode there&#8217;s no return&#8230;all you&#8217;re focusing on is finding out what kind of crazy sounds are out there, anything to take home &#38; sample?</p>
<p>The first record shop I got hooked on was a place called &#8216;Lost&#38;Found&#8217;. It would only be open on weekends and there were posters and sleeves all over the walls. You&#8217;ll come across some cool cover art every time. I&#8217;d spent hours going through the albums and singles, sometimes bizarre spoken word records. One of my favourite vinyls I got from there was the soudtrack to the film &#8216;Babylon&#8217;. Classic stuff. The shop was run by two mid-aged hippies who were always smoking in there, listening to tunes and clowning around. A lot o&#8217; the records were stacked in old shopping trolleys and there was a back room full of rare vinyl that only one customer at a time was allowed to go in&#8230;probably their way of making the crate-digging lemmings feel a bit special.</p>
<p>Enough of that. The <a href="http://recordstoreday.tuneportals.com/CustomPage/614">Every Day is Record Store Day</a> campaign that&#8217;s been started in the US is a step in the right direction. It&#8217;s trying to motivate people to shop at smaller independent outlets on 17th April every year.</p>
<p><a href="http://www.youtube.com/watch?v=DgMvNecANL0">Abstract Rude</a> is one of the artists who supports it. &#8220;For me, my family&#8217;s record collection was my gateway drug to the record store,&#8221; he says.</p>
<p>&#8220;Also my older sister&#8217;s rap tape collection that made me want to own my own music &#8211; she was stingy with loaning me tapes! The local record stores became like my gateways for expanding my knowledge of hip hop culture in various neighborhoods and cities worldwide. I know we got the internet today, but honestly, it sucks even trying to buy music online sometimes.&#8221;</p>
<p>As far as Beat Bungalow is concerned, there&#8217;s no doubt: all day every day should be record store day. Best thing to do is get your fingers dusty and support your local vinyl dealer!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Firewall vs Application]]></title>
<link>http://hpdba.wordpress.com/2009/07/21/firewall-vs-application/</link>
<pubDate>Tue, 21 Jul 2009 09:13:33 +0000</pubDate>
<dc:creator>hpdba</dc:creator>
<guid>http://hpdba.wordpress.com/2009/07/21/firewall-vs-application/</guid>
<description><![CDATA[Putting firewalls between application servers and database servers seems to be becoming more popular]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Putting firewalls between application servers and database servers seems to be becoming more popular.</p>
<p>One negative side effect of this is when the firewall decides to end a connection due to inactivity.  Some networking devices have a timeout period so idle connections are cut off.  This can have unpleasant results for the users of an application.</p>
<p>I first came across this problem while working for a new customer a long time ago.  I was frequently asked to kill database sessions that held row level locks and were blocking other transactions.  After a while, I noticed a pattern.  The locking problems always started after the blocking session had held the lock and been idle for at least 900 seconds.  When this was described to the users, they added that they have to log in again after lunch, or coffee breaks, etc.  I referred this issue to the network administrator, (who sat next to me and so couldn&#8217;t ignore me), who soon realised that the cause was a NAT&#8217;ing router.  The router cut off the (fat client) application&#8217;s session after the user had been idle for 15min.  The timeout was increased and users were asked to log out of the application when finished for the day.  Problem solved.</p>
<p>The SQLNET.LOG on a database server can show a DBA that idle connections are being cut off, eg a recent example I saw on Solaris:</p>
<pre>***********************************************************************
Fatal NI connect error 12170.

 VERSION INFORMATION:
 TNS for Solaris: Version 10.2.0.3.0 - Production
 Oracle Bequeath NT Protocol Adapter for Solaris: Version 10.2.0.3.0 - Production
 TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.3.0 - Production
 Time: 01-JUL-2009 03:31:04
 Tracing not turned on.
 Tns error struct:
 ns main err code: 12535
 TNS-12535: TNS:operation timed out
 ns secondary err code: 12560
 nt main err code: 505
 TNS-00505: Operation timed out
 nt secondary err code: <span style="color:#ff0000;">145</span>
 nt OS err code: 0
 Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=nn.nn.nn.nn)(PORT=57922))</pre>
<p>In this example, the Solaris error <span style="color:#ff0000;">145 </span><span style="color:#000000;">shows that the disconnection was not due to an Oracle setting or database problem, (as some parties were insisting), but was actually from a connection timeout at the OS level.  (Look up error number 145 in </span>/<em>usr</em>/<em>include</em>/<em>sys</em>/<em>errno</em>.<em>h ).<br />
</em>In this case I needed more evidence to prove my explanation to others, so I recorded the connected database sessions and their idle times, then matched these errors to idle sessions that had disappeared at the same time.  Recording this data for a while showed that only sessions that were idle for a certain amount of time were cut off.  Later, the network support staff were able to confirm the idle connection timeout setting.</p>
<p>Over the years, my attempts to persuade network administrators to increase the timeout period have often met resistance, because the timeout exists to free up resources.  An alternative is to use some sort of <em>keep alive</em> packets.  There are various places <em>keep alives</em> can be enabled, eg at the Windows OS level or in PuTTy.  For Oracle databases, SQLNET.EXPIRE_TIME can be used.  Although SQLNET.EXPIRE_TIME was intended as a dead connection detection (DCD) method, a side effect of sending probe packets between the database server and client/application server is that the connection remains active.  Set the SQLNET.EXPIRE_TIME to less than the firewall timeout and the problem is solved.</p>
<p>Another work around for applications that use connection pools is to keep each connection active by checking running a simple SQL statement at regular intervals.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[HTTP Keep Alive]]></title>
<link>http://kurinchiblogger.wordpress.com/2009/05/07/http-keep-alive/</link>
<pubDate>Fri, 08 May 2009 00:28:38 +0000</pubDate>
<dc:creator>kurinchiblogger</dc:creator>
<guid>http://kurinchiblogger.wordpress.com/2009/05/07/http-keep-alive/</guid>
<description><![CDATA[HTTP (Hyper Text Transfer Protocol) does not maintain a state. For every request that is made to the]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>HTTP (Hyper Text Transfer Protocol) </strong>does not maintain a state. For every request that is made to the server, the server sends a response back. When a request is being made, a NEW socket connection is opened on the server from which the response is sent back.<!--more--></p>
<p>The biggest disadvantage of http is its&#8221;slow&#8221; response. &#8220;Keep-alive&#8221; connections phase out this problem for HTTP.</p>
<p>Http keep-alive is also known as &#8220;persistent connections&#8221;.</p>
<p>In <strong>HTTP/1.0 specification</strong>, the browser sends the request with the header tag &#8220;Connection: Keep-Alive&#8221;  to which the server responded back with &#8220;Connection: Keep-Alive&#8221;. For this to happen, it is essential that the browser should support keep-alive. When the next request is sent, the connection is NOT CLOSED and is still alive for further requests until either client or server decides that the connection is over and closes the connection.</p>
<p>In <strong>HTTP/1.1 specification</strong>, ALL connections to the server are treated to be having &#8220;keep-alive&#8221; connection unless explicitly stated with &#8220;Connection: close&#8221; in the headers from the browsers. Some browsers misbehave by hanging the connection. To over come this problem, there is a Keep Alive TimeOut option available in Servers and in Apache it defaults to 15 seconds.</p>
<p>Keep-alive is active with files whose size are known before hand. So dynamic programs stay aside on these cases.</p>
<p>HTTP indicates the end of the previous response and the beggining of the  new request thus enabling the reuse of the connection. </p>
<p><strong>Refer</strong>:</p>
<p><a href="http://tools.ietf.org/html/rfc2616#section-8.1">RFC 2616: http://tools.ietf.org/html/rfc2616#section-8.1</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[3rd-Party Keep-Alive HTTP Module for IIS]]></title>
<link>http://thepursuitofalife.com/2008/01/30/3rd-party-keep-alive-http-module-for-iis/</link>
<pubDate>Thu, 31 Jan 2008 01:07:46 +0000</pubDate>
<dc:creator>Anthony Stevens</dc:creator>
<guid>http://thepursuitofalife.com/2008/01/30/3rd-party-keep-alive-http-module-for-iis/</guid>
<description><![CDATA[This product from Xepient looks interesting.  And only 5 Euros!  Whatever that is in USD, it feels c]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://www.xepient.com/KeepAliveServer.aspx">This product from Xepient</a> looks interesting.  And only 5 Euros!  Whatever that is in USD, it feels cheap.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Disable Keep-Alive in IIS 7.0]]></title>
<link>http://thepursuitofalife.com/2008/01/30/disable-keep-alive-in-iis-70/</link>
<pubDate>Thu, 31 Jan 2008 00:59:15 +0000</pubDate>
<dc:creator>Anthony Stevens</dc:creator>
<guid>http://thepursuitofalife.com/2008/01/30/disable-keep-alive-in-iis-70/</guid>
<description><![CDATA[This technet article says that I should Open IIS Manager and navigate to the level you want to manag]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://technet2.microsoft.com/windowsserver2008/en/library/e99daa45-4a87-465b-86f5-820fea9d11171033.mspx?mfr=true">This technet article</a> says that I should</p>
<blockquote>
<ol>
<li>Open IIS Manager and navigate to the level you want to manage.</li>
<li>In <b>Features View</b>, double-click <b>HTTP Response Headers</b>.</li>
<li>On the <b>HTTP Response Headers</b> page, in the <b>Actions</b> pane, click <b>Set Common Headers</b>.</li>
<li>In the <b>Set Common HTTP Response Headers</b> dialog box, select the <b>Enable HTTP keep-alive</b> check box and then click <b>OK</b>.</li>
</ol>
</blockquote>
<p>But I don&#8217;t see the &#8220;HTTP Response Headers&#8221; option in my web application configuration (see image below).  What am I doing wrong?</p>
<p><a href="http://xidey.wordpress.com/files/2008/01/iis-7-http-response-headers-missing.png" title="IIS 7 Control Panel"><img src="http://xidey.wordpress.com/files/2008/01/iis-7-http-response-headers-missing.png" alt="IIS 7 Control Panel" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[High performance websites]]></title>
<link>http://arnoudm.wordpress.com/2007/12/04/high-performance-websites/</link>
<pubDate>Tue, 04 Dec 2007 13:23:50 +0000</pubDate>
<dc:creator>arnoudm</dc:creator>
<guid>http://arnoudm.wordpress.com/2007/12/04/high-performance-websites/</guid>
<description><![CDATA[KALAMI (n.) The ancient Eastern art of being able to fold road-maps properly. I remembered this quot]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><blockquote><p><strong>KALAMI (n.)</strong><br />
The ancient Eastern art of being able to fold road-maps properly.</p></blockquote>
<p>I remembered this quote from the <a href="http://folk.uio.no/alied/TMoL.html">Meaning of Liff</a> while thinking about my latest and recent involvement in tuning a web sites that are complex and have high volumes of traffic.</p>
<p>Complex websites have many components interacting horizontally (in sequence) and vertically (on top of each other like a stack). Sequential components such as firewalls, load balancers, web servers, application servers, databases, content management servers and third party applications. Throughput is determined by the weakest link in the chain. So remove one bottleneck and you end up searching in many places for the next bottle neck. A strategy often used is by offloading traffic from one complex component to a more simple component. Caching in front-end servers is a classic example of this strategy.</p>
<p>A website integrates vertically, meaning one components uses another component to function. Examples are the HTTP and TCP/IP protocol, application servers, Java, databases, Operating system and hardware. An improvement in one component can and most likely will influence the performance of the other, often in ways you do not expect it. Change something in HTTP for the better, can have a downside on the TCP/IP level.</p>
<p>As an example one discussion that came up was about honoring <a href="http://httpd.apache.org/docs/1.3/keepalive.html">Keep-Alive</a> on http requests. My wisdom and experience has learned me that Keep-Alive&#8217;s are bad things for servers with a lot of traffic. Some colleagues agreed, others disagreed. Who is right? Most likely it depends&#8230; on many factors. So no one can tell. A quick scan over some high volume sites (CCN, Amazon, Yahoo, Google, AOL) shows that opinions on this topic vary. Some use keep-alive&#8217;s others instruct the client to close the connection.</p>
<p>In high volume websites there are many components each having many options to tune the performance. You need to look at them individually, but at the same time honor their role in the greater whole. As a result there is no clear cut recipe how to set up a high volume website. What works in situation A might or might not work in situation B. So it all depends on the specific situation and experience of the team.</p>
<p>I have some knowledge on this subject but I am by no means an expert or authority on this subject. A good starting point this the Yahoo website about <a href="http://developer.yahoo.com/performance/">Exceptional Performance</a>.</p>
<p>What most online resources fail to point out is that no matter how many testing and preparation you do, the proof is in eating the pudding. And while you are watching your site slow down due to increased traffic, you need a good structure and set of rules to let the technical people do their work, make sure they progress in the right direction and keep the customer informed and involved what you are doing.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Teamspeak.]]></title>
<link>http://chaosblog.wordpress.com/2007/10/27/teamspeak/</link>
<pubDate>Sat, 27 Oct 2007 15:50:24 +0000</pubDate>
<dc:creator>chaosblog</dc:creator>
<guid>http://chaosblog.wordpress.com/2007/10/27/teamspeak/</guid>
<description><![CDATA[Für die Leute die schon mal mit dem Gedanken gespielt haben, sich einen eigenen Teamspeak-Server zu ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Für die Leute die schon mal mit dem Gedanken gespielt haben, sich einen eigenen Teamspeak-Server zu leisten hier ein paar Infos zu den technischen Hintergründen. Also was ist Teamspeak, was brauch Teamspeak und was kann es.</p>
<p>Recht oft höre ich &#8220;Teamspeak ist wie Skype nur mit mehr Leuten&#8221;. Teamspeak kann man nicht mit Skype vergleichen &#8211; das sind zwei grundlegend verschiedene Dinge. Einfach gesagt ist Teamspeak eine Art Sprachchat &#8211; Voice IRC so gesehen.</p>
<p>Jeder spricht mit jedem, man kann die Gespräche aber in Räume aufteilen. Ein Raum (Channel) z.B. für die Admins, einen für User, einen für Off-Topic-Gespräche. Im Gegensatz zu Skype gibt es keine Zweiergespräche &#8211; nur die Möglichkeit sich in ein Separee zurück zu ziehen.</p>
<p>Die kostenlose Version ist auf 1000 anwesende User beschränkt und darf nicht für kommerzielle Zwecke genutzt werden.</p>
<p>Auch die Sprachqualität ist eine Andere. Bei Skype kann ich je nach Einstellung und Bandbreite CD-Qualität erreichen, Teamspeak ist irgendwo zwischen analogem Telefon und ISDN angesiedelt, könnte allerdings aufgebohrt werden.</p>
<p>Die Qualität reicht aber locker aus &#8211; schließlich soll ja kein Konzert von Kraftwerk in Dolby Digital übertragen werden.</p>
<p>Nutzer die kein Mikro haben können einen Teamspeak-Channel betreten und einfach nur zuhören.</p>
<p>Die Channels lassen sich auch mit Passwörtern sichern &#8211; interessant für interne Bereiche. Genauso wie in einem Forum und im Chat können unterschiedlichen Nutzern unterschiedliche Rechte eingeräumt werden.</p>
<p>Hinsichtlich der CPU-Belastung brauch man sich keine Sorgen zu machen. Im Normalfall läuft Teamspeak auf einem Linuxserver. Folgende Anforderungen werden gestellt:</p>
<ul>
<li>ohne ein laufendes X-Window-System:
<ul>
<li>100 MHz CPU</li>
<li>32 MB Ram</li>
</ul>
</li>
<li>mit X-Window-Sytem:
<ul>
<li>166 MHz CPU</li>
<li>64 MB Ram</li>
</ul>
</li>
<li>6 MB Ram + Platz für Server-Logfiles, falls aktiviert</li>
</ul>
<p>Der erzeugte Traffic bzw. die benötigte Bandbreite hängt vom Codec und der Anzahl der User ab.</p>
<p>Die Bandbreite berechnet sich wie folgt:</p>
<ul>
<li>Down-Stream: Anzahl der Nutzer die gerade sprechen * Codec-Datenrate</li>
<li>Up-Stream: Anzahl der Nutzer die gerade sprechen * (Anzahl der Nutzer im Raum &#8211; 1) * Codec-Datenrate.</li>
</ul>
<p>Die Datenrate der einzelnen Räume einfach addieren. Die Codec-Datenrate erkennt man am Namen des Codecs. <em>Speex 9.3</em> braucht 9,3 kbit/s, <em>GSM 14.8</em> 14,8 kbit/s.</p>
<p>Bei 10 usern, 3 reden gleichzeitig, würden also 3 * 9,3 kbit/s = 27,9 kbit/s bzw. 3,4 kb/s an downstream und 3 * (10-1) * 9,3 kbit/s = 251,1 kbit/s bzw. 30,7 kb/s upstream anfallen.<br />
Da braucht Skype einiges mehr. Wie man sieht, ist das ganze immer abhängig davon, wieviele Labertaschen gerade da sind <img src="http://www.bundeswehrforum.de/forum/Smileys/default/smiley.gif" border="0" alt="Smiley" /></p>
<p>Welcher Codec genutzt wird ist geschmackssache und auch wieviel Lei(s)tung man hat. Es wird meist was zwischen Speex 9.3 und Speex 16.3 eingesetzt.</p>
<p>Nutzer die die Klappe halten und nur den geistigen Ergüssen der Anderen lauschen erzeugen auf dem Server kein Downtraffic. Es wird nur das übertragen, was durch das Mikro aufgenommen wird. Nimmt das Mikro nix auf, werden nur einzelne &#8220;keep-alive&#8221;-Packete gesendet.</p>
<p>Der Status, die Anzahl der Anwesenden im Channel und noch viele mehr Informationen kann man z.b. mittels PHP auf der eigenen Homepage oder dem eigenen Blog anzeigen lassen.</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
