<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>10ninox blog &#187; Uncategorized</title>
	<atom:link href="http://blog.10ninox.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.10ninox.com</link>
	<description>where night is much more fun than a day</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:20:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Too many connections on MySQL server</title>
		<link>http://blog.10ninox.com/2011/06/too-many-connections-on-mysql-server/</link>
		<comments>http://blog.10ninox.com/2011/06/too-many-connections-on-mysql-server/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 14:40:55 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=811</guid>
		<description><![CDATA[If you are new to administrate all your web and database server and wonder how you can tweak to their best, you are just like me. My job was to build a webapp in order to handle roughly 10 grand &#8230; <a href="http://blog.10ninox.com/2011/06/too-many-connections-on-mysql-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are new to administrate all your web and database server and wonder how you can tweak to their best, you are just like me. My job was to build a webapp in order to handle roughly 10 grand of users, and this app was database-driven one. Its database is about 15GB with 25M records and is growing steadily. Well, traffic is also growing twice a month, approx. 8,000 visits; 260,000 pageviews a day as of now, according to Google Analytics. It&#8217;s relatively small if you compare to all giant sites these days. However, it&#8217;s not as easy as it seems once you are a coder, but have to manage all these things too. I&#8217;ll try to share as much information as I could as time goes by.</p>
<p>After I tweaked on coding side, e.g. indexing, using cache, bla bla bla, as much as I know. I have faced some weird issue that database server was down randomly while it didn&#8217;t even eat up all memory or frequently an popular &#8220;Too many connections&#8221; popping up. After googling for a while, I found that it could relate to several things: maximum connection on MySQL itself which is 100 as a default; maximum open files which is depending on OS; or simply out of memory. In my case, it surely is not memory issue, since top/free confirmed me about that. Then I have changed both maximum connection on MySQL and maximum open files on Linux:-</p>
<p>in <code>/etc/my.cnf</code>, you have to add another line setting this:</p>
<p><code>[mysqld]<br />
max_connections = 250 # or whatever</code></p>
<p>This would set new maximum connection limit for the database server, but it doesn&#8217;t guarantee if it can handle that&#8211;that&#8217;s also OS and memory related. After this change, restart MySQL daemon once to see the change.</p>
<p>For maximum open files, you can check by ulimit -n, if it&#8217;s over MySQL maximum connections, you can skip this part. If not, heading to <code>/etc/security/limits.conf</code>, and you can simply add:-</p>
<p><code>* hard nofile 2048<br />
* soft nofile 2048</code></p>
<p>If you are using SSH, you have to restart sshd once for new setting. So far, I&#8217;m happy with the new role and having fun tweaking it. If you have any suggestion, please share!</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=811&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2011/06/too-many-connections-on-mysql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maemo sucks as a phone but is good as a tablet.</title>
		<link>http://blog.10ninox.com/2011/01/maemo-sucks-as-a-phone-but-is-good-as-a-tablet/</link>
		<comments>http://blog.10ninox.com/2011/01/maemo-sucks-as-a-phone-but-is-good-as-a-tablet/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 07:48:36 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/2011/01/10/maemo-sucks-as-a-phone-but-is-good-as-a-tablet/</guid>
		<description><![CDATA[This is tesing from MAStory on Nokia N900.]]></description>
			<content:encoded><![CDATA[<p>This is tesing from MAStory on Nokia N900.</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=789&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2011/01/maemo-sucks-as-a-phone-but-is-good-as-a-tablet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://blog.10ninox.com/2007/08/hello-world/</link>
		<comments>http://blog.10ninox.com/2007/08/hello-world/#comments</comments>
		<pubDate>Sat, 04 Aug 2007 17:22:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=1&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2007/08/hello-world/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

