[JDEV] How to get current number of users?
Sylvain Roberdeau
sylvain.roberdeau at terravirtual.net
Thu Jan 23 02:54:07 CST 2003
Thanks,
it's not attractive, but the simpliest way.
Sylvain
Peter Millard a écrit :
> Sylvain Roberdeau wrote:
> > But by this way it's impossible to distinguish component -> jabberd
> > connection to client-> jabberd connection.
> > And if you use a "Jadc2s" for polling, only one connection is visible
> > for all clients.
>
> All of the other solutions are overkill IMO...
> on jabber.org, we use jadc2s, and to get current # of users for
> status.jabber.org, we just do:
>
> netstat -n | grep 5222 | grep ESTAB | wc -l
>
> from the cmd line.. Actually we have a cron job that runs and logs the # to a
> file, so that the status.jabber.org web page can updated accordingly. Simple,
> and easy.
>
> pgm.
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sylvain.roberdeau.vcf
Type: text/x-vcard
Size: 466 bytes
Desc: Carte pour Roberdeau Sylvain
URL: <https://www.jabber.org/jdev/attachments/20030123/ab5502cc/attachment-0002.vcf>
More information about the JDev
mailing list