{"id":7222,"date":"2018-02-12T15:38:52","date_gmt":"2018-02-12T07:38:52","guid":{"rendered":"http:\/\/rmohan.com\/?p=7222"},"modified":"2018-02-12T15:38:52","modified_gmt":"2018-02-12T07:38:52","slug":"performance-co-pilot-pcp-on-my-rhel-server-to-capture-performance-logs","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7222","title":{"rendered":"Performance Co-Pilot (PCP) on my RHEL server to capture performance logs"},"content":{"rendered":"<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"file-install-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"># run these commands on a Centos 7 server as root<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"file-install-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">yum install -y pcp pcp-webapi pcp-system-tools<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"file-install-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">chkconfig pmcd on<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"file-install-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">service pmcd start<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"file-install-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">chkconfig pmlogger on<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"file-install-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\">service pmlogger start<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"file-install-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\">chkconfig pmwebd on<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"file-install-sh-LC8\" class=\"blob-code blob-code-inner js-file-line\">service pmwebd start<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"file-install-sh-LC9\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"># open port 44323 in the firewall<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"file-install-sh-LC10\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"># To start vector on your laptop<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"file-install-sh-LC11\" class=\"blob-code blob-code-inner js-file-line\">docker run -d &#8211;name vector -p 80:80 netflixoss\/vector:latest<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>open http:\/\/localhost<\/p>\n<p>&nbsp;<\/p>\n<h1 class=\"title\">Performance Co-Pilot (PCP) on my RHEL server to capture performance logs<\/h1>\n<p>&nbsp;<\/p>\n<h2>RHEL 7 (prior to RHEL 7.4)<\/h2>\n<p>PCP is included in the base RHEL and Fedora distributions. A minimal installation requires just the pcp package (and its dependencies) to enable performance data logs to be collected for later analysis:<\/p>\n<div class=\"code-raw\">\n<div class=\"code-raw-toolbar\"><a class=\"code-raw-btn\" href=\"https:\/\/access.redhat.com\/solutions\/1137023#\">Raw<\/a><\/div>\n<pre><code>yum install pcp\r\nsystemctl enable pmcd\r\nsystemctl enable pmlogger\r\nsystemctl start pmcd\r\nsystemctl start pmlogger\r\n<\/code>\r\n\r\n\r\n<\/pre>\n<p><strong>pcp<\/strong><\/p>\n<p><strong>pmstat<\/strong><\/p>\n<p><strong>pmatop<\/strong><\/p>\n<p><strong>pmcollectl<\/strong><\/p>\n<pre>\r\n\r\n<\/pre>\n<p>At the moment Vector comes with the following list of widgets and dashboards that can be easily extended. Here is a short list of metrics available by default.<\/p>\n<p><strong>CPU<\/strong><\/p>\n<ul>\n<li>Load Average<\/li>\n<li>Runnable<\/li>\n<li>CPU Utilization<\/li>\n<li>Per-CPU Utilization<\/li>\n<li>Context Switches<\/li>\n<\/ul>\n<p><strong>Memory<\/strong><\/p>\n<ul>\n<li>Memory Utilization<\/li>\n<li>Page Faults<\/li>\n<\/ul>\n<p><strong>Disk<\/strong><\/p>\n<ul>\n<li>Disk IOPS<\/li>\n<li>Disk Throughput<\/li>\n<li>Disk Utilization<\/li>\n<li>Disk Latency<\/li>\n<\/ul>\n<p><strong>Network<\/strong><\/p>\n<ul>\n<li>Network Drops<\/li>\n<li>TCP Retransmits<\/li>\n<li>TCP Connections<\/li>\n<li>Network Throughput<\/li>\n<li>Network Packets<\/li>\n<\/ul>\n<pre>\r\n\r\n<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p> # run these commands on a Centos 7 server as root yum install -y pcp pcp-webapi pcp-system-tools chkconfig pmcd on service pmcd start chkconfig pmlogger on service pmlogger start chkconfig pmwebd on service pmwebd start # open port 44323 in the firewall # To start vector on your laptop docker run -d &#8211;name vector [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7222"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7222"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7222\/revisions"}],"predecessor-version":[{"id":7223,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7222\/revisions\/7223"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}