Let us see how we can find and kill the processes running on ports 8080, 8005, 8009 in this section.


For Windows

1. Open CMD with Admin privileges(Run as Administrator).


2. Find the process that's using the required port. Use the below command to find the processes running on port 8080:

netstat -ano | findstr :8080

You will see the following output:

The last field with the four-digit number is the Process ID(PID).


3. Now that we have got the PID for the process, we can send a kill signal.

taskkill /PID typeyourPIDhere /F

4. Repeat the same command in Step 2 and confirm the result is empty.


5. Repeat the same steps for other ports 8005 and 8009.


For Mac/Linux

1. Open Terminal


2. Find the process that's running on the required port. Use the below command to find the processes using the port 8080:

netstat -anop | grep :8080

You will see the following output:

The second last field with 4/5 digits is the Process ID(PID) and the name after the '/' is the process name.


3. Now that we have got the PID for the process, we can send a process termination signal using pkill

pkill typeyourPIDhere


4. Repeat the same command in Step 2 and confirm the result is empty. If the process is still present, use the below command to force kill using kill

kill -SIGKILL typeyourPIDhere


5. Repeat the same steps for other ports 8005 and 8009.


Once these steps are done, the processes using the port will be freed and you will be able to start Testsigma Agent normally. However, for a permanent solution, use the below-mentioned method: How to change the port at which Testsigma Agent is running?