In my java web application, I'm connecting to a local MySQL database. Using a servlet I'm taking a csv file and inserting the data into the database. It connects fine and is inserting data, but it starts to progressive slow down after each insert it does from the csv file. When it gets to about row 159 in the csv file it throws this exception:
threw exception
[com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
java.net.SocketException MESSAGE: Permission denied: connect
STACKTRACE:
java.net.SocketException: Permission denied: connect
Does anyone know why it would be working fine and then slow down until it throws this exception? I'm really scratching my head about this and nothing online seems to be helping. By the way, I'm using tomcat8.