How to get PID and Port # for a Jenkins Process

Saikat

I need to get PID & Port# for a Jenkins process run. If i get that PID, i can kill the process if ever i need to.

I am running the Jenkins process by below commands:

java -jar jenkins.war 

Sometimes, Jenkins Process fail to start if that port is taken and below occurs:

Jenkins home directory: /Users/MacPro/.jenkins found at: $user.home/.jenkins
Feb 27, 2016 10:46:09 AM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: FAILED 
[email protected]:8080:java.net.BindException: 
Address already in use
java.net.BindException: Address already in use

And I know how to run the jenkins process against a specific Port#.

Need to know the commands for which PID and the port, current job is using.

Saikat

The command will be below:

ps -ef| grep jenkins 

It will display the process id.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Get the PID for a process started by Eclipse

How to get PID by process name?

How to get the process name by pid in Linux using Python?

How to get PID from forked child process in shell script

How to parse netstat command in order to get process name and PID from it?

Find the PID of a process that uses a port on Windows

Fish shell how to get the PID of the process started in the background

How would I get the PID of the process causing a file system event?

How to get the pid of forked child process NODE JS

How do I get PID from socket port on Windows?

How to get correct tail PID under multiple process in shell

Get return value of process by PID

Finding the PID of the process using a specific port?

Get the pid by process name

How to get the pid of a process and invoke kill -9 on it in the shell script?

Using Debugger how to get child process's PID from Parent

how do I get the pid of a specific process

How to get the pid of a process in Python

How do I get only the PID, without any extra information, of a process running on port 3000?

How to get pid of last background process in SSH

How do I get the pid of a spawned process using pexpect?

How to get the PID of a recently started process in Bash

How get pid of a subprocess created with the same name of calling process?

How to get the PID of a process that is started from eval in Bash?

How to get PID of java.lang.Process in linux by JAVA

How to get pid of process with exact name?

How to get port a process is listening on in .net?

How to get the command line arguments from a given process pid?

How to get the PID of a running process without waiting for it to terminate?