<?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>RedHatVN Network &#187; mytop</title>
	<atom:link href="http://redhatvn.net/tag/mytop/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Tue, 07 Sep 2010 08:08:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing mytop</title>
		<link>http://redhatvn.net/installing-mytop</link>
		<comments>http://redhatvn.net/installing-mytop#comments</comments>
		<pubDate>Fri, 31 Jul 2009 17:12:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mytop]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=46</guid>
		<description><![CDATA[MySQL is one of the most important programs on a server, unfortunatly it is also pretty resource intensive. One a server it is not uncommon for a single user or even a query to take up the bulk of the servers cpu cycles. Mytop is a very useful program to see what queries a server [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>MySQL is one of the most important programs on a server, unfortunatly it is also pretty resource intensive. One a server it is not uncommon for a single user or even a query to take up the bulk of the servers cpu cycles. Mytop is a very useful program to see what queries a server is currently processing as well as which user is executing them. Think of mytop as top for mysql. If you see a lot from a user that means they are probably the hog. Mytop can also be useful for figuring out exactly which queries are causing the problem in the case of a self-designed website. The following is how to install mytop on the server and run it. Thanks to carlos for the actual commands</p>
<p><span id="more-46"></span>We are going to install 2 perl modules in addition to mytop to ensure that it will work.</p>
<p>Install TermReadKey:</p>
<p>cd /usr/local/src<br />
<span>wget <a href="http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-2.30.tar.gz" target="_blank">http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-2.30.tar.gz</a><br />
tar -zxf TermReadKey-2.30.tar.gz<br />
cd TermRead*<br />
perl Makefile.PL<br />
make test<br />
make<br />
make install<br />
cd ..</p>
<p>Now install DBI:</p>
<p>wget <a href="http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.48.tar.gz" target="_blank">http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.48.tar.gz</a><br />
tar -zxf DBI-1.48.tar.gz<br />
cd DBI*<br />
perl Makefile.PL<br />
make test<br />
make<br />
make install<br />
cd ..</p>
<p></span></p>
<p>Finally install mytop:</p>
<p><span>wget <a href="http://jeremy.zawodny.com/mysql/mytop/mytop-1.4.tar.gz" target="_blank">http://jeremy.zawodny.com/mysql/mytop/mytop-1.4.tar.gz</a><br />
tar -zxf mytop-1.4.tar.gz<br />
cd mytop*<br />
perl Makefile.PL<br />
make test<br />
make<br />
make install</span></div>
<div>
<p>Now simply run &#8220;mytop&#8221; and your done!</p></div>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/installing-mytop/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->