Академический Документы
Профессиональный Документы
Культура Документы
Advertise
LinuxServices
About
Archives
ContactUs
CopyrightPolicy
Search
Home
LinuxDistros
InterviewQuestions
ShellScripting
FreeLinuxeBooks
LinuxCommands
Tools
DonatetoTecMint
LFCSLinuxFoundationCertifiedSysAdminExamPreparationGuide
20CommandLineToolstoMonitorLinuxPerformance
ByRaviSaiveUnder:LinuxCommands,MonitoringToolsOn:April27,2014
ItsreallyverytoughjobforeverySystemorNetworkadministratortomonitoranddebugLinuxSystemPerformanceproblemseveryday.AfterbeingaLinux
Administratorfor5yearsinITindustry,Icametoknowthathowhardistomonitorandkeepsystemsupandrunning.Forthisreason,wevecompiledthelistof
Top20frequentlyusedcommandlinemonitoringtoolsthatmightbeusefulforeveryLinux/UnixSystemAdministrator.Thesecommandsareavailableunderall
flavorsofLinuxandcanbeusefultomonitorandfindtheactualcausesofperformanceproblem.Thislistofcommandsshownhereareveryenoughforyoutopick
theonethatissuitableforyourmonitoringscenario.
LinuxCommandLineMonitoring
1.TopLinuxProcessMonitoring
LinuxTopcommandisaperformancemonitoringprogramwhichisusedfrequentlybymanysystemadministratorstomonitorLinuxperformanceanditis
availableundermanyLinux/Unixlikeoperatingsystems.Thetopcommandusedtodipslayalltherunningandactiverealtimeprocessesinorderedlistand
updatesitregularly.ItdisplayCPUusage,Memoryusage,SwapMemory,CacheSize,BufferSize,ProcessPID,User,Commandsandmuchmore.Italso
showshighmemoryandcpuutilizationofarunningprocessess.Thetopcommandismuchuserfulforsystemadministratortomonitorandtakecorrectaction
whenrequired.Letsseetopcommandinaction.
# top
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 1/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
TopCommandExample
FormoreexamplesofTopcommandread:12TOPCommandExamplesinLinux
2.VmStatVirtualMemoryStatistics
LinuxVmStatcommandusedtodisplaystatisticsofvirtualmemory,kernerlthreads,disks,systemprocesses,I/Oblocks,interrupts,CPUactivityandmuch
more.BydefaultvmstatcommandisnotavailableunderLinuxsystemsyouneedtoinstallapackagecalledsysstatthatincludesavmstatprogram.Thecommon
usageofcommandformatis.
# vmstat
FormoreVmstatexamplesread:6VmstatCommandExamplesinLinux
3.LsofListOpenFiles
LsofcommandusedinmanyLinux/Unixlikesystemthatisusedtodisplaylistofalltheopenfilesandtheprocesses.Theopenfilesincludedarediskfiles,
networksockets,pipes,devicesandprocesses.Oneofthemainreasonforusingthiscommandiswhenadiskcannotbeunmountedanddisplaystheerrorthat
filesarebeingusedoropened.Withthiscommmandyoucaneasilyidentifywhichfilesareinuse.Themostcommonformatforthiscommandis.
# lsof
Morelsofcommandusageandexamples:10lsofCommandExamplesinLinux
4.TcpdumpNetworkPacketAnalyzer
TcpdumponeofthemostwidelyusedcommandlinenetworkpacketanalyzerorpacketssnifferprogramthatisusedcaptureorfilterTCP/IPpacketsthat
receivedortransferredonaspecificinterfaceoveranetwork.Italsoprovidesaoptiontosavecapturedpackagesinafileforlateranalysis.tcpdumpisalmost
availableinallmajorLinuxdistributions.
# tcpdump -i eth0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
22:08:59.617628 IP tecmint.com.ssh > 115.113.134.3.static-mumbai.vsnl.net.in.28472: P 2532133365:2532133481(116) ack 3561562349 win 9648
22:09:07.653466 IP tecmint.com.ssh > 115.113.134.3.static-mumbai.vsnl.net.in.28472: P 116:232(116) ack 1 win 9648
22:08:59.617916 IP 115.113.134.3.static-mumbai.vsnl.net.in.28472 > tecmint.com.ssh: . ack 116 win 64347
Formoretcpdumpusageread:12TcpdumpCommandExamplesinLinux
5.NetstatNetworkStatistics
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 2/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
Netstatisacommandlinetoolformonitoringincomingandoutgoingnetworkpacketsstatisticsaswellasinterfacestatistics.Itisveryusefultoolforevery
systemadministratortomonitornetworkperformanceandtroubleshootnetworkrelatedproblems.
# netstat -a | more
MoreNetstatexamples:20NetstatCommandExamplesinLinux.
6.HtopLinuxProcessMonitoring
HtopisamuchadvancedinteractiveandrealtimeLinuxprocessmonitoringtool.ThisismuchsimilartoLinuxtopcommandbutithassomerichfeatureslike
userfriendlyinterfacetomanageprocess,shortcutkeys,verticalandhorizontalviewoftheprocessesandmuchmore.Htopisathirdpartytoolanddoesnt
includedinLinuxsystems,youneedtoinstallitusingYUMpackagemanagertool.Formoreinformationoninstallationreadourarticlebelow.
# htop
HtopCommandExampleScreenshot
ForHtopinstallationread:InstallHtop(LinuxProcessMonitoring)inLinux
7.IotopMonitorLinuxDiskI/O
IotopisalsomuchsimilartotopcommandandHtopprogram,butithasaccountingfunctiontomonitoranddisplayrealtimeDiskI/Oandprocesses.Thistool
ismuchusefulforfindingtheexactprocessandhighuseddiskread/writesoftheprocesses.
# iotop
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 3/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
IotopCommandExampleScreenshot
ForIoptopinstallationandusageread:InstallIotopinLinux
8.IostatInput/OutputStatistics
IoStatissimpletoolthatwillcollectandshowsysteminputandoutputstoragedevicestatistics.Thistoolisoftenusedtotracestoragedeviceperformanceissues
includingdevices,localdisks,remotediskssuchasNFS.
# iostat
FormoreIostatusageandexamplesvisit:6IostatCommandExamplesinLinux
9.IPTrafRealTimeIPLANMonitoring
IPTrafisanopensourceconsolebasedrealtimenetwork(IPLAN)monitoringutilityforLinux.ItcollectsavarietyofinformationsuchasIPtrafficmonitorthat
passesoverthenetwork,includingTCPflaginformation,ICMPdetails,TCP/UDPtrafficbreakdowns,TCPconnectionpacketandbynecounts.Italsogathers
informationofgeneralanddetaledinterfacestatisticsofTCP,UDP,IP,ICMP,nonIP,IPchecksumerrors,interfaceactivityetc.
IPTrafficMonitor
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 4/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
FormoreinformationandusageofIPTraftool,pleasevisit:IPTrafNetworkMonitoringTool
10.PsacctorAcctMonitorUserActivity
psacctoraccttoolsareveryusefulformonitoringeachusersactivityonthesystem.Bothdaemonsrunsinthebackgroundandkeepsaclosewatchontheoverall
activityofeachuseronthesystemandalsowhatresourcesarebeingconsumedbythem.
Thesetoolsareveryusefulforsystemadministratorstotrackeachusersactivitylikewhattheyaredoing,whatcommandstheyissued,howmuchresourcesare
usedbythem,howlongtheyareactiveonthesystemetc.
ForinstallationandexampleusageofcommandsreadthearticleonMonitorUserActivitywithpsacctoracct
11.MonitLinuxProcessandServicesMonitoring
Monitisafreeopensourceandwebbasedprocesssupervisionutilitythatautomaticallymonitorsandmanagerssystemprocesses,programs,files,directories,
permissions,checksumsandfilesystems.
ItmonitorsserviceslikeApache,MySQL,Mail,FTP,ProFTP,Nginx,SSHandsoon.Thesystemstatuscanbeviewedfromthecommandlineorusingitownweb
interface.
MonitLinuxProcessMonitoring
ReadMore:LinuxProcessMonitoringwithMonit
12.NetHogsMonitorPerProcessNetworkBandwidth
NetHogsisanopensourcenicesmallprogram(similartoLinuxtopcommand)thatkeepsataboneachprocessnetworkactivityonyoursystem.Italsokeepsa
trackofrealtimenetworktrafficbandwidthusedbyeachprogramorapplication.
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 5/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
NetHogsLinuxBandwidthMonitoring
ReadMore:MonitorLinuxNetworkBandwidthUsingNetHogs
13.iftopNetworkBandwidthMonitoring
iftopisanotherterminalbasedfreeopensourcesystemmonitoringutilitythatdisplaysafrequentlyupdatedlistofnetworkbandwidthutilization(sourceand
destinationhosts)thatpassingthroughthenetworkinterfaceonyoursystem.iftopisconsideredfornetworkusage,whattopdoesforCPUusage.iftopisatop
familytoolthatmonitoraselectedinterfaceanddisplaysacurrentbandwidthusagebetweentwohosts.
iftopNetworkBandwidthMonitoring
ReadMore:iftopMonitorNetworkBandwidthUtilization
14.MonitorixSystemandNetworkMonitoring
MonitorixisafreelightweightutilitythatisdesignedtorunandmonitorsystemandnetworkresourcesasmanyaspossibleinLinux/Unixservers.Ithasabuiltin
HTTPwebserverthatregularlycollectssystemandnetworkinformationanddisplaythemingraphs.ItMonitorssystemloadaverageandusage,memory
allocation,diskdriverhealth,systemservices,networkports,mailstatistics(Sendmail,Postfix,Dovecot,etc),MySQLstatisticsandmanymore.Itdesigned
tomonitoroverallsystemperformanceandhelpsindetectingfailures,bottlenecks,abnormalactivitiesetc.
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 6/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
MonitorixMonitoring
ReadMore:MonitorixaSystemandNetworkMonitoringToolforLinux
15.ArpwatchEthernetActivityMonitor
ArpwatchisakindofprogramthatisdesignedtomonitorAddressResolution(MACandIPaddresschanges)ofEthernetnetworktrafficonaLinuxnetwork.It
continuouslykeepswatchonEthernettrafficandproducesalogofIPandMACaddresspairchangesalongwithatimestampsonanetwork.Italsohasafeatureto
sendanemailalertstoadministrator,whenapairingaddedorchanges.ItisveryusefulindetectingARPspoofingonanetwork.
ReadMore:ArpwatchtoMonitorEthernetActivity
16.SuricataNetworkSecurityMonitoring
SuricataisanhighperformanceopensourceNetworkSecurityandIntrusionDetectionandPreventionMonitoringSystemforLinux,FreeBSDand
Windows.ItwasdesignedandownedbyanonprofitfoundationOISF(OpenInformationSecurityFoundation).
ReadMore:SuricataANetworkIntrusionDetectionandPreventionSystem
17.VnStatPHPMonitoringNetworkBandwidth
VnStatPHPawebbasedfrontendapplicationformostpopularnetworkingtoolcalledvnstat.VnStatPHPmonitorsanetworktrafficusageinnicelygraphical
mode.ItdisplaysatotalINandOUTnetworktrafficusageinhourly,daily,monthlyandfullsummaryreport.
ReadMore:VnStatPHPMonitoringNetworkBandwidth
18.NagiosNetwork/ServerMonitoring
Nagiosisanleadingopensourcepowerfulmonitoringsystemthatenablesnetwork/systemadministratorstoidentifyandresolveserverrelatedproblemsbeforethey
affectmajorbusinessprocesses.WiththeNagiossystem,administratorscanabletomonitorremoteLinux,Windows,Switches,RoutersandPrintersonasingle
window.Itshowscriticalwarningsandindicatesifsomethingwentwronginyournetwork/serverwhichindirectlyhelpsyoutobeginremediationprocessesbefore
theyoccur.
ReadMore:InstallNagiosMonitoringSystemtoMonitorRemoteLinux/WindowsHosts
19.Nmon:MonitorLinuxPerformance
Nmon(standsforNigelsperformanceMonitor)tool,whichisusedtomonitorallLinuxresourcessuchasCPU,Memory,DiskUsage,Network,Topprocesses,
NFS,Kernelandmuchmore.Thistoolcomesintwomodes:OnlineModeandCaptureMode.
TheOnlineMode,isusedforrealtimemonitoringandCaptureMode,isusedtostoretheoutputinCSVformatforlaterprocessing.
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 7/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
NmonMonitoring
ReadMore:InstallNmon(PerformanceMonitoring)ToolinLinux
20.Collectl:AllinOnePerformanceMonitoringTool
Collectlisayetanotherpowerfulandfeaturerichcommandlinebasedutility,thatcanbeusedtogatherinformationaboutLinuxsystemresourcessuchasCPU
usage,memory,network,inodes,processes,nfs,tcp,socketsandmuchmore.
CollectlMonitoring
ReadMore:InstallCollectl(AllinOnePerformanceMonitoring)ToolinLinux
WewouldliketoknowwhatkindofmonitoringprogramsyouusetomonitorperformanceofyourLinuxservers?Ifwevemissedanyimportanttoolthatyou
wouldlikeustoincludeinthislist,pleaseinformusviacommentsandpleasedontforgettoshareit.
ReadAlso:13LinuxPerformanceMonitoringToolsPart2
Bio LatestPosts
RaviSaive
OwneratTecMint.com
SimpleWordaComputerGeekandLinuxGuruwholovestosharetricksandtipsonInternet.MostOfMyServersrunsonOpenSource
PlatformcalledLinux.
Yournamecanalsobelistedhere.WorkasaPaidfreelancer/writeratTecMint.
DownloadFreeeBooks
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 8/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
330
Tweet
4.3k
Like
557
41
Share
82
comments
PreviousPost
Nmon:AnalyzeandMonitorLinuxSystemPerformance
NextPost
linuxdash:MonitorsLinuxServerPerformanceRemotelyUsingWebBrowser
RelatedPost(s):
1. Observium:ACompleteNetworkManagementandMonitoringSystemforRHEL/CentOS
2. 20PracticalExamplesofRPMCommandsinLinux
3. MonitorServerLogsinRealTimewithLog.ioToolonRHEL/CentOS7/6
4. 12TOPCommandExamplesinLinux
5. ArpwatchTooltoMonitorEthernetActivityinLinux
6. 18TarCommandExamplesinLinux
82Responses
1. itoctopussays:
September16,2012at7:44pm
WhiletopisoneofthemostusedLinuxtools,itisalsooneofthemostannoying.htopisabetteralternative,butrarearethosesystemadministratorswho
arewillingtoinstallitespeciallyiftheirserverhasalotofsensitiveinformation.
Linuxisreallybehindwhenitcomestoperformancemonitoring,andIdontseeanymajoradvancementsinthisfield15yearsago.
Reply
Victorsays:
April6,2013at8:43pm
Whatsannoyingabouttop..?
Reply
TechieTalkssays:
April7,2013at9:43am
Yeah,Iwonderwhatannoysyou.
Reply
~oliversays:
May4,2013at8:34pm
Iunderstandwhatheissaying.TOPisnotwhereIwouldgofirst.vmstatisstillmyfavoriteforinitialdiagnosis.YoucanuseTOPtodrill
furtherdownintotheissue.
Reply
Joelsays:
March3,2014at3:54pm
Whatstheproblemwithhtopandsensitivedata?Isitknownvulnerableor?
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 9/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
Reply
Craigsays:
July15,2014at2:35pm
Itgivesnearrealtimeinformationaboutprocessesandcankill/examinethem.Thatissensitiveinfo.Ahighpercentageofsoftwareissomewhat
vulnerabletocyberattacks(giveinformationfromthesystemthatcanhelpinattacks),itsaccessthatyoumustpreventotherthangettingridof
usefulsoftware.
Reply
DocSalvagersays:
October8,2014at1:15pm
Itgivesnearrealtimeinformationaboutprocessesandcankill/examinethem.
Onlyifyouhavetheappropriatepermissionsto.Readingitandaffectingitaretwoentirelydifferentthings.
Reply
ovisays:
October7,2014at7:15pm
HowisLinuxbehindwhenitcomestoperformancemonitoring?comparedtowhatOS?LinuxandmostUNIXesofferthepossibilitytoknowatevery
timewhateachprocessisdoing,andtherearenohiddenorbackgroundprocesses.AlittleknowledgeofhowLinuxworkswouldhavestoppedyou
fromutteringsuchanidioticstatement.
IwouldsayLinuxisfaraheadanyothersystemswhenitcomestoperformancemonitoring
Reply
2. FreeLinuxsays:
November19,2012at4:57am
Goodread,IhaveMint13installedandsomeofthesetoolsarenotinstalledbydefault.topis,ofcourse,andisoneofmyfavoritesforagoodsummaryof
currentusageinformation.
Reply
3. Gilanksays:
March4,2013at3:11pm
+1Alsouseddstatcommandtoseeliveprocessofsend/receiveovertheethernet
Reply
4. Jerichosays:
March20,2013at5:44pm
Greatstuff.Ilovejnettop.ItssiimilartoIPTrafbutsuperiortoit,IMO.
Allthetoolsaregreatbutnothingcomparestogettingabaselineonyourserversbeforetheyfreakoutsoyouknowwhatnormalisforthatspecificbox.
Reply
5. Nicolargosays:
April4,2013at11:46pm
AlsohavealookonGlances,anewsystemmonitoringtoolwithCPU,MEM,LOAD,Network,IOdisk,Filesystemandprocessesstats.
WillbeincludedinthenextDebianrelease.
Reply
convergesays:
April27,2014at9:08pm
Glancesisawesome!Justinstalledit,averynicerealtimemonitor.
Reply
6. RahulGhosesays:
April6,2013at2:18pm
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 10/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
Veryinformativeindeed!Iwasfamiliarwithmostitemshere.Netstatisundoubtedlyoneofthemostusedfornetworkmonitoring.Wellmonitcameasa
surprisereally.
Reply
7. Naveensays:
April6,2013at4:18pm
Thanks!
Reply
8. DocJsays:
April6,2013at6:13pm
Nomentionofsar?Inmyopinion,sarisoneofthemostversatiletoolsforsystemperformancemonitoring.Notonlycanyouseestatsinrealtime,but
historicaldataissavedaswell.Thiscanprovidevaluableinsightintowhatisnormal(abaseline,ifyouwill)forsystemperformanceasitrelatestoI/O,
memoryuse,andCPUuse,amongstotherthings.Whiletherestofthesearegoodtools,Imsurprisedthereisabsolutelynomentionofsar.
Reply
RaviSaivesays:
April6,2013at10:12pm
Thearticleisonitsway,willincludesoontothislist..Thanks..
Reply
kalyanisays:
April4,2014at11:32am
IfyoulikesaryouwilldefinitelyfindSeaLion(https://sealion.com)worthit.Itgivessarlikeoutputsinaniceorganizedtimelinetocheckdatainthe
past.
@Ravi,thanks..veryusefularticle.
Reply
9. Marianosays:
April6,2013at9:38pm
Thankyou!
Reply
10. Jonsays:
April7,2013at1:55am
Ilikerainbarftoo.
Reply
11. dclsvsays:
April7,2013at3:19am
Whileallofthesetoolsarenice,Ifindtheapproachofloggingintoeachmachineyoumanagetogetthisinfotobelaborious.
Ifyoucanrunthecommandlocally,youshouldbeabletocreateapluginforNagios(orwhateveryoureusing)topresentthedataaspartofthelarger
picture.
Reply
kevinsays:
January16,2014at11:17am
YoucoulduseSeaLiontodotheworkforyou.Installtheagentonallthosesystemsonce(andjustonecommandtoo!!)andyouaregoodtogo.Most
ofthedefaultcommandwouldservewouldbesufficient,butyoustillgettoaddanyextracommandsyouwanttorunonallthoseservers.Noneedto
sshintoallmachineseverytime.
Nagiosalthoughnotparticularlypainfultouse,usingSeaLionmakesyouwonderjusthoweasyitcanget.
Reply
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 11/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
Aloksays:
June14,2014at1:42pm
WellSaidIamusingit
Reply
12. Xenonsays:
April7,2013at4:48pm
WTF!YouhaveusedPuTTYtointroduceaudiencetoLinuxterminal!?Whydidyoudothistous?AndItsnotatallafulllist.Irecommendusingfree
insteadvmstatbecauseitsmoresimple.Justcheckthisout:
xenon@xenondev:~$freeh
totalusedfreesharedbufferscached
Mem:7,5G4,3G3,2G0B346M2,5G
/+buffers/cache:1,5G6,0G
Swap:1,9G0B1,9G
Reply
13. id_rsasays:
April7,2013at6:02pm
Letmeaddtotopfamilyiftoptool.Itmonitorsspecifiednetworkinterfaceinarealtime.Andthereissstool,thatisdoingalmostthesamejobasnetstat
does,butitissimpler.Finally,thereistoolnamedwatch,whichexecutesaprogramperiodically,showingoutputfullscreen.Thistooldoesntdomonitoring
itself,butcanrunothertools,e.g.watchdfhfordiskspacemonitoring.
Reply
14. Joesays:
April7,2013at10:23pm
iftopismissing!!!
Reply
RaviSaivesays:
April8,2013at5:10pm
Includediftoptoolassuggested..Thanks..
Reply
15. Pawansays:
April17,2013at1:43pm
Veryinformativepost.Inevernewthereweresomanycommandsforsamework.
Reply
16. Eduelocosays:
April26,2013at12:10am
Ifoundnmonquiteuseful.
Reply
17. Alensays:
May4,2013at5:05pm
Quiteusefulcollection.
Reply
18. angelbladesays:
May5,2013at9:13am
iwilladdnmon
Reply
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 12/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
19. Joesays:
May7,2013at8:50pm
Canssgetsomelove?
Reply
20. PhilKingstonsays:
May7,2013at9:31pm
Greatlist.IfyouareanApachehttpduser,Iwouldalsorecommendapachetop:
http://www.fr3nd.net/projects/apachetop/
Reply
RaviSaivesays:
May7,2013at9:33pm
ThanksPhil.
Reply
21. RoseHostingsays:
May8,2013at8:51am
hi,
thanksforsharingsuchagreatpost.Iwantedtoaddatoptothelistasitisverynicetool.reallyyoushouldcheckitifyouhaventalready.
http://linux.die.net/man/1/atop
Reply
22. Manikandansays:
June6,2013at3:59pm
HiFriend,
blogwasveryuse.onemoredoubtcanyouhelpme
Thanks&Regards
Manikandan.K
Reply
RaviSaivesays:
June6,2013at4:08pm
Yes!weareheretohelpyouall.Postyourqueryhere.
Reply
23. joesatchsays:
June6,2013at7:27pm
hithxforsharing.
80%ofthosetoolsihaveusealso.greatinfo
rs
Reply
24. Ganeshsays:
June6,2013at10:24pm
uptimeandprstatcommandsaremissinghere.
Reply
RaviSaivesays:
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 13/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
June7,2013at1:47pm
Willadditthesetwomissingcommandstothelist.
Reply
25. NgocPTsays:
June24,2013at5:31pm
Ithinkdstatisoneofbestcommandformonitoringlinuxsystem??Ialwaysuseiostatanddstat,maybedstatismissinghere
Reply
RaviSaivesays:
June24,2013at7:10pm
Thanks,willsoonbeincludeddstatinthelist.
Reply
26. Yizharsays:
June26,2013at3:36pm
OneofthebestpostinthissubjectweeldoneRavi:)
Iusedforquitlongsomeofthis:htop,iptraf,nmon(shouldaddedassomeoftheguys
said)andothergenralcmdlike:netstat,vmstat,sar,dig,traceroute(shouldadded,defaultinRedHat&SuSE).
TodayIaddedtomyarsenalheabove:iotop,dstat,nethogs,iftop,monit.
Suggestingsomeotherfreestuff(somearebuiltinindistrebutionslike:Ubuntu/mint,Fedora,SuSEandotherbutnotinRedHat5andbelowforexample):
mtrMonitornetworkTRaffice.
iperfIpPerformanceabeatoldschool:)
vnstatAnothernetworkmonitormonitor+logging.
lshwLiStHardWare.
figletbanner.
treeahierarchylookonfilesystem.
Reply
27. Mareksays:
July9,2013at11:18am
IdontseebetweenthemsarstatisticsorKsartool.
Reply
28. Realbandasays:
July12,2013at12:32am
ThisisanamazingreviewThanksforsharing
Keeppostingnewthings..
Reply
29. Lionsays:
July12,2013at12:47pm
IsthereanytoolstomonitortheloadingofGPU?
Reply
30. rigelsays:
July19,2013at1:08pm
IncludeNMON,thisisveryuseful
Reply
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 14/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
RaviSaivesays:
July19,2013at2:17pm
Yes!surelywillwriteuponNMONtool.Thanks..
Reply
31. KarlCramptonsays:
July25,2013at8:31pm
Ithinkaveryusefulcommandiswthisshowswhoisloggedonandwhattheyaredoing.youcanalsousewatchwtoviewthisinformationinrealtime.
Reply
32. DocJsays:
August31,2013at6:39pm
Idontunderstandwhymoreoftheseperformancemonitoringpostsdontmentionsarorksar.Whenyoutalkaboutperformancemonitoring,thesearetwoof
themostusefultoolsoutthere.Topandallofitsvariantsareniceforperformancemonitoringatthetimeyouusethem,buttheydontpublishtoalog(unless
youwhacktogetherascript).
Sarcanbeusedwiththeoflagtodropitsdataintoanoutputfile(whichdefaultsto/var/log/sa/sa`date+%d`and/var/log/sa/sar`date+%d`).Thenyoucan
useamultitudeofflagsagainstthesefilestocheckstatisticsforjustabouteveryconceivablerelevantserverstatistic.
Themanpageisavailablehere:
http://linux.die.net/man/1/sar
Veryusefultool,andIdontthinkitgetsenoughpublicity.
Reply
DocSalvagersays:
October8,2014at1:24pm
Iexpectsomeofthesetoolsareusingsarunderneath.Ivefoundittobetheleastresourceintensivewaytomonitor.
Whereasmostofthesetoolsgiveyoutherealtimepicture,sarcanbecalledeveryfewsecondswithlittlemeasurableCPUusetostoredatahistorically.
ThengraphthatinnearrealtimetoseetrendslikerisingCPUusageandfallingfreememory.
WelldonearticleRavi.
Reply
33. Bhupathisays:
September6,2013at12:07pm
Nicecollectionofcommands.ExplainedwithScreenshotwasagoodrepresentationstyle.Thanksforthat.
Reply
34. RajeshAChivatesays:
October10,2013at10:28pm
Verynice,thanks
Reply
35. Rahulsays:
October21,2013at9:21pm
hiRavi,
Likedyouarticle17CommandLineToolstoMonitorLinuxPerformance
itisveryhelpful
Thanks
Rahul
Reply
36. Tamilselvisays:
October30,2013at2:57pm
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 15/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
Hi,
PleasesuggestmethelistoftoolstomonitortheperformanceoftheLinuxSever.Opensourcewillbeprefered.
Awaitingforthereply..
Thanksinadvance.
Reply
Tamilselvisays:
October30,2013at3:04pm
Irequirethetooltobeinstalledintheclientmachiceanditshouldmonitortheperformanceoftheserver.
Reply
RaviSaivesays:
October30,2013at6:26pm
Youcanselectfromthelistthatsuitsyourneeds.
Reply
37. danielnsays:
November8,2013at10:28pm
YousayOpenSourcePlatformcalledLinuxwhereasyouarereferringtoGNU/Linux.Linuxbeingjustathekernel,GNU/LinuxbeinganOperating
System(whichisnotaplatform).AplatformiscomprisedofanOperatingSystemontopofahardwarearchitecture.
QuiteanoticeablemistakeforaLinuxguru.
Reply
38. samsays:
November9,2013at2:50am
awesomethanks!
Reply
39. ranganthsays:
November13,2013at3:26pm
usefulinformation..keepitup
Reply
40. JoyBanerjeesays:
December7,2013at12:49am
Thanksthesecommandswillhelpmealot
Reply
41. Shubhanshsays:
December12,2013at6:57pm
ThereisnewcloudbasedserviceSeaLion(https://sealion.com)whichexecutesmanyofthesecommandsbydefaultandotherscanbeadded/modifiedtosee
outputofcommandsonbeautifulwebinterface.
Reply
Shubhanshsays:
December12,2013at6:58pm
Andofcourse,justtoadd,SeaLionisfree:)
Reply
42. raghavsays:
December22,2013at4:13pm
temperaturemonitoring?
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 16/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
Reply
43. raghavsays:
December22,2013at4:14pm
Goodlist.thanks.
canyoualsoincludehowwecanmonitorcpu,gpu,hddtemperature?
Reply
44. Mariosays:
December23,2013at7:46am
howwouldyoudeterminetheamountofphysicalandvirtualmemoryonaLinuxsystem,anditscurrentusage,inonecommand?
thankyou
Reply
MRMsays:
March17,2014at12:04am
freemwillshowtotal,cache,andusedmemory,quick,simple,builtin.
Reply
45. MarkSmithsays:
December26,2013at8:05am
NotacommandlinetoolbutifyouarelookingforamonitoringtoolforyourLinuxenvironment,checkouttheeGLinuxmonitoringtoolfromEG
innovations
http://www.eginnovations.com/web/linuxservermonitoring.htm
Reply
46. Sanjaysays:
December26,2013at5:32pm
AGoodhandylistforanoviceLinuxadministratortolookformonitoringhissystemeffectively.Thankyou
Reply
47. JeffMoncrieffsays:
December27,2013at3:13am
Glanceshouldhavebeenupnearthetop.AsitMonitorseverythinglikediskspacenetworktraffic,Memory,Processes,Temperature(CPU,Disks)
Jeff
Reply
48. nicolassays:
March18,2014at2:38pm
ThankyouRavi,ihadhardtimesearchingtheinternetforpowerfulmonitoringtoolsthatwouldhelpmetoprotectmyserverfromspambots,hackersand
harvesters.
Reply
49. RavindraReddysays:
March20,2014at3:28pm
Thankzzz.
lotsofhelpfulforme.awesome
thanks.
Reply
50. raphaelsays:
March27,2014at1:32pm
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 17/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
Thosetoolsaregenerallyokformonitoring/checkingoneserverbutwhenitcomestomonitoringabunchofthemoracompletedatacentre,bettermoveto
integratedtoolslikeZabbix(http://www.zabbix.com/)whichisamazinglycompleteandflexibletomonitor,catchandalertonanytypeofhardware,
software/servicestatus.Anditisopensourceofcourse.
Reply
51. Cyringsays:
May25,2014at12:00am
AnewvisualtooldesignedforIntelCoreat
code.google.com/p/xfreq
Stillanactivedevelopmentsoftware,itmonitorseachCPUattheassemblylevelusingperformancecounters.
YouwillgetCstates,Frequencies,Tempsansotherfeaturesprovidedbyi7&duolikeprocessors.
LastversionaddskerneltaskschedulinginRTamonglogicalCPU
Reply
52. M.Adelsays:
June25,2014at8:30pm
BWTopCLItooltomonitornetworkinterfacesbandwidthrate:
http://adelmahmoud.wordpress.com/2014/06/24/bwtop/
Reply
53. WellingtonTorrejaisdaSilvasays:
June25,2014at8:32pm
Thanks!!
Reply
54. MichaelRojeksays:
October6,2014at4:57pm
Thefactis,itsnothardtomonitoranddebugLinuxSystemPerformanceproblemsifyouinvestinamonitoringsolutionlikeNetCrunch8
(http://www.adremsoft.com),oranyoftheotherpaidoptionsoutthere.Intheendthequestioncomesdowntowhetherthecostofthesoftwareexceedsthe
valueofyourtimethatyouputintousingmoretimeconsumingoptions.
Reply
55. Corneliusays:
October7,2014at5:41pm
Anotherniceandsmallutilityforaquickoverviewissaidar.
Reply
56. SagarDesaisays:
November1,2014at2:16pm
Thankyouverymuchprovidingthehugecollectionofmonitoringtoolsandcommands.ActuallyIwassearchingforthesameandcameacrossyoursite.I
willtryfewofthesetoolstomonitormysystem.
Reply
57. ShaheryarNajamsays:
November4,2014at3:53pm
Isthereanywaytoaccesspowerutilizationinccode?andsaveittosomevariable?
Reply
58. RedBaronsays:
November15,2014at12:46am
Whatanamazingarticle.Loveit.Didntknowmostofthosetool.Ireallyfellinlovewithhtop.Theothersarealsonotbadatall.Thankyousomuchforthis
pieceofvaluableinformation.
Reply
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 18/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
RaviSaivesays:
November15,2014at4:13pm
@RedBaron,
Thankforappreciatingourwork:)
Reply
LeaveaReply
Name(Required)
Mail(willnotbepublished)(Required)
Website
SubmitComment
Twitter1972Twitter
Facebook45233Facebook
Google+9682Google+
RSS4231Subscribers
BecomeATecMintSubscribertoreceivelatestUpdates.
EnterYourEmailAddress:) Signup!
Popular
Latest
Comments
Tags
HowtoAddLinuxHosttoNagiosMonitoringServerUsingNRPEPlugin249Comments
Nagios4.0.1ReleasedInstallonRHEL/CentOS6.x/5.xandFedora19/18/17198Comments
CentOS6.4StepbyStepInstallationGuidewithScreenshots175Comments
GoogleChrome39ReleasedInstallonRHEL/CentOS7/6andFedora2015173Comments
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 19/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
InstallWine1.6.2StableinRHEL/CentOS7.0/6.x/5.xandFedora2012171Comments
InstallApache2.2.15,MySQL5.5.34&PHP5.5.4onRHEL/CentOS6.4/5.9&Fedora1912168Comments
::Advertise::
::DownloadFreeLinuxeBooks::
CompleteLinuxCommandLineCheatSheet
TheGNU/LinuxAdvancedAdministrationGuide
Securing&OptimizingLinuxServers
LinuxPatchManagement:KeepingLinuxUpToDate
IntroductiontoLinuxAHandsonGuide
UnderstandingtheLinuxVirtualMemoryManager
LinuxBiblePackedwithUpdatesandExercises
ANewbiesGettingStartedGuidetoLinux
LinuxfromScratchCreateYourOwnLinuxOS
LinuxShellScriptingCookbook,SecondEdition
Securing&OptimizingLinux:TheHackingSolution
UserModeLinuxUnderstandingandAdministration
::FollowUs::
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 20/21
12/22/2014 20 Command Line Tools to Monitor Linux Performance
TecMint.com
google.com/+Tecmint
Follow +1
+ 10,070
::About::
TecMint.comisawebsitethatpublishespracticalandusefuloutoftheboxarticlesforaspirantlikeyouandme.Weseektopresentexceptional,remarkabletips,
tutorials,andresourcesthatthemodernwebprofessionalwillappreciate.
::OurServices::
KnowMore
WeofferwiderangeofLinuxWebHostingandManagementServicesincludesLinuxhosting,WordPresshosting,JoomlaHosting,CMShosting,
WebsitemigrationandCustomsolutions,makingusaonestopdestinationforallyourpossiblehostingneedsatfairminimumrates.
::Advertise::
SubmitOrder
TecMint.comisvisitedbytensofthousandsofLinuxusersandhasaexcellentreputationinthesearchengineranking.Mostofthetrafficcomesfrom
Googleorganicsearch(80%).Spreadyourmessagesorproductstoanengagedreadersbyadvertisingwithus.
Thisworkislicensedundera(cc)BYNC|TecMintusescookies.Byusingourservices,youcomplytouseofourcookies.Moreinfo:Privacy
Policy. AdvertiseNow
20122014AllRightsReserved.
10UsefulFreeLinuxeBooksforNewbiesandAdministrators
25HardeningSecurityTipsforLinuxServers
60CommandsofLinux:AGuidefromNewbiestoSystemAdministrator
15CommandLineToolstoMonitorLinuxPerformance
5BestPracticestoSecureandProtectSSHServer
18TarCommandExamplesinLinux
20LinuxYUM(YellowdogUpdater,Modified)Commands
25UsefulBasicCommandsofAPTGETandAPTCACHE
20FunnyCommandsofLinuxorLinuxisFuninTerminal
35PracticalExamplesofLinuxFindCommand
10LinuxDistributionsandTheirTargetedUsers
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 21/21