Stack Exchange network consists of 184 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If you have 1-2 visitors the issue isnt max connections and probably not a RAM issue but a configuration issue.
It can potentialy be Mysql reserved cache RAM for indexes and query caches.