Send users mailing list submissions to
us...@lists.agavi.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.agavi.org/mailman/listinfo/users
or, via email, send a message with subject or body 'help' to
users-...@lists.agavi.org
You can reach the person managing the list at
users...@lists.agavi.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of users digest..."
Today's Topics:
1. Re: Port Number (David Z?lke)
----------------------------------------------------------------------
Message: 1
Date: Tue, 8 Dec 2009 19:24:00 +0100
From: David Z?lke <david....@bitextender.com>
Subject: Re: [Agavi-Users] Port Number
To: Agavi Users Mailing List <us...@lists.agavi.org>
Message-ID: <FEB9A921-1F49-44B7...@bitextender.com>
Content-Type: text/plain; charset="us-ascii"
In your Apache config, you need to adjust ServerName as well, changing
Listen alone is not enough, as you may also see when calling phpinfo()
or dumping $_SERVER - SERVER_PORT will not be 10088 until your config
is correct.
Obviously not an Agavi issue, then, and I'm not quite sure why you're
fiddling with the Agavi source - the framework has built-in mechanisms
to cover such situations (e.g. when running behind a load balancer,
where the host and/or port need to be defined manually or be pulled
from certain magic HTTP headers).
- David
On 08.12.2009, at 12:58, Craig Fairhurst wrote:HiI'm having problems with $ro->getBaseHref() in my local environment(using 1.0.2-RC2)The port is set to 10088 and this isn't being picked up on.I've resorted to modifying the Agavi installation to always return10088 for now until it can be fixed.Any advice appreciated._______________________________________________users mailing listus...@lists.agavi.orghttp://lists.agavi.org/mailman/listinfo/users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2439 bytes
Desc: not available
Url :
http://lists.agavi.org/pipermail/users/attachments/20091208/abcda737/attac
hment-0001.bin
------------------------------
_______________________________________________
users mailing list
us...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/users
End of users Digest, Vol 38, Issue 3
************************************
Hello
Gow can I count numbers of online users?
Best Regards
Mahmood
netstat -an | grep "ESTABLISHED" | grep ".80 " | awk '{print $5}' |
sed 's/\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\)\.[0-9]*/\1/' | uniq | wc -l
Since browsers tend to open multiple connections at once, I've
filtered out repeated lines so that they will only count as a single
connection. The number might not be accurate if many of your users
are sitting behind NAT.
I've only tested this FreeBSD, but it should work with other Unix and
Linux distros as well...
[ simon.cpu ]
[ simon.cpu ]
- How long would a connection remain established? Once everything from a page has downloaded, is the connection closed? (I ask as although this would definitely show an accurate how many connections the server has, this might not be a useful figure. I assumed "how many users viewed a page in the last X minutes" is actually what is being asked for. )
- On a shared server, would this count *all* connections to all sites?
Michal.
please send a new mail if you would like to post a new question! If you
answer to another mail and change its subject, you break the complete
discussion thread. You can see this symptom here:
http://groups.google.com/group/agavi-users/browse_thread/thread/f8ec7f6c9ca766c8
Craig dropped the first two mails regarding a port problem. You answered
the second mail and whoops the subject changed completly.
Thx and best regards, Mathias
Once the page has been displayed, the socket is still open and goes to
FIN_WAIT_2 state (which you can grep from netstat) until the server
closes it. Clients are supposed to acknowledge the server in order to
close it, but some buggy clients don't.
I dunno exactly how long the connection is kept open... I think it's
dependent on the web server's keep-alive timeout value.
There's also an OS-specific value for FIN_WAIT_2, which can be set via
sysctl. In my FreeBSD box, sysctl -a net.inet.tcp | grep
finwait2_timeout gives me:
net.inet.tcp.finwait2_timeout: 60000
YMMV....
> - On a shared server, would this count *all* connections to all sites?
LOL... I've never thought of that. Yes, it'll count the connections
for all sites.... Maybe we can just grep the server's log file for
HTTP GET requests so that we can have a generic counter or
something...