Identifying which processes are using network ports on a Mac

Steve Neal Linux Leave a Comment

Typically I’d use netstat’s -o flag to identify the process ID when listing networking activity from a Linux/Unix machine. Unfortunately this option is not available with netstat on ┬áMac OS X. I recently has a rogue process (I suspected a virus) on my Mac that was creating thousands of connections out to hosting providers. Luckily I found this fix, which …

Address in Use Error using Tomcat on Windows XP

Steve Neal Development 2 Comments

Occasionally you might get an error like this when launching Tomcat: java.net.BindException: Address already in use: JVM_Bind <null>:8080 This can be caused if you already have Tomcat running as it will hold onto a network port for handling HTTP requests. In the above example the port shown is 8080. However, this error is sometimes apparent even when Tomcat has already …

Working around a javax.net.ssl.SSLHandshakeException

Steve Neal Development 1 Comment

When trying to download data from an HTTPS connection, you might see the following exception reported: javax.net.ssl.SSLHandshakeException: renegotiation is not allowed This rather unhelpful error message can be raised on either the server or the client and indicates that the SSL libraries in Java cannot determine whether the CA that signed the server’s certificate is to be trusted or not. …