For debugging purposes, you can easily write out to the log file when users
connect/disconnect/timeout.

For something more permanent, you could connect to a Memcache instance via
the sockClient and get/set a specific key. Memcache is a very simple
protocol and should take no time to write a simple client. You could
increment it or decrement it when users connect/disconnect/timeout etc.

Johnathan

On Mon, Nov 15, 2010 at 12:46 PM, Christian Jensen <
[email protected]> wrote:

> Hi,
>
> I am not sure if this has been asked before - is there an easy way to
> find out the number of connected users? Right now I am using netstat
> to dump to a file and count the open connections but this seems like a
> hack.
>
> I would love to be able to just find a number somewhere but ideally
> would like to connect it to Cacti or something. I suppose SNMP is a
> bit out of reach but writing to MySQL or a file would be awesome.
>
> Thanks!
> Christian
>
> P.S. We have been using APE in production from about a week now - from
> what I can see we hit 15K users the other day.
>
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<ape-project%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to