title: How to count open db connections?
body: <p>I'm developing a web app using Java servlet to access Mysql db, how can I get the number of connections to my DB that is currently open ?</p>
  
  <p>Edit :</p>
  
  <p>I tried "show processlist", it showed me : 2695159, but that's not right, I'm just developing this new project, I'm the only user, couldn't have that many processes running, what I want is the number of users accessing <strong>my project's DB</strong>, not the number of all db users, but just the ones logged in to my database which has only one table.</p>