|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
There is a very high load on the mySQL in my server (Unix/Linux (WHM - RedHat 7.3)), in 'TOP' I knew the PID numbers that make the load on the memory... So how can I now the user of this PID? It's very hard to get it from 'Apache Status' at WHM.. So please help !(High Priority) |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
What did you mean by user of the PID?
Coz top shows the owner of the process under the USERNAME field. If you need to see the child processes if any, # ps -ef | grep 'PID' Hope it helps. Last edited by minazk; 06-28-2003 at 03:18 PM.. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Hi,
I mean the owner of the PID, or which domain or login (username) doing this process. I hope you know what I mean. |
|
#4
|
||||
|
||||
|
You mean this? Code:
$ ps --fields="user pid tty command"
USER PID TT COMMAND
userName 72966 tty10 ps.exe
userName 105867 tty10 ksh.exe |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Thanks, Could you please give me an example how to write this command? As you know, i'm not pro in SSH
![]() |
| Sponsored Links | |
|
|
#6
|
||||
|
||||
|
I'm not sure what you mean.. if you type ps --fields="user pid tty command" at your Unix prompt, then you should get output similar to what I put. You'll get a list of things running along with the user running them.. what else would you like to do with the output?
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Hi,
It show me this: PHP Code:
|
| Sponsored Links | ||
|
![]() |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Update LDIF User info based on Test User Certs ID's | Macdaddy99 | Shell Programming and Scripting | 3 | 07-14-2010 11:25 AM |
| Determining if user is local-user in /etc/passwd or LDAP user | ckmehta | UNIX for Advanced & Expert Users | 5 | 04-28-2010 03:24 AM |
| root user command in shell script execute as normal user | mnmonu | Shell Programming and Scripting | 3 | 10-19-2009 07:42 AM |
| Difference between : Locked User Account & Disabled User Accounts in Linux ? | avklinux | UNIX for Dummies Questions & Answers | 3 | 02-06-2009 08:01 PM |
| How do i change to super user then revert back to ordinary user ,using shell script? | wrapster | Shell Programming and Scripting | 3 | 06-04-2008 07:11 AM |
|
|