How to find out number of concurrent users  connectd to a site?

I would like to find out the number of concurrent users on my site. What is the best way to do it?
This is how I implement it currently:
I have a HashSet object in the session. whenever a user visits the page, i added the user's sessionID to the HashSet. But when a user leaves my page, it won't inform my jsp pages. The only thing I can do now is whenever I add a new sessionID, I loop through the HashSet and check to see which sessionID is invalid or inactive, then remove the it. Does a user session becomes invalid immediately when the user leaves the page, or it has to wait till it times out?
Are there any other more efficient ways of doing it?

Look at HttpSessionBindingListener. That will let you do what you want to, correctly.
User session will time not. If it were to become invalid immediately, it won't be called a "session" would it?

Similar Messages

  • How to find out whether the system user is a vendor or a purchaser

    Hi,
    I am working in SRM 5.0. I have a requirement that some fields of Bid invitation can be visible by purchaser but not to bidder.
    How to find out whether the system user (user id though which system logged in) is a vendor or a purchaser. Kindly help me to resolve this issue.
    Sushmita Singh

    check his role.
    is surrogate bidding available for that bidder.
    via surrogate bid , purchaser can submit bid on behalf of the bidder.
    masa is correct
    pposa_bbp - search via user . so he might be  a purchaser.
    maintain business partner -supply your bidder bp number -edit
    go to bidder data .Under bidder data you must flag "PERMIT PROXY BIDDING"
    regards
    Muthu
    br
    muthu

  • How to get Maximum Number of Concurrent users for last few days?

    Hi,
    How I can get maximum number of concurrent users which were logged in to the system (ECC 5.0) I mean I want to check the hostory for last few weeks. Is there any way to get the same? I know that I can get Cumulative number of users in st03 under Expert mode but that is the number of users logged into the system during the day. Is there any place where SAP maintians the High Watermark of Number of concurrent users reached in the system?
    Thanks in advance...
    Regards,
    Pravin

    Sorry I really missed that I have posted a question here on sdn. I wanted to know this for planning the system hardware requirements. Activities like PM ( Performance Management ) happens once a year and during that activity we see heavy user loan on the system so if I have the exact stats of 1 or 2 years data I can size the system better next time. Fortunately last 2 years PM was very smooth for us. In that look for the improvement because each time we had little extra Harware. By doing the exact analysis we can save a Cost of ownership...
    I was looking for R/3 users. I could see the number in st07 but I want to know the exact number at particular time.. I believe that st07 stores only for few days.
    Thanks
    Pravin

  • How to find out  number of includes for a given program dynamically

    Hi all
    I have a requirement in which, I have to find out  number of includes and their names for a given  user defined program dynamically
    if u know the answer pls let me know
    Thanks in advance
    Devi

    Hi rama,
    1. use this FM - RS_GET_ALL_INCLUDES_FOR_PRTAB
    regards,
    amit m .

  • Find the number of concurrent users in system at a given time

    Hi All,
    We have the ECC system in which we need to set up monitoring alert which should tell the following things.
    1.The  number of concurrent users looged  currently in the system.
    2. List of  transaction per hour or user activites with the counts
    I want to know whether we have any standard report , function module or tcode through which we can achive this.
    A quick response will be appreciated.
    Thanks in advance.
    Regards
    Santosh

    Dear Santosh,
    for concurrent users there is this monitor in RZ20:
       System Configuration
           Operation Mode Status
           Instance Status
           Concurrent Users
               Concurrent Users (all Clients)    2 Usrs, Green 15.05.2014 , 17:02:18
               Concurrent Users (Client 000)     1 Usrs, Green 15.05.2014 , 17:02:18
               Concurrent Users (Client 001)     1 Usrs, Green 15.05.2014 , 17:02:18
               Concurrent Users (Client 066)     0 Usrs, Green 15.05.2014 , 17:02:18
    This monitor is available under RZ20 --> SAP CCMS Monitor Templates --> System Configuration
    best regards,
    Alwina

  • How to find out Number of entries in a Huge Table?

    Hi,
    I would like to know Number of entries in table DFKKOP. when i try to get it through se16, it takes more than 10 minutes in dialogue process so a time out occurs. is there any way to find out number of entries in the table Apart from creating a program for that?
    Please guide me to the solution.
    Thanks,
    Lijo Joseph
    Message was edited by: Lijo Joseph Vazhappilly

    REPORT  YCHATEST                                .
    Data : begin of itab occurs 0.
            include structure tab512.
    data:end of itab.
    data : v_count like sy-index,
           tabname like X030L-TABNAME value 'DFKKOP'.
    CALL FUNCTION 'RFC_GET_TABLE_ENTRIES'
      EXPORTING
        table_name              = tabname
    IMPORTING
       NUMBER_OF_ENTRIES       = v_count
    tables
       entries                 = itab.
    write : v_count.
    Message was edited by: Sekhar

  • Oracle 10g - How To Find Out If A Forms User An Intranet Or An Internet?

    Is it possible to find out if the login user using intranet or internet (Oracle Form 10g)? If not, can you please advise the workaround solution?
    Thanks,
    TD

    the only thing which differs could be the ip adress from both clients so if the client ip adress is in your internal range its from your intranet and if its mot from your range its from the internet..I didnt try this but I think you can verfy the client ip via a java bean or via webutil...

  • How to find out from whcih terminal user tried logging in and failed

    Hello All,
    One of the user is trying to login using master userid (SAP* / DDIC).. But he is failing after three attempts resulting in locking the SAP* / DDIC user id.
    We are unable to trace who is attempting this? If we know from which terminal user is trying to login we can find out the person.
    Even in SM21 we are unable to see from which terminal user is trying to login..(We can see the terminal clearly in SM04). Could you please suggest us how to trace the person responsible for this issue?
    Thanks,
    Subbu

    Hi,
    The terminal details can be obtained through securiy audit logging.
    You can enable to Security logging for the users SAP*/DDIC using the tcode SM19 and the logs can be viewed using the tcode SM20.
    To  to activate the security audit logging you need to set the value '1' for the parameter rsau/enable. The log file size can be set using the parameter rsau/max_diskspace/local. You can set the number of slots to be used for security auditing purpose using the profile parameter rsau/selection_slots in the default profile.
    Hope this information helps.
    Regards,
    Varadhu

  • How to find out number of bookmarks created?

    Is there any way to find out how many bookmarks have been created by users? I can see a list of all bookmarks under RSA1, Reporting Agent, Bookmarks, but I can't see a way to export that list or show a total.

    Thanks, that table has a list of all bookmarks.
    It seems like it only stores the last time a bookmark was accessed though...for example, if someone opens a bookmark 10 times, there would still just be one record for that bookmark.

  • Regarding how to find out a program is User Exit/executable

    Hi,
    Can anybody tell me how can we find wether a particular program is used in executable program (or) user exit program?
    One thing we can find out is wether the program type is 'I' or 'R' etc..
    Thanks in advance.
    Thanks,
    Deep.

    Hi...
    See the following links..
    it helps you a lot..
    how can we C the USER_EXITS in Z programs
    how can we find the list of user exits for a transaction
    How to find the active user exits in my client
    How to find user exits for a transaction
    Hope it helps you...
    Let me know if u have any more doubt...
    Reward points if useful......
    Suresh.......

  • How to find out total active employess/users in PeopleSoft system.

    Hi,
    We need to find out how many terminated employees and how many active employees we have in our Peoplesoft system.
    Thanks.

    Hi rajesh,
    You can use SU10, then click on "Authorization data" -> put * on user -> execute.. you should get a list of all users in the client with details included...
    Also you can list them using USMM and check all licensed users....
    Also SUIM -> users by complex selection criteria -> By user id -> put * on user -> execute.
    Regards
    Juan

  • How to find out the oracle level user(sid) who is updating the table?

    Hi everyone,
    I am creating a update trigger which is to look for the user (sid) who is updating the rows in this table. Is there any lower level dynamic view or table I can use to find out the user?
    Thanks for any help.
    Jun

    Hi, please repost this question in the Database section under the SQL & PL/SQL discussion forum
    PL/SQL
    thanks - OTN

  • How to find out the list of users who used Discoverer

    Dear All,
    We have Oracle E-Business Suite 11.5.10.2 with Disco. 4i.
    We need to know how we can find out the Employee ID, Responsibility, Org... who used discoverer during a specific period in the past ? For example the last year.
    Any help plz.
    Regards,
    Mohammad Muhtadi

    I'm not sure You can get the responsibilities or the org that was used in that specific run but as for getting when it was run and by whom...
    Try that SQL:
    select distinct
    qs.qs_doc_name workbook,
    --qs.qs_doc_details worksheet,
    case when instr(qs.qs_doc_owner,'#')=1 then substr(qs.qs_doc_owner,2,10) else qs.qs_doc_owner end workbook_owner,
    qs.qs_created_date run_date,
    case when instr(qs.qs_created_by,'#')=1 then substr(qs.qs_created_by,2,10) else qs.qs_created_by end apps_user_id,
    fu.user_name apps_user_name,
    ppf.FULL_NAME user_full_name,
    ppf.EMPLOYEE_NUMBER user_employee_number
    from
    eul_us.eul4_qpp_stats qs,
    fnd_user fu,
    per_people_f ppf
    where to_number(substr(qs.qs_created_by,2,10))=fu.user_id(+)
    and fu.employee_id=ppf.PERSON_ID
    and sysdate between ppf.EFFECTIVE_START_DATE and ppf.EFFECTIVE_END_DATE
    change the "eul_us" to the discoverer schema.
    Basically the primary data you are looking for lies in the qpp_stats table...

  • How to find out number of  years worked using sql

    Hello,
    How to find from a table which has hiredate and should return number of years worked with range like 0-5, 5-10,10-15 etc.
    Any help is highly appreciated.
    Thanks

    I think this query can solve your issue
    SELECT CASE yeared,COUNT(CASE) FROM
    SELECT
    CASE
    WHEN MONTHS_BETWEEN(SYSDATE,hiredate)/12 <=5 THEN '0-5'
    WHEN MONTHS_BETWEEN(SYSDATE,hiredate)/12 > 5 AND MONTHS_BETWEEN(SYSDATE,hiredate)/12 <=10 THEN '5-10'
    WHEN MONTHS_BETWEEN(SYSDATE,hiredate)/12 > 10 AND MONTHS_BETWEEN(SYSDATE,hiredate)/12 <=15 THEN '10-15'
    WHEN MONTHS_BETWEEN(SYSDATE,hiredate)/12 > 15 AND MONTHS_BETWEEN(SYSDATE,hiredate)/12 <=20 THEN '15-20'
    WHEN MONTHS_BETWEEN(SYSDATE,hiredate)/12 > 20 AND MONTHS_BETWEEN(SYSDATE,hiredate)/12 <=25 THEN '20-25'
    WHEN MONTHS_BETWEEN(SYSDATE,hiredate)/12 > 25 AND MONTHS_BETWEEN(SYSDATE,hiredate)/12 <=30 THEN '25-30'
    ELSE '>=30'
    END CASE
    FROM scott.emp )
    GROUP BY CASE
    Regards.

  • How to find out number of background work processe available in the system?

    Hi All,
    I have a FM that triggers a background job using JOB_OPEN, ABAP_SUBMIT and JOB_CLOSE. But the problem is if there are no background work processes available at that moment, it does not return error. Not sure whether the job is even scheduled!
    Is there a way to find out if there are any background work processes available in the system? I know a FM SPBT_INITIALIZE which gives info about dialog work processes. Is there any other FM similar to this which gives info about background wp??
    Regards,
    Shailesh

    your Job will remain in a queue by message handler. once workprocess is free, your job gets scheduled
    by the way, you can use the functionality used in FM TH_DISPLAY_WORKPROCESS_LIST to read the workprocesses
    the command which gets you the workprocess is:
    CALL 'ThWpInfo' ID 'OPCODE' FIELD OPCODE_WP_LIST
                      ID 'TAB' FIELD LIST_STATE_WPLST-TABL
                      ID 'CPU' FIELD LIST_STATE_WPLST-CPU.
    check how its written in include LSDEBF01, form SET_LIST_WPLST
    Edited by: Soumyaprakash Mishra on Dec 12, 2011 12:17 PM

