- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- How to find blocked process id
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-08-2015 10:18 AM
12-08-2015 10:18 AM
Dears,
How to find the blocked process's id , glance is not installed on the server
Your help is really appreciated.
# vmstat 1 5
procs memory page faults cpu
r b w avm free re at pi po fr de sr in sy cs us sy id
1 2 0 832414 19668 272 28 136 32 30 0 254 702 12472 1118 43 4 53
1 2 0 832414 19597 195 15 110 33 48 0 844 746 5427 874 0 4 96
1 2 0 832414 19593 176 15 93 26 38 0 675 739 4822 872 2 2 96
1 2 0 832414 19593 160 15 79 20 30 0 797 716 4367 835 1 2 97
1 2 0 832414 19592 148 15 68 16 24 0 637 701 3958 808 0 2 98
#
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-08-2015 05:13 PM
12-08-2015 05:13 PM
SolutionYou probably misunderstand what a blocked process means. A process that is getting information from another process will be blocked until the data is ready...which is what is desired. A blocked process is irrelevant to performance questions. You need to understand how processes depend on each other and fix the source process that may be too slow. Or a process can be blocked by priority which means there aren't enough CPUs to handle the load so lower priority processes will be blocked. And a process can be blocked because it has been deactivated and paged out to make room for other processes.
In your example, vmstat shows that you are severely short of RAM. The indicator is the "po" column. It should be zero or no more than 5-10 intermittantly. po is the page out rate and indicates that swapping is taking place because there is not enough RAM for all the processes. Swapping (or paging) is catastrophic to performance. There are only three ways to fix this:
1. Stop running so many processes at the same time,
2. Reduce the amount of RAM used by the processes with configuration changes,
3. Buy more RAM (a lot, probably 100% more)
You can confirm memory and swap usage with this command:
swapinfo -tam
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-08-2015 08:40 PM
12-08-2015 08:40 PM
Re: How to find blocked process id
Thanks for the reply , this helped me to understand how processes are getting locked.
Is there any commands like in Linux to list process in D state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-09-2015 07:50 AM - edited 12-09-2015 07:52 AM
12-09-2015 07:50 AM - edited 12-09-2015 07:52 AM
Re: How to find blocked process id
The ps command is fairly unique to every flavor of Unix. Indeed, the Linux man page lists more than 2 dozen personalities of ps. So for HP-UX, the man page does not list the 'D' state found in Linux (uninterruptible sleep). From the Linux man page:
PROCESS STATE CODES Here are the different values that the s, stat and state output specifiers (header "STAT" or "S") will display to describe the state of a process. D Uninterruptible sleep (usually IO) R Running or runnable (on run queue) S Interruptible sleep (waiting for an event to complete) T Stopped, either by a job control signal or because it is being traced. W paging (not valid since the 2.6.xx kernel) X dead (should never be seen) Z Defunct ("zombie") process, terminated but not reaped by its parent.
And from the HP-UX man page:
state The state of the process: 0 Nonexistent S Sleeping W Waiting R Running I Intermediate Z Terminated T Stopped X Growing The default heading for this column is S.
To see the 'S' column, use the -el options. Perhaps you can explain what it is you are looking for.
If you want to see disk I/O, use sar -d 2 2
For CPU usage, top will sort by descending CPU usage.
Bill Hassell, sysadmin
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP