Solved

Process not listed in 'ps -ef'

Posted on 2007-12-04
6
865 Views
Last Modified: 2013-12-16
just started a java (tomcat) server on Linux 9 machine.
After sometime when i do:
ps -ef

My java process is not listed there.

But the java server process is actually running. I can tell that by trying to browse to my Admin Page on http://hostort:8080/ - it responds correctly.

Also when i do netstat -an, i can see port 8080 is in LISTEN mode.

So my application is running but not visible in 'ps -ef'.
0
Comment
Question by:j4linman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 20401743
do netstat -apn | grep 8080

you should get a couple of lines with one being tomcat after that check towards the start of the line there should be something like java/xxxx or tomcat/xxxx where xxxx is the pid get the pid and do

ps uax | grep xxxx and you should get the true name of the process
0
 
LVL 19

Accepted Solution

by:
http:// thevpn.guru earned 34 total points
ID: 20401757
A neater solution would be

fuser -n tcp 8080


this lists all the processes on port 8080, for example

debian:~# fuser -n tcp 80
80/tcp:               3413  3414 20979 20980 20981 26513 31295 31299 31303 31304 31305 31306
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 33 total points
ID: 20401835
I found I needed to be root to get that to work, and then I got a confusing "here" line:

20:43:17# fuser -n tcp 21
here: 21
21/tcp:               1528

But as root I prefer to use lsof -i

20:43:25# lsof -i|grep ftp
inetd     1528 root    6u  IPv4   4720       TCP *:ftp (LISTEN)

Be that as it may, I would expect the process to show up with ps -ef, although I always use ps ax. Maybe some of its details are not as expected?
0
 
LVL 13

Assisted Solution

by:WizRd-Linux
WizRd-Linux earned 33 total points
ID: 20408108
Considering most servers have over 100 processes running at any given time, have you scrolled right back to the top?

ps -e
ps -ef
ps aux

They should all return the same number of processors, just displayed in a standard or bsd format.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Run Secure WMI query from CentOS 5 137
Linux FTP Error 5 45
Migrating a Linux server to VMware 3 106
CentOs root password/fsck issue 7 32
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

761 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question