Announcement

Collapse
No announcement yet.

Linux process CPU usage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linux process CPU usage

    Hi,

    I am currently using Linux VPS hosting. It was going great but a machine gets restarted at a particular time. I want to check the CPU usage. Can anyone guide me how to check on the CPU usage of Linux process?

  • #2
    Hi,

    You can check on the process for CPU usage of Linux here - http://kb.bodhost.com/linux-process-...ge-monitoring/

    Comment


    • #3
      Hi Emma,

      I have checked my CPU usage but there isn't any problem with it. I don't know what to do further. Please guide me.

      Comment


      • #4
        OP i have sent you a pm regarding the issue...make sure you fix those errors and you shall be fine

        Comment


        • #5
          Hi Elizabeth,

          Please follow these steps to check the CPU usage -

          Type the top command -
          $ top

          You can see Linux CPU utilization under CPU stats. The task’s share of the elapsed CPU time since the last screen update, expressed as a percentage of total CPU time. In a true SMP environment (multiple CPUS), top will operate in number of CPUs. Please note that you need to type q key to exit the top command display.

          Linux CPU utilization using mpstat and other tools -
          Please note that you need to install special package called sysstat to take advantage of following commands. This package includes system performance tools for Linux (Red Hat Linux / RHEL includes these tools by default).

          # apt-get install sysstat

          Use up2date command if you are using RHEL:
          # up2date sysstat

          Regards,
          Emma

          Comment


          • #6
            Hi,

            How to restrict the process of CPU usage?

            Comment


            • #7
              Hi Elizabeth,

              Here are some of the ways through which you can control the process of CPU usage - http://blog.scoutapp.com/articles/20...it-and-cgroups

              Comment


              • #8
                Originally posted by Pallavi Godse View Post
                Hi Elizabeth,

                Here are some of the ways through which you can control the process of CPU usage - http://blog.scoutapp.com/articles/20...it-and-cgroups
                Hello Pallavi,

                It was very helpful post to me, as tried and one of the way explained in the post worked in my case. Finally happy, got the ans for restricting the process of CPU Usage.

                Thank you,
                Dean Spencer Earn up to $350 with bodHOST Web Hosting Affiliate Program
                Contact us: Live Chat | Email: sales[@]bodHOST[dot]com
                Ph: 866-662-0909, +1.302.294.5628

                Comment

                Working...
                X