The number of active sessions isn't decreasing in OC4J instance

Hi Guru’s,
Could you help me, please?
The number of active sessions isn’t decreasing in OC4J instance after our clients closed the application.
Our partner use Oracle AS 10gR3 (10.1.3.4.0) with J2EE and HTTP mode.
When we monitoring our OC4J instance with Performance tab on Oracle EM, we appreciate that the value of Active Sessions on ‘Servlets and JSPs’ are very high. If users close our applications, then number of active sessions isn’t decreasing and active status isn’t becoming inactive.
Which OC4J settings responsible for managing active sessions and how can I get more information about the active session details?
Thanks in advance,
Zoltan

Dinesh.Rajak wrote:
When I deployed this code Tomcat, it is giving the output as 0, hence tried with accessing the jsp file in multiple browsers but still it is showing the count of active session as 0 - plz helpPlease, don't resurrect old threads, and it's still the wrong forum. Create a new thread if you have a specific question, and create the thread in the correct forum. I'm closing this thread.
Kaj

Similar Messages

  • Check the number of active users of oc4j in EBS

    Hi,
    I often see a recommndation of sizing jvm's to 1 per 100 active users. How can I find the number of active users currently using a jvm in EBS. We have 4 apps servers and 1 of apps servers also runs OBIEE with it's own jvm.
    I can find out from a unix command prompt counting establish connections to the port but I like to know if there's a better way to find the number of active users using the jvm's
    Thanks
    Mike

    Hi,
    To find the number of active user session on each of the application servers from a unix command line. I would find the port that Apache was listening on eg 8100. The use the following command on each of the apps servers
    netstat -an | grep 8100 | grep -i est | wc -l
    This gives a rough idea of how many active connections are established to the apps server. But I would really like to find how many users are actively using o4cj.
    If you are using forms in socket mode again, you can grep on the forms listening port number to find how many active forms users are connected.
    I can also see how many active connections are in the oc4j established to the database using lsof. Find the process id for oacore jvm.
    lsof -p PID
    But I'm sure there's a better and more accurate way of find active users of o4cj, specifically oacore.
    Thanks
    Mike

  • How to know the number of Active users logged in to a Essbase  Application?

    Hi,
    Is there way to capture/log the number of active users who have logged into a particular Essbase application at a given time.
    In Essbase or in Shared services?
    I know we can see the EAS-Edit Sessions shows the actively logged-in users, then we can sort on the application/database & manually count the number.
    Is there a way to capture it in a log at a given time on a regular basis. Any MAXL or Shared services feature?
    Appreciate your thoughts.
    Thanks,
    Ethan.

    You could use maxl .
    display user all;
    there will be a column called "logged in" which will display true/false for the users
    but that will just show if they are logged into the server and not the application
    You can also use use display session
    display session all;
    or
    display session on application sample;
    which should show what you are after.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Why do the number of active JMS connections increase?

    <strong>Problem</strong>
    - Number of active JMS connections and current JMS messages increases until the Weblogic instances crash with an OutOfMemory exception
    <strong>Setup</strong>
    - Weblogic v9.2.3, Cluster with 4 Nodes
    - A JMS Message is sent from a MDB in Weblogic to a distributed queue which has a member on each of the 4 Weblogic nodes. The session is created as follows session = connection.createSession(false,Session.AUTO_ACKNOWLEDGE), the message delivery mode is set programmatically to persistent and the delivery mode override of the queue setup is set to persistent too
    - Standalone JMS client processes: each one is attached to <strong>all</strong> 4 nodes. Each one uses a unique JMS message selector so that we have more than one queue consumer for one queue but every message is exactly dedicated to one queue consumer. We us weblogic.jar for the clients.
    - Use of Weblogic auto reconnect feature. JMS client code:
    Connection connection = this.connectionFactory.createQueueConnection();
    final WLConnection wlconnection = (WLConnection)connection;
    wlconnection.setReconnectPolicy(JMSConstants.RECONNECT_POLICY_ALL);
    wlconnection.setTotalReconnectPeriodMillis(-1);
    wlconnection.setReconnectBlockingMillis(-1);
    <strong>Remarks and Questions</strong>
    - There are no pending JMS messages which is good
    - In our setup, each JMS client is connected to all 4 nodes as the messages are not distributed to all nodes: if a message is put to Queue A but the client is only connected to Queue B, the message is NOT transfered from Queue A to Queue B. We set the parameter "Forward Delay" to 5 seconds with no effects. Is this the normal behavior?
    - Not all JMS clients are visible in the Weblogic console under JMS Services -&gt; JMS Servers -&gt; [Server] -&gt; Monitoring -&gt; Active Connections. Which one are visible? Which one are not visible? There are also clients where the number of connections is not zero but stays constant; we know that as several independent clients on different hosts are started and the IP adress is visible in the Weblogic console. Why....?
    - What reasons can lead to increasing connections? Is this due to client or server problems? Do we have to acknowledge the message in the onMessage(Message) method of the client JMS consumer? So far as I know, we don't have to.
    - Are the increasing number of current messages due to the increasing number of JMS connections?
    - May the RECONNECT_POLICY_ALL policy produce this problem?
    Any hint is appreciated.
    Peter
    Edited by: pkeller on 23.10.2008 17:08

    To answer the question about the forwarding of messages from one queue to another myself: As mentioned at http://forums.bea.com/thread.jspa?threadID=400000611, the forwarding for queues does only work if all queue consumers are attached to the same queue. This means that our setup is OK.
    But the main question is still unanswered: why do the number of active JMS connections increase? I forgot to mention that
    - all messages arrive at the clients and that no exceptions are visible in the log
    - if you kill the client, the connections are still visible in the Weblogic console!?
    Please help as this problem is very urgent.
    Peter
    Edited by: pkeller on 24.10.2008 09:06
    Edited by: pkeller on 24.10.2008 09:10

  • [Forum FAQ] Restrict number of Active Sessions in RDS 2012 and 2012 R2

    As everyone knows with the introduction of Windows Server 2012 & 2012 R2, there are various changes and no more availability for RDSH configurations or Remote Desktop Service Manager;
    now we can manage all the settings under Server Manager and group policy.
    Configuration 1: Remote Desktop Timeout settings:
    Here, we will see the Remote Desktop timeout settings. You can maintain the settings under below mention path (Figure 1 and Figure 2).
    Open the
    Server Manager, select Remote Desktop Services.
    In Remote desktop Services, in right side you can drop down to
    collections.
    Select the
    collection which you want to edit the settings.
    Under
    collections Properties, select Task and then Edit Properties.
    In Properties dialog box, select
    Session.
    You can find all the
    timeout settings under session collection properties; edit according to your requirements and then
    OK.
    Figure 1: Selecting Collection Properties
    Figure 2: Configuring screen for Timeout and reconnection Settings
    Group policy setting:
    The same settings can also be applied by Group Policy.
    You can also configure timeout and reconnection settings by applying the following Group Policy settings, you can check the figure 3 for graphical view.
    Set time limit for disconnected sessions
    Set time limit for active but idle Remote Desktop Services sessions
    Set time limit for active Remote Desktop Services sessions
    End session when time limits are reached
    In addition to this another group policy available with the help of which you can bale to set time limit for logging off the RemoteApp according to our desired time. This setting
    can be applied with addition to above mentioned policy.
    Set time limit for logoff of RemoteApp Sessions
    These Group Policy settings are located in the following locations:
    Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits
    User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits
    These Group Policy settings can be configured by using either the Local Group Policy Editor or the Group Policy Management Console (GPMC).
    Note:
    These Group Policy settings will take precedence over the settings configured in Remote Desktop Session Host Configuration. If both the Computer Configuration and the User Configuration policy
    settings are configured, the Computer Configuration policy settings take precedence.
    Figure 3: Group Policy for setting Timeout and reconnection setting
    Configuration 2:
    Restrict & Enable user to a single & multiple session
    Under Windows Server 2012 & 2012 R2, there is no specific setting under RDP-TCP as it is not available.
    Restrict User to Single session:
    To restrict the user to single session (Disable Multiple RDP Session) you can configure the setting under group policy (Figure 4).
    Computer Configuration\ Administrative Templates\ Windows Components\ Remote Desktop Services\ Remote Desktop Session Host\ Connections
    Restrict Remote Desktop Services users to a single Remote Desktop Services session     Enabled
    Figure 4: Group policy for Restrict user to Single session
    Enable user to multiple session:
    To enable the user to multiple session you can configure the setting under below (Figure 5).
    Computer Configuration\ Administrative Templates\ Windows Components\ Remote Desktop Services\ Remote Desktop Session Host\ Connections
    Restrict Remote Desktop Services users to a single Remote Desktop Services session     Disabled
    Figure 5: Group Policy for Enable user to Multiple Session
    In addition you can also edit the registry setting for allowing multiple RDP session as per below (Figure 6).
    HKEY_Local_Machine\SYSTEM\CurrentControlSet\Control\Terminal Server
    fSingleSessionPerUser     REG_DWORD     0x00000000
    Note: By default the registry value is set to 1, but you need to change to 0.
    Figure 6: Display the registry settings
    Also you can edit the policy “Limit number of connections” and set RD Maximum collection as per your company
    requirements (Maximum limit: 999999) for above mention group policy path (Figure 7).
    Figure 7: Group Policy for Limit number of Connections
    Apart from this, if you have not specified any policy or registry setting and still you want to restrict the new session, then in Windows Server 2012 & 2012 R2 there is option where you
    need to follow below steps (Figure 8 and Figure 9).
    Right click a Remote Desktop Session Host in specified location of Host Server and select “Do not allow new connections”.
    After clicking that it will ask you for your confirmation, click yes and no new connection will be allowed.
    Figure 8: Setting displaying “Do not allow new connections”
    Figure 9: Confirmation popup
    RD Gateway Connection Properties:
    If you have deployed RD Gateway under your environment you can also limit the number of simultaneous connections through RD Gateway by configuring
    policy under RD Gateway Manager. For this you need to follow below mention path.
    Open RD Gateway Manager, select the server which you want to modify.
    Right click Properties.
    Under General Tab
    -Limit maximum allowed simultaneous
    connections to:Specify the number of connection you want to able to provide connection.
    -Allow the maximum
    supported simultaneous connections:This
    setting will allow maximum supported connections at a time.
    -Disable new connections:This
    setting will not allow new connections through RD Gateway but Active connection will not be automatically disconnected.
    Select the option as per requirement which able to allow the connection
    Figure 10: Connections setting under RD Gateway Manager
    Configuration 3: Configure keep-alive connection interval
    As per above mention in initial post you can able to change the setting for Keep alive connection interval. In addition to this also verify the
    registry setting must be set as per following (Figure 11 and Figure 12).
    HKEY_Local_Machine \ SOFTWARE \ Policies \ Microsoft \ Windows NT \ Terminal Services
    KeepAliveEnable       REG_DWORD           0x00000001 (1)
    KeepAliveInterval     
    REG_DWORD           0x00000001 (1)
    Figure 11: Group Policy setting for Keep alive
    Figure 12: Registry setting for keep alive
    If you need further assistance, welcome to post your questions in our
    Remote Desktop Services (Terminal Services) forum.
    If you would like to achieve this in Windows Server 2008 or Windows Server 2008 R2, please move on to the next post.

    Applies to Windows Server 2008 and Windows Server 2008 R2
    Configuration 1: Remote Desktop Timeout settings:
    1. Open the property dialog for RDP-Tcp connection in Remote Desktop Services Manager.
    2. In the Sessions tab, you can configure the following settings:
    Active Session Limit
    Idle session limit
    Action when session limit is reached or connection is broken
    End a disconnected session
    Additionally, you can configure the settings with the help of Group Policy also by below mention path.
    Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits
    User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits
    Configuration 2: Restrict each user to a single session
    By using this configuration or policy setting, each user can only maintain one session to the certain terminal server; when another session is started by the same user, the original one will
    lose the connection. In that way, the total number of possible active sessions won’t exceed the total remote users. You can implement this as below mention steps.
    Remote Desktop Host (RDP-Tcp) configuration:
    Edit Settings – Restrict each user to a single session: Yes
    Group Policy: Computer Configuration\Administrative Templates\Windows Components\Remote Desktop
    Services (Terminal Services)\Remote Desktop Services Session Host (Terminal Server)\Connections\
    Restrict Remote Desktop Services (Terminal Services) users to a single remote session:    Enabled
    Configuration 3: Configure keep-alive connection interval
    By specifying the minutes that the TS holds a remote session actually disconnected, the server will detect the session status after each period. The session that are actually offline will
    be changed to disconnected status:
    Group Policy:  
    Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services (Terminal Services)\Remote Desktop Services Session Host (Terminal Server)\Connections\
    Configure keep-alive connection interval:         Enabled and Specify the Value
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

  • Report showing the number of active users in the system

    All,
    There is a standard SAP report which shows the number of active users in the system (output same as AL08).
    Does anyone remember this?
    Cheers,
    Bidwan

    Hello Bidwan, 
    Are you talking about the report RSUSR000?
    Regards.
    Ruchit.

  • Getting the number of active connections in a connection Pool

    Hi,
    I have an application deployed on jboss. DB used is db2. For monitoring purpose i need to get the number of active and idle connections at any point of time. I am trying to use commons-dbcp jar to get this data using BasicDataSourceClass. Following is the piece of code.
    Context initialContext;
    try {
         initialContext = new InitialContext();
         DataSource ds = (DataSource) initialContext.lookup(myjndiname);
         logger.info("************CONNECTION POOL DATA->" + ds.getClass().getName() + "************" + ds.getClass() + "**************");
         BasicDataSource bds = (BasicDataSource) datasource;
              logger.info("************CONNECTION POOL DATA-> ACTIVE CONN=" + bds.getNumActive() + " IDLE CONN=" + bds.getNumIdle() + " INIT SIZE=" + bds.getInitialSize());
    catch (NamingException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
    This code gave a class cast exception at the point datasource is cast to BasicDataSource. The class name returned by ds is WrapperDataSource. I have few queries on this:-
    1. What configurations do i need so that datasource returned by InitialContext is BasicDataSource? FYI i tried to add the BasicDataSourceFactory in db2-ds.xml. But it still didnt work
    2. Is there any other way to find the number of active connections in a connection pool? I dont want any server specific solution.
    Pls help.
    Thanks

    user13642196 wrote:
    Hi,
    I have an application deployed on jboss. DB used is db2. For monitoring purpose i need to get the number of active and idle connections at any point of time. I am trying to use commons-dbcp jar to get this data using BasicDataSourceClass. Following is the piece of code.
    Context initialContext;
    try {
                 initialContext = new InitialContext();
                 DataSource ds = (DataSource) initialContext.lookup(myjndiname);
                 logger.info("************CONNECTION POOL DATA->" + ds.getClass().getName() + "************" + ds.getClass() + "**************");
                 BasicDataSource bds = (BasicDataSource) datasource;
              logger.info("************CONNECTION POOL DATA-> ACTIVE CONN=" + bds.getNumActive() + "  IDLE CONN=" + bds.getNumIdle() + "   INIT SIZE=" + bds.getInitialSize());
    catch (NamingException e) {
                 // TODO Auto-generated catch block
                 e.printStackTrace();
    }This code gave a class cast exception at the point datasource is cast to BasicDataSource. The class name returned by ds is WrapperDataSource. You can only cast an object to an interface it implements or to a class it extends (directly or indirectly).
    I have few queries on this:-
    1. What configurations do i need so that datasource returned by InitialContext is BasicDataSource? FYI i tried to add the BasicDataSourceFactory in db2-ds.xml. But it still didnt workhttp://commons.apache.org/dbcp/api-1.2.2/org/apache/commons/dbcp/package-summary.html#package_description

  • How do I reset the number of activations on Visio 2003 after getting a "too many activations" message?

    I just installed Visio 2003 on a PC, and got the "we can't activate this app via the internet because you've installed it too many times" message. I went back to phone activation, but, of course, that's no longer available for this product.
    How do I get the number of activations reset? Apparently you used to be able to do this by calling Microsoft, but what's the number to call? Or is there another way to do it?
    I'm probably going to need to do it for my copy of Office 2003 also.

    Hi,
    Microsoft has ended support for Office 2003 on April 8, 2014. This change will affect your software updates and security options.
    Please contact your local customer service. Explain to the service (Human being) that you can’t activate Visio 2003 and the error message is “we can't
    activate this app via the internet because you've installed it too many times”.
    You can find
    your local custom support number on the link below.http://support.microsoft.com/gp/customer-service-phone-numbers/en-us
    Hope it can be helpful.

  • FF currently limits the number of open sessions

    I currently programmatically launch FF on linux using an execl command. In the run string I use the -P option and launch my application by right clicking on the file that has its own mime type and that is opened by my app before the execl call. (my app takes a data file and creates a temp html file that is handed off to FF via execl) I check the system processes for a current running version of FF. If so I add the no-remote option.
    This all works ok. However, if I attempt to launch another copy of my program FF will not allow this even though I am using a tab browser configuration.
    I believe that one session of FF per "user" is acceptable but not the limit of one tab for each user other than the default user. I see my FF configuration eventually having several users as I begin to implement separate security policies for certain websites such as financial, casual, javascript development, no cookies, etc.
    I typically keep well over 20 tabs open, if FF crashes I can loose everything as if the restore fails I must then hunt up each tab that I had open using history.
    Can I get an update on where FF is headed with regards to the maximum number of users windows and the capability to open multiple tabs with a non-default user.

    Sounds like you've got a connection leak - rather than increasing the number of open sessions, you need to constrain the application to use fewer!
    If you don't ensure that the connection is closed even if an exception is thrown after it is opened but before it is closed then you are liable - likely even - to leak connections.
    For example. Bad:
    Connection c = getConnection();
    ... code here ...
    c.close();Good:
    Connection c = getConnection();
    try {
       ... code here ...
    } finally {
       c.close();
    }The same rule applies to ResultSet and Statement objects - and all three should be closed in the appropriate order (make sure you close result set and statement objects before re-using their reference).
    (edit: rephrased ambiguous final para).

  • *IMPORTANT* Limiting the number of active threads

    Hi All,
    i have a few of questions so please bare with me:
    1) What is the best way to limit the number of active threads? ie i want to run 10 threads but i want there to be only 3 running at a time.
    this is how im thinking of doing it rite now:
    count = 0;
    while(...)
    thread[count].start();
    while(threadgroup.activeCount > 4){}
    count++;
    2) I have a class that extends thread how do i overide the constructor so that i can add the thread to the threadgroup?
    ok here is an example of what i mean:
    u can do this with a normal thread: Thread one = new Thread(threadgroup, "what");
    this is what i need to do tho:
    class whatever extends Thread {
    public whatever(int a, int b, ThreadGroup tg)
    { what do i put here to make this thread part of the tg threadgroup?}
    thanx for any help in advance and i kinda need a quick answer cause this is due soon , thanx youssefe2k4

    Hi,
    1) Why do you want to do that?
    2) super(tg, "a name");
    /KajIt's part of a homework assignment... I saw another post on this forum and one at JavaRanch where you need to create an application that given a directory will scan each file and report the file name and how many lines are in them... but it must be multithreaded, each thread scan a single file and updates some list and finally you can only have three of these file scanning threads running at the same time...
    Quote "To avoid having too many threads competing for the system resources when there are a lot of files in the directory, we will restrict the number of active Producer threads (active threads are started threads that have not ended yet) during the run time. For this assignment, at any time there should not be more than 3 active Producer threads. If there are already three active Producer threads during the run time, the program should wait until one of them ends to start the next Producer thread."
    I was think about working on it, so that I can strengthen my knowledge in threads...
    I still might do it, just for fun... I don't know yet...
    We will see...
    - MaxxDmg...
    - ' He who never sleeps... '

  • The number of active Object monitors has overflowed.

    hello,
    please is any one has information about this error? and when it occure?
    Error Message: The number of active Object monitors has overflowed. [87]Exception Rec: EXCEPTION_ACCESS_VIOLATION (00000000c0000005) at 0x000000001006C5E0 - memory at 0x0000000000000000 could not be written.Minidump : Wrote mdmp. Size is 3827MBSafeDllMode : -1
    Fatal Error : The number of used monitors is 2097152, and the maximum possible monitor index 2097151Version
    we found it in the application log file.

    This means that the application currently has over 2 million Objects that are involved in synchronization operations and has created object monitors. This is highly unusual and should be investigated.
    /Staffan

  • Monitoring the number of active calls in a gateway from HUM

    Hi,
    we are configuring HUM and we want to display the number of active calls in a gateway but we can't find any OID's that show exactly what we want. So we are going to use the EXPRESSION-MIB in order to calculate some values we need.
    In MRTG we launch a snmpwalk query against the OID 1.3.6.1.4.1.9.9.63.1.3.1.1.9 (cvCallActiveInSignalLevel) and we count with a counter the number of rows obtained from that snmpwalk. The calculation is as follows:
    @ret=snmpwalk(sigint03.'@'.'x.x.x.x'.'1.3.6.1.4.1.9.9.63.1.3.1.1.9');
    foreach $campo (@ret) {
         $cuenta=$cuenta+1;
    print $cuenta."\n";
    But we don't know how to implement the "foreach" loop with the EXPRESSION-MIB... and we don't know any other way for getting the number of active calls.
    Can anybody please help me?
    Regards.

    Hi, I've only changed the command:
    snmpset -v 2c -c private router expExpressionValueType i 4
    with:
    snmpset -v 2c -c private router expExpressionValueType.1 i 4
    and
    snmpset -v 2c -c private router expExpressionValueType.2 i 4
    because, an error message appeared if not using the index. So, finally, the commands used are the following:
    snmpset -v 2c -c private router expNameStatus.110.110.110.110.110 i 6snmpset -v 2c -c private router expNameStatus.110.110.110.110.110 i 5snmpset -v 2c -c private router expExpressionIndex.110.110.110.110.110 gauge 1snmpset -v 2c -c private router expExpressionComment.1 octetstring "numeroEntradas"snmpset -v 2c -c private router expExpression.1 octetstring '$1 >= 0'snmpset -v 2c -c private router expObjectID.1.1 o 1.3.6.1.4.1.9.9.63.1.3.1.1.1snmpset -v 2c -c private router expExpressionValueType.1 i 4snmpset -v 2c -c private router expObjectIDWildcard.1.1 i 1snmpset -v 2c -c private router expObjectStatus.1.1 i 1snmpset -v 2c -c private router expNameStatus.110.110.110.110.110 i 1snmpset -v 2c -c private router expNameStatus.111.111.111.111.111 i 6snmpset -v 2c -c private router expNameStatus.111.111.111.111.111 i 5snmpset -v 2c -c private router expExpressionIndex.111.111.111.111.111 gauge 2snmpset -v 2c -c private router expExpressionComment.2 octetstring "sumaEntradas"snmpset -v 2c -c private router expExpression.2 octetstring 'sum($1)'snmpset -v 2c -c private router expObjectID.2.1 o expValueInteger32Val.1.0.0snmpset -v 2c -c private router expExpressionValueType.2 i 4snmpset -v 2c -c private router expObjectIDWildcard.2.1 i 1snmpset -v 2c -c private router expObjectStatus.2.1 i 1snmpset -v 2c -c private router expNameStatus.111.111.111.111.111 i 1
    But there are no entries in the expValueInteger32Val OID, so later, in the sum expression, there is no elements to sum. Please, find attached 2 files with the snmpwalk outputs.
    How could we get to have values in expValueTable?
    Many thanks.

  • How to check the number of active jdbc connections

    hi all,
    i'm creating a connection from Java using java.sql.Connection class and with oracle thin drivers. connection is creating properly.
    now, i want to know how many connections are created, through the sql query. i forget the query.
    its helpful for me.
    regards
    pavan.

    Your requirements are a bit vague - the only place to accurately determine the number of connections is in Oracle using the V$SESSION virtual view.
    It can tell you the number of session (active or idle) made from the platform running that Java code. It can also tell you basic session information like the current SQL (if active) that is being executed.
    There are numerous other V$ views that can be used in conjunction to build a very accurate picture of what the session is doing and what resources it is using.
    Details are in the Oracle® Database Reference manual. On-line copies of all manuals available via http://tahiti.oracle.com

  • Any way to get number of active sessions

    Hi,
              With the deprecation of the HttpSessionContext interface as of Servlet API
              2.1 for security reasons, is there any way to know how many sessions are
              currently active in a given WebLogic instance?
              Thanks,
              Sanjiv
              

    You could make it a singleton. The overhead is nothing ... trust me. Run
              WebLogic through a profiler if you don't ;-)
              Good luck,
              Cameron Purdy, LiveWater
              "Sanjiv Gulati" <[email protected]> wrote in message
              news:[email protected]...
              > Thanks for sharing this technique. Although I haven't used the
              > HttpSessionBindingListener interface myself, this will work as long as I
              add
              > an instance of SessionCounter in each new session. The only modifications
              > I'll add to the code below would be a synchronized block within the
              > valueBound and valueUnbound methods so that modifications to m_cSessions
              are
              > thread safe.
              >
              > The overhead associated with this approach will be the following:
              > 1) For every session there will be an associated SessionCounter, and
              > 2) Serialization of requests that end up invoking the valueBound &
              > valueUnbound methods.
              >
              > But I guess this cannot be avoided.
              >
              > Thanks,
              > Sanjiv
              >
              > Cameron Purdy <[email protected]> wrote in message
              > news:[email protected]...
              > > The only portable implementation is to have all requests go through your
              > > servlet code (or JSP code) and check if the session is new
              > > (HttpSession.isNew). If so, register a value with the session that
              > > implements HttpSessionBindingListener. Something like:
              > >
              > > class SessionCounter implements HttpSessionBindingListener {
              > > // count of active sessions
              > > private static int m_cSessions;
              > > // accessor for count of active sessions
              > > public int getSessionCount() {
              > > return m_cSessions;
              > > }
              > > // this object placed on a session
              > > void valueBound(...) {
              > > ++m_cSessions;
              > > }
              > > // this object removed from a session
              > > void valueUnound(...) {
              > > --m_cSessions;
              > > }
              > > // end class
              > > }
              > >
              > > It is host-local ... meaning it only tracks one host in a cluster.
              > > Actually, it only tracks sessions within one classloader on one host in
              a
              > > cluster, but don't worry about that distinction.
              > >
              > > And no, I've never done it, but it is apparent that you could, if you
              > chose
              > > to:
              > >
              > > 1) Count sessions
              > > 2) Track all session instances
              > > 3) Have session-level events, such as onCreate/onDestroy
              > >
              > > Hope it helps,
              > >
              > > Cameron Purdy, LiveWater
              > >
              > > "Sanjiv Gulati" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > Hi,
              > > >
              > > > With the deprecation of the HttpSessionContext interface as of Servlet
              > API
              > > > 2.1 for security reasons, is there any way to know how many sessions
              are
              > > > currently active in a given WebLogic instance?
              > > >
              > > > Thanks,
              > > > Sanjiv
              > > >
              > > >
              > >
              > >
              >
              >
              

  • Limit Number of active sessions for wlan user in Cisco Prime

    Is there a way to limit the number of logins from a particular set of credentials in Cisco Prime 2.1? I want to set a maximum of 2 logins from a particular user on the wlan. I have a guest wlan using layer 3 security and an internal wlan using RADIUS (Windows). Would appreciate the help

    There is, but it isn't due to PI. It is a function of the WLC itself.
    Under Security, there is a Concurrent User Login, set to 0(which is default) it is unlimited logins. This value can be changed to be the number of concurrent logins that work for your situation.
    Be advised, this is not a Per WLAN setting, it is a controller wide setting.
    HTH,
    Steve

Maybe you are looking for

  • Pages 5.1 relies on Pages 4.3 to open older documents?

    Really? No work-around for this? Any possibility that Pages 5.1 will be able to open such documents in the future? Or will we just have to make sure that we keep an older version of iWorks on our HD?

  • Can you import Access into Oracle 10g Express Edition?

    Hi all, I know you can import files from Access into some other versions of Oracle, but is it possible with 10g XE? I've been looking at all the tools in my browsers and none seem to do it. I guess I'll need to convert the tables into text, and then

  • How do I sign a document in Adobe Reader w/electronic signature?

    I'm trying to sign a tax form, its unclear from the Reader doc how to create a signature for use on the document.

  • How do I upgrade from final cut 5.1 to final cut 5.1.4?

    I wanted to upgrade from final cut studio 5.1 to 5.1.4 because it doesn't recognise my camera JVC HD111E or the format I have used 730p 25 frame. 5.1 codecs are extremely limited. However my Mac doesn't see that I need this update when I go to softwa

  • Pages 09

    I was wondering in anybody knows if pages is a good program for keeping a journal. My daughter was born last year and I started a journal for her with pictures and videos. I wanted to know if anybody was doing anything similar to this and if pages 09