<?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>My Workday</title>
	<atom:link href="http://www.goworkday.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goworkday.com</link>
	<description>Let&#039;s talk TECH</description>
	<lastBuildDate>Fri, 19 Feb 2010 21:54:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JProfiler: Getting Started</title>
		<link>http://www.goworkday.com/2010/02/04/jprofiler-getting-started/</link>
		<comments>http://www.goworkday.com/2010/02/04/jprofiler-getting-started/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 07:23:21 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Profiling]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=221</guid>
		<description><![CDATA[<br/>

JProfiler helps you find performance bottlenecks, pin down memory leaks and resolve threading issues in your Java application. JProfiler combines CPU, Memory and Thread profiling in one application and is developed by ej-technologies.  The latest version at the time of this article is 6.0.
]]></description>
			<content:encoded><![CDATA[<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace above"><script type="text/javascript"><!--
ch_client = "abukta";
ch_type = "mpu";
ch_width = 468;
ch_height = 120;
ch_color_bg = "";
ch_color_title = "";
ch_color_site_link = "";
ch_color_text = "";
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = "";
ch_font_text = "";
ch_sid = "wordpress-plugin";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>
<br/><p>JProfiler helps you find performance bottlenecks, pin down memory leaks and resolve threading issues in your Java application. JProfiler combines CPU, Memory and Thread profiling in one application and is developed by ej-technologies.  The latest version at the time of this article is 6.0.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2010/02/04/jprofiler-getting-started/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 5.5 and Semisynchronous Replication Available</title>
		<link>http://www.goworkday.com/2009/12/15/mysql-5-5-and-semi-sync-replication-available/</link>
		<comments>http://www.goworkday.com/2009/12/15/mysql-5-5-and-semi-sync-replication-available/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 22:04:37 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=205</guid>
		<description><![CDATA[<br/>

The new 5.5 is now available with &#8220;Semisynchronous Replication&#8221;.  This comes as an addition to the built-in asynchronous replication.   MySQL replication is asynchronous by default. Events written to the binary logs on the Master server being retrieved by the slave server(s). Unfortunately, the Master server has no knowledge of when the slave [...]]]></description>
			<content:encoded><![CDATA[<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace above"><script type="text/javascript"><!--
ch_client = "abukta";
ch_type = "mpu";
ch_width = 468;
ch_height = 120;
ch_color_bg = "";
ch_color_title = "";
ch_color_site_link = "";
ch_color_text = "";
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = "";
ch_font_text = "";
ch_sid = "wordpress-plugin";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>
<br/><p>The new 5.5 is now available with &#8220;Semisynchronous Replication&#8221;.  This comes as an addition to the built-in asynchronous replication.   MySQL replication is asynchronous by default. Events written to the binary logs on the Master server being retrieved by the slave server(s). Unfortunately, the Master server has no knowledge of when the slave has retrieved or processed these events.   As a result, when Master crashes, transactions committed on Master, might have not have been committed on the slave server(s). In other words, there is no guarantee that any event will ever reach any slave.</p>
<p>In case of  &#8220;Semisynchronous Replication&#8221;, the Master server blockes the transaction commit until at least one of the slave servers acknowledges the it has received all the events for that transaction.  Obviously, this is great for consistency, however it brings up questions about replication over the WWW which isn&#8217;t an uncommon practice.  In case of hitting the timeout limit (in case of no response from any of the slave servers), the Master server reverts back to asynchronous replication.</p>
<p>From MySQL support:</p>
<blockquote><p>
 To understand what the “semi” in “semisynchronous replication” means, compare it with asynchronous and fully synchronous replication:</p>
<p>    * With asynchronous replication, the master writes events to its binary log and slaves request them when they are ready. There is no guarantee that any event will ever reach any slave.<br />
    * With fully synchronous replication, when a master commits a transaction, all slaves also will have committed the transaction before the master returns to the session that performed the transaction. The drawback of this is that there might be a lot of delay to complete a transaction.<br />
    * Semisynchronous replication falls between asynchronous and fully synchronous replication. The master waits after commit only until at least one slave has received and logged the events. It does not wait for all slaves to acknowledge receipt, and it requires only receipt, not that the events have been fully executed and committed on the slave side.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/12/15/mysql-5-5-and-semi-sync-replication-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Humor: Software Development Cycle</title>
		<link>http://www.goworkday.com/2009/07/28/humor-software-development-cycle/</link>
		<comments>http://www.goworkday.com/2009/07/28/humor-software-development-cycle/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 02:55:41 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Humor]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/2009/07/28/humor-software-development-cycle/</guid>
		<description><![CDATA[<br/>

Software doesn&#8217;t just appear on the shelves by magic. That  program shrink-wrapped inside the box along with the  indecipherable manual and 12-paragraph disclaimer notice  actually came to you by way of an elaborate path, through  the most rigid quality control on the planet.   Here, shared for the first time [...]]]></description>
			<content:encoded><![CDATA[<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace above"><script type="text/javascript"><!--
ch_client = "abukta";
ch_type = "mpu";
ch_width = 468;
ch_height = 120;
ch_color_bg = "";
ch_color_title = "";
ch_color_site_link = "";
ch_color_text = "";
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = "";
ch_font_text = "";
ch_sid = "wordpress-plugin";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>
<br/><p>Software doesn&#8217;t just appear on the shelves by magic. That  program shrink-wrapped inside the box along with the  indecipherable manual and 12-paragraph disclaimer notice  actually came to you by way of an elaborate path, through  the most rigid quality control on the planet.   Here, shared for the first time with the general public, are  the inside details of the program development cycle.</p>
<p>1. Programmer produces code he believes is bug-free.<br />
2. Product is tested. 20 bugs are found.<br />
3. Programmer fixes 10 of the bugs and explains to the testing department that the other 10 aren&#8217;t really bugs.<br />
4. Testing department finds that five of the fixes didn&#8217;t  work and discovers 15 new bugs.<br />
5. See 3.<br />
6. See 4.<br />
7. See 5.<br />
8. See 6.<br />
9. See 7.<br />
10. See 8.<br />
11. Due to marketing pressure and an extremely pre-mature product announcement based on overly-optimistic programming schedule, the product is released.<br />
12. Users find 137 new bugs.<br />
13. Original programmer, having cashed his royalty check, is nowhere to be found.<br />
14. Newly-assembled programming team fixes almost all of the 137 bugs, but introduce 456 new ones.<br />
15. Original programmer sends underpaid testing department a postcard from Fiji. Entire testing department quits.<br />
16. Company is bought in a hostile takeover by competitor using profits from their latest release, which had 783 bugs.<br />
17. New CEO is brought in by board of directors. He hires programmer to redo program from scratch.<br />
18. Programmer produces code he believes is bug-free&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/07/28/humor-software-development-cycle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java: GC Options</title>
		<link>http://www.goworkday.com/2009/06/24/java-gc-options/</link>
		<comments>http://www.goworkday.com/2009/06/24/java-gc-options/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 21:40:48 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=127</guid>
		<description><![CDATA[<br/>

Verbose GC options



Option
Default value
Max Value
Description


-XX:+PrintGCDetails
false

PrintGC details


-XX:+PrintGCTimeStamps
false

Adds timestamp info to GC details


-XX:+PrintHeapAtGC
false

Prints detailed GC info including heap occupancy before and after GC


-XX:+PrintTenuringDistribution
false

Prints object aging or tenuring information


-XX:+PrintHeapUsageOverTime
false

Print heap usage and capacity with timestamps


-Xloggc:filename
false

Prints GC info to a log file


-verbose:gc
false

Prints some GC info


-XX:+PrintTLAB
false

Print TLAB information




Parallel Scavenge Collector



Option
Default value
Max Value
Description


-XX:UseParallelGC


Enables young generation parallel scavenge collector. Works only with [...]]]></description>
			<content:encoded><![CDATA[<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace above"><script type="text/javascript"><!--
ch_client = "abukta";
ch_type = "mpu";
ch_width = 468;
ch_height = 120;
ch_color_bg = "";
ch_color_title = "";
ch_color_site_link = "";
ch_color_text = "";
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = "";
ch_font_text = "";
ch_sid = "wordpress-plugin";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>
<br/><p><strong>Verbose GC options</strong></p>
<table border="1" cellspacing="0" cellpadding="2" width="500">
<tbody>
<tr>
<td class="yellowtitle" width="300">Option</td>
<td class="yellowtitle" width="75">Default value</td>
<td class="yellowtitle" width="75">Max Value</td>
<td class="yellowtitle" width="50">Description</td>
</tr>
<tr>
<td><code>-XX:+PrintGCDetails</code></td>
<td>false</td>
<td></td>
<td>PrintGC details</td>
</tr>
<tr>
<td><code>-XX:+PrintGCTimeStamps</code></td>
<td>false</td>
<td></td>
<td>Adds timestamp info to GC details</td>
</tr>
<tr>
<td><code>-XX:+PrintHeapAtGC</code></td>
<td>false</td>
<td></td>
<td>Prints detailed GC info including heap occupancy before and after GC</td>
</tr>
<tr>
<td><code>-XX:+PrintTenuringDistribution</code></td>
<td>false</td>
<td></td>
<td>Prints object aging or tenuring information</td>
</tr>
<tr>
<td><code>-XX:+PrintHeapUsageOverTime</code></td>
<td>false</td>
<td></td>
<td>Print heap usage and capacity with timestamps</td>
</tr>
<tr>
<td><code>-Xloggc:filename</code></td>
<td>false</td>
<td></td>
<td>Prints GC info to a log file</td>
</tr>
<tr>
<td><code>-verbose:gc</code></td>
<td>false</td>
<td></td>
<td>Prints some GC info</td>
</tr>
<tr>
<td><code>-XX:+PrintTLAB</code></td>
<td>false</td>
<td></td>
<td>Print TLAB information</td>
</tr>
</tbody>
</table>
<p><span id="more-127"></span><br />
<strong>Parallel Scavenge Collector</strong></p>
<table border="1" cellspacing="0" cellpadding="2" width="500">
<tbody>
<tr>
<td class="yellowtitle" width="235">Option</td>
<td class="yellowtitle" width="90">Default value</td>
<td class="yellowtitle" width="80">Max Value</td>
<td class="yellowtitle" width="95">Description</td>
</tr>
<tr>
<td><code>-XX:UseParallelGC</code></td>
<td></td>
<td></td>
<td>Enables young generation parallel scavenge collector. Works only with the default mark-sweep-compact collector. Do not use with the concurrent collector.</td>
</tr>
<tr>
<td><code>-XX:+UseAdaptiveSizePolicy</code></td>
<td>false</td>
<td></td>
<td>Automatically sizes the young generation and chooses an optimum survivor ratio to maximize performance.</td>
</tr>
<tr>
<td><code>-XX:+PrintAdaptiveSizePolicy</code></td>
<td>false</td>
<td></td>
<td>Prints information about adaptive size policy</td>
</tr>
<tr>
<td><code>-XX:ParallelGCThreads</code></td>
<td>As many threads as CPUs</td>
<td></td>
<td>Controls the number of threads used for copying collection</td>
</tr>
</tbody>
</table>
<p><strong>Parallel Copying Collector</strong></p>
<table border="1" cellspacing="0" cellpadding="2" width="500">
<tbody>
<tr>
<td class="yellowtitle" width="170">Option</td>
<td class="yellowtitle" width="85">Default value</td>
<td class="yellowtitle" width="75">Max Value</td>
<td class="yellowtitle" width="170">Description</td>
</tr>
<tr>
<td><code>-XX:+UseParNewGC</code></td>
<td></td>
<td></td>
<td>Enables young generation parallel copying collector. Use with concurrent collector or default mark-sweep-compact collector</td>
</tr>
<tr>
<td><code>-XX:ParallelGCThreads</code></td>
<td>As many threads as CPUs</td>
<td></td>
<td>Controls the number of threads used for copying collection</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/06/24/java-gc-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>千の風になって</title>
		<link>http://www.goworkday.com/2009/06/07/%e5%8d%83%e3%81%ae%e9%a2%a8%e3%81%ab%e3%81%aa%e3%81%a3%e3%81%a6/</link>
		<comments>http://www.goworkday.com/2009/06/07/%e5%8d%83%e3%81%ae%e9%a2%a8%e3%81%ab%e3%81%aa%e3%81%a3%e3%81%a6/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 18:34:35 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Japan]]></category>
		<category><![CDATA[song]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=121</guid>
		<description><![CDATA[<br/>


]]></description>
			<content:encoded><![CDATA[<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace above"><script type="text/javascript"><!--
ch_client = "abukta";
ch_type = "mpu";
ch_width = 468;
ch_height = 120;
ch_color_bg = "";
ch_color_title = "";
ch_color_site_link = "";
ch_color_text = "";
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = "";
ch_font_text = "";
ch_sid = "wordpress-plugin";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>
<br/><p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/MRAFYTNgXME&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/MRAFYTNgXME&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/06/07/%e5%8d%83%e3%81%ae%e9%a2%a8%e3%81%ab%e3%81%aa%e3%81%a3%e3%81%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Profiling MySQL Queries</title>
		<link>http://www.goworkday.com/2009/05/23/profiling-mysql-queries/</link>
		<comments>http://www.goworkday.com/2009/05/23/profiling-mysql-queries/#comments</comments>
		<pubDate>Sat, 23 May 2009 00:41:10 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=112</guid>
		<description><![CDATA[<br/>

Profiling Queries with SHOW STATUS
mysql&#62; flush status;
mysql&#62; select SQL_NO_CACHE count(*) from table;

- Check query plan now:

mysql&#62; show status like 'Select%';

- Check engine operations:

mysql&#62; show status like 'Handler%';

- Check if there was any ordering:

mysql&#62; show status like 'Sort%';

- Check how many temporary tables have been created:

mysql&#62; show status like 'Created%';


Profiling Queries with SHOW PROFILE

mysql&#62; set profile=1;
select [...]]]></description>
			<content:encoded><![CDATA[<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace above"><script type="text/javascript"><!--
ch_client = "abukta";
ch_type = "mpu";
ch_width = 468;
ch_height = 120;
ch_color_bg = "";
ch_color_title = "";
ch_color_site_link = "";
ch_color_text = "";
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = "";
ch_font_text = "";
ch_sid = "wordpress-plugin";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>
<br/><p><strong>Profiling Queries with SHOW STATUS</strong><code><br />
mysql&gt; flush status;<br />
mysql&gt; select SQL_NO_CACHE count(*) from table;<br />
</code><br />
- Check query plan now:<br />
<code><br />
mysql&gt; show status like 'Select%';<br />
</code><br />
- Check engine operations:<br />
<code><br />
mysql&gt; show status like 'Handler%';<br />
</code><br />
- Check if there was any ordering:<br />
<code><br />
mysql&gt; show status like 'Sort%';<br />
</code><br />
- Check how many temporary tables have been created:<br />
<code><br />
mysql&gt; show status like 'Created%';<br />
</code></p>
<p><span id="more-112"></span></p>
<p><strong>Profiling Queries with SHOW PROFILE</strong><br />
<code><br />
mysql&gt; set profile=1;<br />
select count(*) from table;<br />
mysql&gt; show profiles\G<br />
*************************** 1. row ***************************<br />
Query_ID: 1<br />
Duration: 9.28089300<br />
Query: select count(*) from table<br />
1 row in set (0.00 sec)<br />
mysql&gt; show profile;<br />
+--------------------+----------+<br />
| Status             | Duration |<br />
+--------------------+----------+<br />
| starting           | 0.165418 |<br />
| Opening tables     | 0.000024 |<br />
| System lock        | 0.000004 |<br />
| Table lock         | 0.000008 |<br />
| init               | 0.000014 |<br />
| optimizing         | 0.000006 |<br />
| statistics         | 0.000013 |<br />
| preparing          | 0.000012 |<br />
| executing          | 0.000006 |<br />
| Sending data       | 9.115348 |<br />
| end                | 0.000015 |<br />
| end                | 0.000004 |<br />
| query end          | 0.000003 |<br />
| freeing items      | 0.000008 |<br />
| closing tables     | 0.000004 |<br />
| logging slow query | 0.000002 |<br />
| cleaning up        | 0.000004 |<br />
+--------------------+----------+</code></p>
<p>mysql&gt; show profile cpu;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;+<br />
| Status             | Duration | CPU_user | CPU_system |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;+<br />
| starting           | 0.000063 | 0.000000 |   0.000000 |<br />
| query end          | 0.000004 | 0.000000 |   0.000000 |<br />
| freeing items      | 0.000005 | 0.000000 |   0.000000 |<br />
| logging slow query | 0.000003 | 0.000000 |   0.000000 |<br />
| cleaning up        | 0.000003 | 0.000000 |   0.000000 |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;+</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/05/23/profiling-mysql-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find the Biggest CPU Hog</title>
		<link>http://www.goworkday.com/2009/03/27/find-the-biggest-cpu-hog/</link>
		<comments>http://www.goworkday.com/2009/03/27/find-the-biggest-cpu-hog/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 04:36:34 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[ps]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=103</guid>
		<description><![CDATA[<br/>

Is a certain process running your CPU right into the ground? How do you find said process without picking your way through the ps aux results? With this command:
ps -e -o pcpu,cpu,nice,state,cputime,args --sort pcpu &#124; sed '/^ 0.0 /d'
&#8230;at which point you can kill it with sudo kill -9.
]]></description>
			<content:encoded><![CDATA[<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace above"><script type="text/javascript"><!--
ch_client = "abukta";
ch_type = "mpu";
ch_width = 468;
ch_height = 120;
ch_color_bg = "";
ch_color_title = "";
ch_color_site_link = "";
ch_color_text = "";
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = "";
ch_font_text = "";
ch_sid = "wordpress-plugin";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>
<br/><p>Is a certain process running your CPU right into the ground? How do you find said process without picking your way through the ps aux results? With this command:</p>
<p><code>ps -e -o pcpu,cpu,nice,state,cputime,args --sort pcpu | sed '/^ 0.0 /d'</code></p>
<p>&#8230;at which point you can kill it with sudo kill -9.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/03/27/find-the-biggest-cpu-hog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start MySQL with New Binaries and Other Misc Things</title>
		<link>http://www.goworkday.com/2009/02/28/start-mysql-with-new-binaries/</link>
		<comments>http://www.goworkday.com/2009/02/28/start-mysql-with-new-binaries/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 00:42:25 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Upgrade MySQL]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=92</guid>
		<description><![CDATA[<br/>


?View Code BASH1
2
./mysqld_safe --user=mysql --basedir=/usr/local/mysql-5.0.67-linux-x86_64-icc-glibc23
--ledir=/usr/local/mysql-5.0.67-linux-x86_64-icc-glibc23/bin --mysqld=mysqld


?View Code BASH1
2
./mysqladmin ext -u root -p -ri60
./mysqladmin ext -u root -p -ri60 &#124; grep tmp

]]></description>
			<content:encoded><![CDATA[<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace above"><script type="text/javascript"><!--
ch_client = "abukta";
ch_type = "mpu";
ch_width = 468;
ch_height = 120;
ch_color_bg = "";
ch_color_title = "";
ch_color_site_link = "";
ch_color_text = "";
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = "";
ch_font_text = "";
ch_sid = "wordpress-plugin";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>
<br/>
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code3'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p923"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p92code3"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>mysqld_safe <span style="color: #660033;">--user</span>=mysql <span style="color: #660033;">--basedir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql-5.0.67-linux-x86_64-icc-glibc23
<span style="color: #660033;">--ledir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql-5.0.67-linux-x86_64-icc-glibc23<span style="color: #000000; font-weight: bold;">/</span>bin <span style="color: #660033;">--mysqld</span>=mysqld</pre></td></tr></table></div>


<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code4'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p924"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p92code4"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>mysqladmin ext <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span> <span style="color: #660033;">-ri60</span>
.<span style="color: #000000; font-weight: bold;">/</span>mysqladmin ext <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span> <span style="color: #660033;">-ri60</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> tmp</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/02/28/start-mysql-with-new-binaries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Profiling Queries with SHOW STATUS</title>
		<link>http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/</link>
		<comments>http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 00:24:15 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=80</guid>
		<description><![CDATA[<br/>

The combination of FLUSH STATUS and SHOW SESSSION STATUS can be used to see what happens while MySQL executes a query. First, run FLUSH STATUS to reset session status variables to zero.
mysql&#62; FLUSH STATUS;
mysql&#62; SELECT COUNT(*) FROM TABLE;
]]></description>
			<content:encoded><![CDATA[<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace above"><script type="text/javascript"><!--
ch_client = "abukta";
ch_type = "mpu";
ch_width = 468;
ch_height = 120;
ch_color_bg = "";
ch_color_title = "";
ch_color_site_link = "";
ch_color_text = "";
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = "";
ch_font_text = "";
ch_sid = "wordpress-plugin";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>
<br/><p>The combination of FLUSH STATUS and SHOW SESSSION STATUS can be used to see what happens while MySQL executes a query. First, run FLUSH STATUS to reset session status variables to zero.</p>
<p>mysql&gt; FLUSH STATUS;</p>
<p>mysql&gt; SELECT COUNT(*) FROM TABLE;</p>

<a href='http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/mysqltune1/' title='mysqltune1'><img width="150" height="150" src="http://www.goworkday.com/wp-content/uploads/2009/02/mysqltune1-150x150.jpg" class="attachment-thumbnail" alt="mysqltune1 150x150 Profiling Queries with SHOW STATUS" title="mysqltune1" /></a>
<a href='http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/mysqltune2/' title='mysqltune2'><img width="150" height="150" src="http://www.goworkday.com/wp-content/uploads/2009/02/mysqltune2-150x150.jpg" class="attachment-thumbnail" alt="mysqltune2 150x150 Profiling Queries with SHOW STATUS" title="mysqltune2" /></a>
<a href='http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/mysqltune3/' title='mysqltune3'><img width="150" height="150" src="http://www.goworkday.com/wp-content/uploads/2009/02/mysqltune3-150x150.jpg" class="attachment-thumbnail" alt="mysqltune3 150x150 Profiling Queries with SHOW STATUS" title="mysqltune3" /></a>
<a href='http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/mysqltune4/' title='mysqltune4'><img width="150" height="150" src="http://www.goworkday.com/wp-content/uploads/2009/02/mysqltune4-150x150.jpg" class="attachment-thumbnail" alt="mysqltune4 150x150 Profiling Queries with SHOW STATUS" title="mysqltune4" /></a>
<a href='http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/mysqltune5/' title='mysqltune5'><img width="150" height="150" src="http://www.goworkday.com/wp-content/uploads/2009/02/mysqltune5-150x150.jpg" class="attachment-thumbnail" alt="mysqltune5 150x150 Profiling Queries with SHOW STATUS" title="mysqltune5" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Procedure to add a swap file</title>
		<link>http://www.goworkday.com/2009/02/03/procedure-to-add-a-swap-file/</link>
		<comments>http://www.goworkday.com/2009/02/03/procedure-to-add-a-swap-file/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 22:34:56 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[swap]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=75</guid>
		<description><![CDATA[<br/>

Procedure to add a swap file
You need to use dd command to create swapfile. Next you need to use mkswap command to set up a Linux swap area on a device or in a file.
a) Login as the root user
b) Type following command to create 512MB swap file (1024 * 512MB =  524288 block [...]]]></description>
			<content:encoded><![CDATA[<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace above"><script type="text/javascript"><!--
ch_client = "abukta";
ch_type = "mpu";
ch_width = 468;
ch_height = 120;
ch_color_bg = "";
ch_color_title = "";
ch_color_site_link = "";
ch_color_text = "";
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = "";
ch_font_text = "";
ch_sid = "wordpress-plugin";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>
<br/><h3>Procedure to add a swap file</h3>
<p>You need to use dd command to create swapfile. Next you need to use mkswap command to set up a Linux swap area on a device or in a file.</p>
<p>a) Login as the root user</p>
<p>b) Type following command to create 512MB swap file (1024 * 512MB =  524288 block size):</p>
<p><code># dd if=/dev/zero of=/swapfile1 bs=1024 count=524288</code></p>
<p>c) Set up a Linux swap area:</p>
<p><code># mkswap /swapfile1</code></p>
<p>d) Activate /swapfile1 swap space immediately:</p>
<p><code># swapon /swapfile1</code></p>
<p>e) To activate /swapfile1 after Linux system reboot, add entry to /etc/fstab file. Open this file using text editor such as vi:</p>
<p><code># vi /etc/fstab</code></p>
<p>Append following line:</p>
<p><code>/swapfile1    swap    swap   defaults 0 0</code></p>
<p>So next time Linux comes up after reboot, it enables the new swap file for you automatically.</p>
<p>g) How do I verify swap is activated or not?</p>
<p>Simply use free command:</p>
<p><code>$ free -m</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/02/03/procedure-to-add-a-swap-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
