LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-19-2019, 02:14 AM   #1
fawaz25
Member
 
Registered: Oct 2018
Posts: 36

Rep: Reputation: Disabled
Huge CPU load due to high %sy time


Dear All,

An application is running on my Red Hat Linux 5 server which is running in VSphere environment. My system has around 24 cores CPU. The CPU load has increased tremendously. I see load averages value to be more than 100. In the top command I see only around 2 % user time and 98-99 % system time. IO wait and %SI are zero.

The top and ps command shows processes consuming maximum CPU usage (which is the application process).
When I run vmstat command, I see more than 100 processes in runqueue. Upon checking the processes in run queue using this command:
#ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10, I found it be application server processes (same as top).

I am trying to troubleshoot this issue. Any help from your side will be highly appreciated.
 
Old 03-19-2019, 03:02 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
My guess is that a resource that the application expects to exist doesn't exist. It then desperately tries to access this resource rather than issuing an error message or otherwise handling the situation gracefully. The resource might be a file or an inter-process communication facility.

You could run strace to see what system calls contribute to the high CPU usage. Try strace -c, which creates a system call CPU utilization summary.

You could also use lsof -p <PROCESS_ID> to look at open files and try to draw conclusions.

If the above doesn't help, if the application doesn't log anything or doesn't have a debug mode that provides some information, and if you can't ask the author of that application, I am afraid you are out of luck.

Last edited by berndbausch; 03-19-2019 at 03:07 AM. Reason: strace -c addition
 
2 members found this post helpful.
Old 03-23-2019, 09:24 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by fawaz25 View Post
Dear All,
An application is running on my Red Hat Linux 5 server which is running in VSphere environment. My system has around 24 cores CPU. The CPU load has increased tremendously. I see load averages value to be more than 100. In the top command I see only around 2 % user time and 98-99 % system time. IO wait and %SI are zero.

The top and ps command shows processes consuming maximum CPU usage (which is the application process). When I run vmstat command, I see more than 100 processes in runqueue. Upon checking the processes in run queue using this command:

#ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10, I found it be application server processes (same as top).

I am trying to troubleshoot this issue. Any help from your side will be highly appreciated.
Haven't we been here before?
https://www.linuxquestions.org/quest...nd-4175643496/
https://www.linuxquestions.org/quest...er-4175648055/

Again, as you were told before, you're not telling us much of anything. What is this 'application'?? Version of VSphere? What have you actually done to diagnose the issue? Checked the logs? Run anything in debug mode? Anything??

You were also told previously that RHEL 5.x is VERY old, outdated, and totally unsupported. You are missing MANY YEARS of updates/patches/fixes, so if you're running on newer hardware, it's not surprising you're having trouble. And again, both RHEL and VSphere are commercial-PAY FOR products. If you're using them you need to pay, and contact/use the support you're entitled to.
 
Old 03-26-2019, 02:49 AM   #4
fawaz25
Member
 
Registered: Oct 2018
Posts: 36

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by berndbausch View Post
My guess is that a resource that the application expects to exist doesn't exist. It then desperately tries to access this resource rather than issuing an error message or otherwise handling the situation gracefully. The resource might be a file or an inter-process communication facility.

You could run strace to see what system calls contribute to the high CPU usage. Try strace -c, which creates a system call CPU utilization summary.

You could also use lsof -p <PROCESS_ID> to look at open files and try to draw conclusions.

If the above doesn't help, if the application doesn't log anything or doesn't have a debug mode that provides some information, and if you can't ask the author of that application, I am afraid you are out of luck.
Thank you very much for your response There was a bug in the application coz of which some of the application processes were spending max time in system calls that had resulted in high CPU usage.
Now the server and the application is working fine.

Last edited by fawaz25; 03-26-2019 at 02:51 AM.
 
Old 03-26-2019, 02:56 AM   #5
fawaz25
Member
 
Registered: Oct 2018
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Haven't we been here before?
https://www.linuxquestions.org/quest...nd-4175643496/
https://www.linuxquestions.org/quest...er-4175648055/

Again, as you were told before, you're not telling us much of anything. What is this 'application'?? Version of VSphere? What have you actually done to diagnose the issue? Checked the logs? Run anything in debug mode? Anything??

You were also told previously that RHEL 5.x is VERY old, outdated, and totally unsupported. You are missing MANY YEARS of updates/patches/fixes, so if you're running on newer hardware, it's not surprising you're having trouble. And again, both RHEL and VSphere are commercial-PAY FOR products. If you're using them you need to pay, and contact/use the support you're entitled to.
Thanks for your response. I have checked the cause of high CPU usage using top command, along with whats causing high system calls using lsof command. There was an issue with the application that has been resolved as of now.

Regarding upgrading the server, I have discussed this with my higher management. Hopefully will do soon.

Regards.
 
  


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
[SOLVED] High CPU load, top not showing any high CPU process angel115 Linux - Server 8 10-12-2015 12:58 AM
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 09:24 AM
apache high cpu load on high traffic awww Linux - Newbie 9 10-04-2011 02:22 PM
High load and high cpu kernel usage enid Linux - Server 8 09-30-2010 03:33 AM
sendmail -- cpu load high & log huge !! ranger_nemo Linux - Software 2 06-08-2004 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:13 PM.

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