Give the gift of Drupal. All merchandise is 50% off through 2016.
A single user creating nodes continously results in PDOException: SQLSTATE  Too many connections in lock_may_be_available() exception.
To simulate the problem, create nodes (e.g. article) continuously. Typcially on my machine i get the exception on creating 44 nodes.
my machine is a WAMP stack on Windows 7 with 3GB memory and i5 processor
Steps to create:
1. Login as admin
2. create a shortcut to node/add/article and call the short cut Article
3. run the attached seleinum test (which just creates nodes with text hello
after creating 44 nodes, the above exception occurs.
I've marked this as critical as the apachae has to be restarted for the site to start working again.