Solved

Process not listed in 'ps -ef'

Posted on 2007-12-04
6
860 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

910 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now