LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-27-2004, 06:18 PM   #1
Registered: May 2001
Location: Belarus
Distribution: Debian
Posts: 120

Rep: Reputation: 15
perfomance monitoring on server

Hi! I want to know, how much cpu use some software (apache, perl, mysql) for perfomance optimization. The only idea I have is to parse top output.
Old 02-05-2013, 08:49 AM   #2
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,724

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
Very often, Nagios is used for this sort of big-picture view. It's a sort of framework into which many different kinds of monitors (including pre-existing ones) can be inserted.
Old 02-05-2013, 09:19 AM   #3
Senior Member
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: This is my kung.fu
Posts: 4,196
Blog Entries: 2

Rep: Reputation: Disabled
Easy SNMP Server and Client Configuration
Old 02-05-2013, 10:05 AM   #4
Registered: May 2001
Posts: 28,510
Blog Entries: 55

Rep: Reputation: 3269Reputation: 3269Reputation: 3269Reputation: 3269Reputation: 3269Reputation: 3269Reputation: 3269Reputation: 3269Reputation: 3269Reputation: 3269Reputation: 3269
Originally Posted by Bogdan View Post
Hi! I want to know, how much cpu use some software (apache, perl, mysql) for perfomance optimization. The only idea I have is to parse top output.
SNMP is an oft-forgotten completely undervalued method for polling assets for data. Nagios is most used for long term, continuous monitoring of local and remote assets (also see Monit, Munin, Zabbix, Cacti). Most of these these tools come with plugins to monitor for example the amount of MySQL queries and Apaches amount of busy / idle worker threads, etc, etc.

They're valuable tools but might be overkill if you need a quick fix and not continuous monitoring. IMHO the best way to start IMHO is to ask yourself and examine what it exactly is that you feel you need to optimize. To some extent (low resources, obsolete HW, misconfiguration and other bad admin practices aside) the LAMP web stack isn't the problem but what runs on top of it. If you're not that knowledgeable or creative then look at performance optimization documents first. These tutorials will often offer system and daemon-specific tools used for performance analysis and stress-testing. Start with with Atop, Collectl or Dstat and Apache Top and MySQL Top. And unless you're very disciplined making backups manually I suggest you add any versioning system you're comfortable with. Collected statistics and changes in performance aren't worth anything if you can't link them back to changes made earlier and it makes reverting easier. Before you turn to optimizing your LAMP web stack ensure you understand the system in terms of scheduling, Virtual Memory Management, networking and web server best practices. Simulate a system under stress with the aptly named 'stress' tool and fire of a gazillion requests using Apaches 'ab' benchmarking tool. For more search Sourceforge, Berlioz, Savannah.nongnu or the-site-formerly-known-as-Freshmeat for terms like "performance analysis" or "stress test" or "test harness" or "automated testing". HTH


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Server Monitoring vaworx Linux - General 3 08-22-2005 08:27 AM
server monitoring wedgeworth Linux - Networking 11 05-06-2004 10:31 PM
Server monitoring software. SSBN Linux - Networking 1 06-24-2003 04:40 PM
Server Monitoring Manuel-H Linux - General 1 04-19-2003 11:39 PM
monitoring proftp server adrianmak Linux - Networking 4 01-04-2003 09:46 AM

All times are GMT -5. The time now is 11:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration