LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-27-2004, 06:18 PM   #1
Bogdan
Member
 
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
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
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
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

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

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:26 AM.

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