java - Display the Connection ID of mysql -
i want add sniplet of code can print connection id of connection made mysql using getconnection()
. going used monitoring number of connections made @ time.
connection interface , implemented multiple database vendors. entirely sure whether can such value, depends whether mysql allowing or not.
regarding problem of monitoring number of connections made @ time, based on requirement can go synchronized counter maintain number of times connection made/closed/open. hope helps.
Comments
Post a Comment