What is your 'max_connections' setting (show variables like '%max_connections%'
) and how many connections are currently 'live' on the server (show processlist
)?
I'm guessing it's set very low (1 or 2) and between tomcat and your monitor connections you're exceeding the limit.
Raising it would be done via the mysql.ini/mysql.cnf file, wherever it's kept on Windows.