A: 

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.

Marc B
Hi Marc, max_connections is set to 100 and there is only one process running.Its not just tomcat, any mysql client that tries to connect to MySql goes into wait state unless I disconnect the 1st one.I have checked it by starting the MySql service again, disabling the firewall but no luck.
Hussain
A: 

Are you connecting over the network? or a local file socket? You may be locking on the windows equivalent of mysql.sock - not sure if that behavior changed in Win7. Something like:

mysql -u root -h localhost -p 3306

and make sure that my.ini/my.cnf have networking enabled

jayshao
Everything is on my laptop i.e. local machine .. can you suggest how can I verify locking ? ... as you see "show processlist" show one connection is sleep state there is no lock state.
Hussain
Edited with an example - this is using the commandline, though I apologize, I don't have a Windows box in front of me.
jayshao
I have edited my question with result of the command you specified. Please check and thanks a lot for helping.
Hussain
A: 

After too many re installation of Windows I guess i have identified the root cause ... On every fresh installation MySql use to work fine but after a while I use to get stuck with this issue.

The cause was my voip messenger "Wizton" after installing it MySql work fine but when i restart my machine ... same Connection issue.

But wizton was working perfectly fine with Vista Business .. don't no what happens in Windows 7.

Hussain