- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to find no users accessing my site current...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 01:19 AM
тАО08-08-2007 01:19 AM
How to find no users accessing my site currently
We have an rhel4 Linux web server which is getting loadded too much by the user.
But our requirement is to find out the no of users accessing our website currently..
I don't need the logs of the site.i need only the no of users in figures how can i find it out
pls help me out
regds,
palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 01:30 AM
тАО08-08-2007 01:30 AM
Re: How to find no users accessing my site currently
NOUSERS=$(ps -ef | grep httpd | wc -l)
or
NOUSERS=$(export UNIX95=1;ps -C httpd | wc -l)
echo "USERS: $NOUSERS
This will roughly provide the number of httpd threads open, though even an idle web server generally keeps some opoen.
Assuming the site is in use this will provide you an estimate.
The second methodology, not using grep is more accurate at excluding the grep process.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 02:03 AM
тАО08-08-2007 02:03 AM
Re: How to find no users accessing my site currently
an option or a "grep" to look for port 80,
might be useful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 04:38 AM
тАО08-08-2007 04:38 AM
Re: How to find no users accessing my site currently
Also note that one IP address may well contain several simultaneous users, if the IP address belongs to a NAT box. So determining the number of _users_ is not simple at all.
There are other complications, too. The free log analyzer "Analog" has a good explanation on its web page:
http://www.analog.cx/docs/webworks.html
If you're using SSL, the SSL session log might allow you to count the number of individual users with some kind of reliability. If your site has a concept of sessions and implements it in some other way (perhaps using cookies?), you might be able to use this information to count the users.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 02:28 PM
тАО08-08-2007 02:28 PM
Re: How to find no users accessing my site currently
I had already tried ur options before itself but i am getting random of users only...
i need currently active users...
Is there any tool available for finding out this
Our customer requires exact information regarding active users when visting the page..
Wa,i know this is some what difficult..task to track it out.
But i am still trying to get some clues..
matti,
Thx for sending the link..
once again thanks for all ur valuable information.
Pls let me know if anybody got answer for this issue in future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 02:53 PM
тАО08-08-2007 02:53 PM
Re: How to find no users accessing my site currently
> only...
What does this mean? "netstat" should show
current connections to the Web server. What,
exactly, do you want?
> i need currently active users...
Define "currently active user".
If only the Web server knows what an "active
user" is, then you may need to do some CGI
work (or something else active) to keep track
of this datum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2007 10:54 PM
тАО08-09-2007 10:54 PM
Re: How to find no users accessing my site currently
I'm buffled nobody mentioned Apache's mod_status
http://httpd.apache.org/docs/2.0/mod/mod_status.html
Just enable it in your httpd.conf
Then run GET http://your.webserver.url/server-status?autoconf
and parse the result.
Read the docs in the above links how to interpret the so called scoreboard.
You can automate this.
I have several Munin nodes running where I let my Munin server chart nice rrdgraphs from exactly the server-status results in five minute intervals.
It produces nice charts that let you see at what hour of the day, what day of the week, what month in the year, your webserver is most frequented.
Ah, I shouldn't forget, this tool is great for performance charting
http://munin.projects.linpro.no/