voodoodyne / subethasmtp

SubEtha SMTP is a Java library for receiving SMTP mail
Other
343 stars 138 forks source link

JMX monitoring of Number of Sessionthreads #86

Open vivekanandasofware opened 7 years ago

vivekanandasofware commented 7 years ago

Currently in the SMTPServer there is no way to get the current number of activesessions. If someone like us or any administrator wants to check this attribute there is noway to do it. Probably we can add a new Method in SMTPServer as below getNumberofSessions(){ return this.serverThread.getNumberOfSessions(); }

and in ServerThread we can add getNumberofSessions(){ return sessionThreads.getSize(); } We really require such function. Apache james has such facility but we avoided that for lot of reasons. How can we contribute this code or can someone add this fix.

vivekanandasofware commented 6 years ago

Its been 3 months and no one has responded. Can anyone respond please @stickfigure @GoogleCodeExporter @lookfirst Thank you,

lookfirst commented 6 years ago

There is already a getNumberOfConnections() on ServerThread. https://github.com/voodoodyne/subethasmtp/blob/master/src/main/java/org/subethamail/smtp/server/ServerThread.java#L254