Maybe you are looking for

  • Site Web Analytics - no usage data being generated

    Hello all: I have a SharePoint Foundation 2013 farm with 2 WFE - 1 Search Server and 1 DB server.  Search Service Application has been configured and functioning properly.  Usage and health Data Service Application has been created and started.  Usag

  • Firefox Nightly crashes when opening it

    After installing the past 2 nightly builds the application crashes hard when launched with a Windows exception error. Firefox Nightly 6.0a1 4.26 (?) and 4/28 - both crash after installing from both the Updater & full installer. Buils 4/24 works perfe

  • Is there a way to get firefox to warn me when exiting with multiple windows open?

    When I click File > Exit in the menu, I want firefox to warn me if I have multiple windows open. I don't want it to warn me about multiple tabs though. Is there a way to get it to do that? I would prefer to just hit the red X in the top right corner,

  • Firefox randomly crashes every 5 to 10 minutes (mswsock.ddl)

    As the title says, Firefox has been crashing every few minutes for the last couple days. It doesn't seem to matter how many tabs I have open or what websites I'm on either. I've tried updating, running in Safe Mode, and re-installing with no effect.

  • How do I edit a droplet

    I have a droplet that someone created for me, and need to edit the last step of it, and can't figure out how to see the actions in the droplet, or edit them. If I run it, the actions appear as "droplet set" in the actions palette, but then disappear