How many users are browsing this website?

Hello,
I would like to find out how many unique users are browsing a particular website in java. Do any one have any idea of how to do this? Did any one work out on this? Source code would be helpful.
Thanks
James

Ya you can really track the no. of users on your site. For this you will have to create HttpSessionListener and register it. Even though I have never done this but this is how it can be done.
Create the bean with incrementCount(), decrementCount() and getCount() method.
In HttpSessionListener.sessionCreated(HttpSessionEvent) method:
a) retrive the above bean from application object
b) if it is not in application object create new object of above bean
c) increment counter in the bean
d) put the bean in application object
In HttpSessionListener.sessionDestroyed(HttpSessionEvent) method
a) retrive the above bean from application object
b) if it is not in application object create new object of above bean and set the counter to zero
d) else if the bean exist then decrement the counter
e) store the bean in application object
Use the value stored in the bean as the no. of visitors currently on the website.
KNOWN ISSUES:
a) When user leaves the site only after his session timesout will the counter decremented.
b) In above Listener methods you need to synchronize the application object.
Thats all in short, till then byeee....

Similar Messages

  • How to find out how many users are connected to Exchange 2013 servers in "Online" mode? This is coz, online mode causing server performance issues in our environment

    All, Any script or method to find out how many users are connected to exchange servers in online mode?
    Manju Gowda

    Hi 
    You have to get the "RPC Client Access" log file in your CAS server. There you can see a column called "client-mode" and it has two modes such
    as "classic" and "cached". From there you can get the two different client assess modes and their corresponding users.
    probably take this file openup on excel and filter to see the two modes
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

  • Need to know the API which will extract how many users are added in group..

    Hello,
    I am working in Oracle Portal. In the portal we have Oracle Indentity Management where we are adding users as well as the group. We are looking for an API which helps us to do that from PL/SQL code. We got it but we have some issue. We know that how to create group, add users to group, delete users from group, delete group but we unable to get how many users already added to the group. Can anybody help me out in this case. It is urgent!
    Thanks
    Golak Saha

    Hi,
    How to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.
    Please check the following links:
    Oracle EBS - Number of Users logged into EBS / Oracle Applications currently
    List all users currently logged in on Oracle EBS
    Also see forum Search:
    Forum Search: Logged In EBS User
    Also, in the database level too
    Please see:
    https://forums.oracle.com/message/9225094#9225094
    Do we need to write any trigger for this?
    Yes you may, But I personally suggest you not to do so as it may affect performance.
    Thanks &
    Best Regards,

  • How to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.

    Hi Experts,
    Kindly let me know
    how to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.
    Also, in the database level too ,Do we need to write any trigger for this?
    Thanks in advance.

    Hi,
    How to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.
    Please check the following links:
    Oracle EBS - Number of Users logged into EBS / Oracle Applications currently
    List all users currently logged in on Oracle EBS
    Also see forum Search:
    Forum Search: Logged In EBS User
    Also, in the database level too
    Please see:
    https://forums.oracle.com/message/9225094#9225094
    Do we need to write any trigger for this?
    Yes you may, But I personally suggest you not to do so as it may affect performance.
    Thanks &
    Best Regards,

  • Is there a way to find how many users are logging on to my site?

    Is there a way to find how many users are logging on to my site at a specific time?
    Thanks in advance..

    Is it possible to use an EJB3.1 Singleton beans for this too? (instead of the application context)
    Or will this create a bottleneck because of the standard write lock? It wouldn't be thread safe to provide a read lock on a user_counter increment method?

  • Ldap - how to check how many users are connected?

    Hi Guys,
    Please help me.
    We have iPlanet installed using LDAP. I want to check in ldap console that how many users are connected currently and monitor that.
    please tell me how can i do it
    thanks

    Hi Noor,
    Thank you for posting in Windows Server Forum.
    From your description I can understand that you want the user name with app they have in their session.
    You can achieve with below command.
    Query process User name
    Displays information about processes running on a terminal server. You can use this command to find out which programs a specific user is running, and also which users are running a specific program.
    More information:
    Query process
    http://technet.microsoft.com/en-us/library/bb490798.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • SMTP Host logs - How many users are authenticating - How many emails with distinct titles

    hello,
    can anyone help me out with gathering the following SMTP host logs to see:
    How many users are authenticating.
    How many emails with distinct titles
    Can this be done in powershell or do i need to be looking somewhere else.
    This is for O365

    Hi ,
    Since the emails are hosted with office 365 i would suggest you to raise a ticket with Microsoft and request assistance from them which will make this task much easier 
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

  • How to see how many users are working on a Dynpro application?

    Hello,
    Is it possible to see somwhere at the portal or on the WAS how many users are currently working with my Web Dynpro application?

    Hi Roy,
    I know it isn' exactly what you want but if you got to:-
    System Administration->Support->Web Dynpro Test Tools->User Management
    you can at least see the users currently running Web Dynpro applications (I think!)
    At least its a start!
    Cheers,
    Gareth.

  • How many users are working on EBS

    is it possible to find out how many users are currenlty at the same time working on EBS.
    Like how many payable users, mfg uers OTL users.

    Hi,
    Below sql will find how many users are currently working on EBS,
    SELECT distinct icx.session_id, icx.user_id, fu.user_name, fu.description
    FROM icx_sessions icx, fnd_user fu
    WHERE disabled_flag != 'Y'
    AND icx.pseudo_flag = 'N'
    AND ( last_connect + DECODE (fnd_profile.VALUE ('ICX_SESSION_TIMEOUT'),
    NULL, limit_time, 0, limit_time, fnd_profile.VALUE ('ICX_SESSION_TIMEOUT') / 60 ) / 24) > SYSDATE
    AND icx.counter < limit_connects
    AND icx.user_id = fu.user_id
    order by 4;
    Thanks,
    Amogh

  • How many users are supported on a Cisco Aironet 1141N? 30?

    I have a client that wants to upgrade his Aironet 1131 APs with 1141N.  How many users are supported on a Cisco Aironet 1141N?

    Yes, you could have 30 clients on the AP. 
    Client density all depends on what the client is doing, really.
    So if you have clients that are just web surfing and pulling email 30+ isn't a problem.  If they are all streaming video, then you want to plan for less clients per AP, and more APs.
    Steve

  • Need to find out how many users are using Siebel Application

    Hello all,
    I need to find out how many users are using Siebel Application?
    Is there a way I can find out?
    Thanks.
    yasun

    Hi,
    Read the following:
    http://docs.oracle.com/cd/B40099_02/books/SysDiag/SysDiagSysMonitor30.html
    http://docs.oracle.com/cd/B40099_02/books/SysDiag/SysDiagSysMonitor17.html
    For full information about server status and statistics red:
    http://docs.oracle.com/cd/B40099_02/books/SysDiag/SysDiagSysMonitor.html
    T.Abed

  • How to get real time information about how many user are logged in and thei

    I use tomcat as my server platform in Ubuntu for a war file.
    I know in order to get real time information about how many user are logged in, we can count how many active sessions exist by a SessionCounter code. However, I have to permit HttpSessionListener in web.xml of tomcat. From other users' experiences, the configuration is complexed and has some errors.
    Here's the link:http://www.stardeveloper.com/article...1112001&page=1
    In order to get users' ip, in jsp, use request.getremotehost() or
    request.getremoteaddress() by editing the jsp file.
    I wonder if there's some open source software to use for these two purposes.
    Thank you!

    That url is missing a few bits. The ... in the middle doesn't help.
    we can count how many active sessions exist by a SessionCounter code.
    However, I have to permit HttpSessionListener in web.xml of tomcat.
    From other users' experiences, the configuration is complexed and has some errors.And have you tried it? The configuration isn't that complex.
    What errors do you mean? Errors in tracking people, variance in the count? Probably related to internet issues and nothing you can do will alleviate them.

  • Find how many users are connected in the Oracle Server

    Hi,
    I am using Oracle 10g. My question is, is it possible to find how many users are connected in the Oracle Server. We are having one Server and we are having many client machines which will connect the Oracle.
    And one more question in the meanwhile i want to take Backup of one database which client as connected. Is it get any problem to the client machine which is accessing the server. And How to take the backup from the server machine. Any commands to process.
    Thank u...!

    Hi there.
    If You run
    select count(*) from v$session where username is not null;you'll get the number of users connected to Oracle server,
    and yes , you could do backup while users are connect to db you are backing up.
    cheers

  • User Profile Services:How get to know how many user are using my site.

    Hi,
    User Profile Services:How get to know how many user are using my site.
    Recently i have done migration sharepoint 2010 to sharepoint 2013,I did not migrate USer profile services because less user are using user profile here,but i need to know how many few uer are using my site for data store.
    Is any why we can get to know  user name who are using my site document library and other things.
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

    Fallowing command shows only count of my site user ,I need to know how many upload data on my site
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

  • I want to check that how many users are connected to the wifi which i m using at present

    i want to check that how many users are connected to the wifi which i m using at present???

    Go to Utilities > Airport Utillity
    If you click on your router it should show you the "wireless clients" that are connected

Maybe you are looking for

  • Deploying EJBs in a web app

    Hi, I'm trying to deploy some EJBs in a WebLogic WebApp. I have it all packaged properly, and when I start the server, I can see that my EJBs are bound to the JNDI names. For example: Mon Jan 08 22:48:58 PST 2001:<I> <WebAppServletContext-myapp> bind

  • 6500 Classic NO VALID CERTIICATE error when downlo...

    Hi, I have a Nokia 6500 Classic.  I have it unlocked and now set up to use 3 Mobile UK.  I have been using the WAP which works fine but when i try to download any app it say NO VALID CERTIFICATE and wont let me download anything, Does anyone know how

  • Slow email on macbook air

    Hi I am very new to macbook air, I bought a new mac 2015 Jan - but the email loading is super slow with opening, sending receiving emails! Can someone help with this please Many thanks in advance, I.

  • Trouble importing mail

    My hard drive crashed last week, and Apple replaced my harddrive. I am now trying to restore my mail from the back-up on my external harddrive. I have tried the Import Mailboxes feature and gone to the appropriate Library file on the external hard dr

  • RAM Preview needs 2 or more frames to playback

    Getting the dreaded error. I've tried all the suggestions in the forums but none work. Only qutiing progarm (sometimes not even that. A complete reboot of computer is then needed).  Really annoying. Not sure why this is suddenly happening. Any sugges