Go Back   The macosxhints Forums > OS X Help Requests > UNIX - Newcomers



Reply
 
Thread Tools Rate Thread Display Modes
Old 01-21-2013, 09:25 AM   #1
laredotornado
Prospect
 
Join Date: Apr 2010
Posts: 35
Trouble figuring out what's starting this process

Hi,

I'm using Mac 10.7.5. There is a process running on port 8787, and I'm having trouble figuring out where its coming from. I got its process ID by running

Code:
	Daves-MacBook-Pro:bin davea$ lsof -i tcp:8787
	COMMAND  PID  USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
	java    1379 davea   11u  IPv4 0xffffff8016af5c00      0t0  TCP *:msgsrvr (LISTEN)
and then I search for the process by running

Code:
	Daves-MacBook-Pro:bin davea$ ps -elf | grep java
	  501  1379  1361     4000   0  47  0  1645436 188456 -      S    ffffff8016672540 ??         0:10.87 /usr/bin/java -D  9:19AM
	  501  1506   360     4006   0  31  0  2434892    572 -      R+   ffffff8018912880 ttys006    0:00.00 grep java         9:20AM
Is there anything else I can do to give me more info about where its coming from? What's weird is that if I try and kill the process by doing

Code:
	Daves-MacBook-Pro:bin davea$ sudo kill -9 1379
it springs back to life …

Code:
	Daves-MacBook-Pro:bin davea$ ps -elf | grep java
	  501  1528  1510     4000   0  47  0  1728968 108712 -      U    ffffff8016672540 ??         0:04.52 /usr/bin/java -D  9:22AM
	  501  1531   360     4006   0  31  0  2434892    408 -      R+   ffffff8016e11a80 ttys006    0:00.00 grep java         9:22AM
Thanks for any help, - Dave
laredotornado is offline   Reply With Quote
Old 01-21-2013, 10:55 AM   #2
SirDice
MVP
 
Join Date: Aug 2009
Posts: 1,119
It's most likely the Jboss debug port.
SirDice is offline   Reply With Quote
Old 01-21-2013, 03:19 PM   #3
dmacks
All Star
 
Join Date: Dec 2004
Posts: 677
Run ps on the parent-process of the one in question (the PPID field in the 'ps -elf' output).
dmacks is offline   Reply With Quote
Old 01-21-2013, 04:33 PM   #4
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,940
Note that you can see process parentage in Activity Monitor if you set it to "hierarchic" mode.
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 01-22-2013, 06:02 AM   #5
agentx
Hall of Famer
 
Join Date: Feb 2003
Location: Brighton, UK
Posts: 3,807
Have you got Filemaker Server or Tomcat running ?
agentx is offline   Reply With Quote
Old 01-22-2013, 07:33 PM   #6
laredotornado
Prospect
 
Join Date: Apr 2010
Posts: 35
Yup it was a JBoss process. Thanks for everyone's help. - Dave
laredotornado is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 10:25 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.