Resolve session count

Hi,
What would be the most simple way to resolve number of http sessions of certain web application deployed to standalone oc4j using remote host and command line?
Any good suggestions?

I guess I made a silly mistake...
I didnt import java.servlet.http.*;
My codes are:
public class  tree
    public tree() {}
public void display(  String temp,   HttpServletRequest request)
                              throws  IOException     {
    try
        HttpSession session = request.getSession(true);
        if ((session == null) && session.isNew())
           session.setAttribute("counter", new Integer(0));
... //rest of the codes
how should my calling method be written?
tree.display(temp, ????);
Please help thanks!

Similar Messages

  • Session Count not dropping in BOE XI

    Iam calling crystal reports using url reporting. ie. calling OpenDocument.aspx page from a custom asp webpage. Iam able to create a token and then redirect to the OpenDocument.aspx correctly. But iam facing 2 issues :
    1. The session created does not get destroyed on browser close. So, as i open new reports that i have linked as various links on my intranet, new sessions are created. Old ones are not destroyed. this keeps incrementing session count.
    2. In the same browser page, (which was idle for a period of time), if i try to open a new report, at times, iam led to the infoview login page although the redirecting url shows a token being passed. Now if i click the back button on IE and then try to open the report again, it opens.
    Why does this happen ? What can be done to resolve these issues ?
    Any advice is highly appreciated.
    Thanks in advance.

    Thanks for your reply Ted!.
    I was hoping that we could do some custom code from the openDocument page to clean up the sessions.
    Now that we are not able to modify it, dont you think it is going to eat up memory resources on server when we move this to production where we have a large number of users who will be accessing different reports at the same time.  We have quite a large number of reports available for access this way, and accessed by a large number of users. What do you think would be a good approach in this scenario ?
    Regards.

  • How to find active sessions count on a server in weblogic server console

    Hi All,
    I would like to know how to find active sessions count on a server in weblogic console. I am using weblogic 11g.
    Regards,
    Sunil.

    On the deployment, monitoring tab, you can select web applications. Here the number of current sessions are listed per web application deployed on the domain.
    The deployment itself (deployments, application, monitoring, sessions) shows a list of sessions and where it is located. Unfortunately, there is no aggregation (but that is something you can so yourself as well).
    When you are using a load balancer in front, the count of sessions on per web application on the domain gives you some clue how many sessions there are present on each server.
    That is to say, when load balancer is using round-robin (and does that correct), you can take the total number of sessions divide it by the number of servers.

  • Can not be resolved session, folder ,store, message[]

    i dont have a clue on what i am missing here. Any nice explanation on the why would be great
    Session cannot be resolved
    Session cannot be resolved or is not a type
    Store cannot be resolved or is not a type
    Folder cannot be resolved
    folder cannot be resolved or is not a type
    Message[] cannot be resolved or is not a type
    import javax.mail.*;
    import javax.mail.internet.*;
    public class fetch_mail {
         public static void main (String args[])
          throws Exception {
         Properties props = new Properties();
         Session session = Session.getDefaultInstance(props, null);
         Store store = session.getStore("pop3");
        store.connect("smtp.host.com", "user", "pwd");
        Folder inbox = store.getFolder("INBOX");
        inbox.open(Folder.READ_ONLY);
        try {
        Message message[] = inbox.getMessages();
        for (int i=0, n=message.length; i<n; i++) {
        String subject = message.getSubject().toString();
    if (subject.startsWith("[test]")) {
    System.out.println("\r" + i + ": "
    + message[i].getFrom()[0]
    + "\t" + message[i].getSubject());
    String content =
    message[i].getContent().toString();
    if (content.length() > 200) {
    content = content.substring(0, 200);
    System.out.print(content);
    catch (IOException e) {
    System.err.println("Caught IOException");
    // Close connection
    inbox.close(false);
    store.close();
    System.exit(0);

    I got it figured out..
    Altho i did inlude the jar files into the Eclipse, i actually need to put them in the jdk jre lib ext folder to get it all to work right.
    mail.jar and activation.jar

  • Active session count of an user

    Hi,
    Could you help me understand the concept of active user session count and the factors influencing the active sesssion count of an user
    1) Does running multiple queries in a number of query windows in SQL developer lead to increase active session count?
    2) Does a high degree of parallel option ( e.g. Parallel (Degree 8)) provided in a query lead to a higher session count?
    3) Does the size of data processed in a query influence session count?
    4) Does the complexity of a query influence session count?
    5) Can a session remain active even after completion of a query and thereby increase the active sessioncount?
    Regards
    -Learnsequel

    910874 wrote:
    Could you help me understand the concept of active user session count and the factors influencing the active sesssion count of an userThat depends on the client. Does the client use some form of multi-threading? If so, the client needs a separate and active Oracle session servicing each of its running threads.
    The user may only initiate a single connection to the database - but the application remembers the authentication and connection details and can transparently establish multiple additional sessions. (a common behaviour by TOAD and SQL-Developer)
    1) Does running multiple queries in a number of query windows in SQL developer lead to increase active session count?Yes - as an Oracle session is serialised. It can only execute a single client request at a time. Thus if the client has 3 windows/tabs with each running a SQL query - then 3 Oracle sessions are required to service that client.
    2) Does a high degree of parallel option ( e.g. Parallel (Degree 8)) provided in a query lead to a higher session count?No. PX slave processes are database processes. They only "assist" a session at specific times. Then they can "assist" other sessions with other parallel query processing. The database has a configurable PQ processing pool of processes. You can specify the minimum number of processes to create in the pool at startup. You can specify the ceiling of the pool.
    So no number of sessions can grow the number of PQ processes beyond the maximum size of the pool. And the pool is there to service all sessions. Not just a single session.
    3) Does the size of data processed in a query influence session count?No.
    4) Does the complexity of a query influence session count?No.
    5) Can a session remain active even after completion of a query and thereby increase the active sessioncount?This is default behaviour. If that session terminates, the client looses its database connection.
    In the case of a multi-threaded client, it can decide to close one or more of the transparent "background" sessions it created to the database, when no longer needing such a session. However, it will keep its initial (first) session open as its primary connection to the database.

  • Resolving session scoped component in global scope component.

    Hi,
    I am implementing batch process and i am need to resolve session scoped component in global scoped component.
    In global scope component (one of the component referred by my scheduler which also in global scope as usual) and i need to resolve session scoped "/atg/epub/workflow/WorkflowView" component in my scheduler.
    I tried all possibilities but nothing worked out. I do not have access to current request, because its batch process. following ways i tried,
    1. getResolveName("/atg/epub/workflow/WorkflowView") method of GenericService which is extended by my global scope component -- This returns null.
    2. Tried to get the current request on ServletUtils to use resolveName() method on request.
    ServletUtlis.getCurrentRequest() - This returns null as expected.
    Is there any way to resolve session scoped component in global scope component. Thanks in advance.
    Edited by: 938890 on Jun 30, 2012 4:59 AM

    Try below :
    If you want to resolve the name of a Nucleus component from Java code that is not itself a Nucleus service, you must first initialize Nucleus with this construct:
    Nucleus.getGlobalNucleus().resolveName("target component")
    where target component is the name of the component you are looking up. Note that this construct works only for components with global scope.
    You can also resolve names of Nucleus components using the Java Naming and Directory Interface (JNDI). The following example shows how you can use JNDI to access the Scheduler component:
    String jndiName = "dynamo:/atg/dynamo/service/Scheduler";
    Context ctx = new javax.naming.InitialContext ();
    Scheduler s = (Scheduler) ctx.lookup (jndiName);
    reference - oracle ATG docs.
    ~ Praveer

  • Metric threshold Blocking session count

    Hi,
    I am trying to modify the blocking session count threshould and making warning threshold as null and critical threshold > 0. When i create a blocking session in the database i get the warning for application wait class but i don't get a critical alert generated even waiting for more than an hour. Here is what i have done so far
    1. changed the warning threshold to null, critical threshold to > 0 and changed the time of collection to each 5 minutes.
    2. Creating a blocking lock in the database, when i go on the performance page of db and look at the instance locks i can see the lock being held for more than 30 minutes
    Any ideas how can i get this going will be much appreciated.

    In order to trigger the metric "blocking session count", you have to
    a. have one session which is holding the lock (not comitting)
    b. at least one session which is waiting for exactly that lock. in that case, the metric will report sid of blocking session with a value of > 0.
    Regards,
    Martin Decker
    www.ora-solutions.net

  • Active session count of ASA in HA

    Hi,
    We have configured our ASA5540 in active-standby failover.
    We are observing that current active session count is twice of session count before configuring HA. Earlier average active session was 50000 and now after HA it is around 100000. Kindly let us know the reason for same.
    Failover configuration of both firewall are as follows
    failover
    failover lan unit primary
    failover lan interface FOLan GigabitEthernet1/0
    failover polltime unit 15 holdtime 45
    failover replication http
    failover link StateLink GigabitEthernet1/1
    failover interface ip FOLan 10.3.3.1 255.255.255.0 standby 10.3.3.2
    failover interface ip StateLink 10.4.4.1 255.255.255.0 standby 10.4.4.2
    failover
    failover lan unit secondary
    failover lan interface FOLan GigabitEthernet1/0
    failover polltime unit 15 holdtime 45
    failover replication http
    failover link StateLink GigabitEthernet1/1
    failover interface ip FOLan 10.3.3.1 255.255.255.0 standby 10.3.3.2
    failover interface ip StateLink 10.4.4.1 255.255.255.0 standby 10.4.4.2
    Regards,
    Mukesh Tiwari

    Hi,
    I guess you have check this with "show conn count" or "show conn" commands on the ASA?
    Ofcourse the first thing that comes to mind is that its somehow adding up the connection count of both ASA units. Though it shouldnt do this to my knowledge. You should just see almost equal amount of connections on both units. Both Primary and Secondary.
    Have you tried to check if there is any host on your local network that would be taking alot of connections? Maybe somethings happened at the same time (even though it might not be likely)
    Have you noticed any performance issues/problem after this upgrade to a A/S ASA pair?
    - Jouni

  • How to resolve Session Component

    Hi,
    How can we resolve Session component, we know that NucleusResolverUtil.resolveName("component-path") will resolve only global components , and the request.resolveName("component-path") also resolve only global components. If we could have dynamo request we could have resolve it. we are using Different Presentation Layer Framework so we dont have DynamoHttpServletRequest.
    Thanks,
    Edited by: sampro07 on Jun 11, 2012 12:04 PM

    The DynamoServletRequest is initialized when your HttpServletRequest request processed by the dynamo page filter (atg.filter.dspjsp.PageFilter). Check to see if you web.xml has the following lines in it.
    <!-- Dynamo Server Page Filter -->
    <!-- -->
    <!-- This filter invokes the dynamo application framework -->
    <!-- servlet pipeline. -->
    <filter>
    <filter-name>DynamoServerPageFilter</filter-name>
    <display-name>DynamoServerPageFilter</display-name>
    <description>This filter invokes the dynamo application framework servlet pipeline.</description>
    <filter-class>atg.filter.dspjsp.PageFilter</filter-class>
    </filter>
    <!-- Filter Mappings -->
    <!-- -->
    <!-- -->
    <filter-mapping>
    <filter-name>DynamoServerPageFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>

  • Session counter vs cfschedule

    Hi all,
    Got a bit of a riddle here. Trying to count current active number of sessions and as per ColdFusion documentation that should be done as follows:
    onSessionStart:
    <cfset Application.sessions = Application.sessions + 1>
    onSessionEnd:
    <cfset Arguments.ApplicationScope.sessions = Arguments.ApplicationScope.sessions - 1>
    That all works as expected as long as one doesn't use cfschedule events. Now in my application cfschedule runs every minute as a result creating  new sessions as it goes. What I'm trying to do is detect cfschedule event as a session 'runner' and ignore it for my session totals.
    On session start, that is done as follows:
    <cfif FindNoCase("CFSCHEDULE",CGI.HTTP_USER_AGENT) EQ 0>
         <cfset Application.sessions = Application.sessions + 1>
    </cfif>
    This way cfschedule is not counted as a site user, hence not logged.
    Now my question to the community is:
    How do you detect cfschedule event on session end? I was unable to locate any documentation explaining what sort of information is being passed inside the sessionScope to onSessionEnd function, hence how to access CGI info (if it's possible at all).
    Absolutely any input on this would be highly appreciated!
    Regards,
    Simon

    Hi guys,
    cfchedule event starts a new session itself. As well as that it seems it's a session just like the one user would start loading the site. Therefore, as any other session it runs the session counter (Application.sessions) and increases it.
    I have managed to successfully detect it upon start with the code provided in my initial post.
    To answer to BKBK, if on session end, which was started by cfschedule event I would not run the same test to check whether the session in fact was initiated by the cfscheduler, the counter would be reduced.
    Your suggestion does not help to solve the issue as counter meant to display only the sessions started by visitors, hence genuine data on the current site activity. An example to explain it in detail:
    At a sample given time I have 5 users online. Then cfscheduler runs and creates extra session. I detect it and skip counter logging. At this moment I still have 5 users. Now let's assume the same users are browsing the website and sessions are extended beyond the original 30 minute timeout of inactivity. After 30 minutes cfscheduler's session will expire and run through the onSessionEnd function. If I would not detect it as such, the counter would be reduced to 4, even though 5 users are currently online. There's the problem I'm trying to solve.
    The solution I have posted is still not 100% confirmed as sometimes it indeed shows some weird statistics.
    Simon

  • How to find the max session count and process count for a database

    Hi All,
    How to find the maximum session count and process count reached for a database over a period of 15 days?
    DB version:11.2.0.2
    OS:AIX

    Thanks for the link.
    The output of the below query that is given in the link shows the results for the last 10 or 12 days.. Is there a query which gives a result for the last 30 days?
    col metric_unit for a30
    set pagesize 100
    Select trunc(end_time),max(maxval) as Maximum_Value,metric_unit
    from dba_hist_sysmetric_summary
    where metric_id in ( 2118,2119) group by trunc(end_time),metric_unit order by 1;

  • WSRP HTTP Session count increase

    Hi,
    I notice that the session count increases considerably(in hundreds) at the WSRP producer with the simple refresh of the remote portlets in count. Is there a way to avoid those sessions?
    I'm using WLP 10.2 producer and WLP 10.2 consumer.
    We have the portlet preference set to the remote portlets. We suspect that this may be reason for the increase session count.
    Thanks,
    Edited by: user10874417 on Dec 27, 2010 7:50 AM

    This situation occurs when the producer and consumer cookies are configured.
    Did you try Using Different Cookie Names and are you using SSO on producer and consumer ? If yes, did you try to use System Property.
    For details refer Configuring Session Cookies, in Federated Portals Guide.

  • Maximum session count for Optimization on WAAS

    Hi all, i've currently two different types of hw in use.
    WAE612 an NM-WAE502.
    now i want to know the maximum session count for a WAE 512.
    On 502 we have a maximum of 500 sessions
    On 612 we have a maximum of 6000 sessiones.
    could you give me the maximum session count on WAE512?
    thx in advance
    Dieter

    Hmm, so i think it's the best to replace the NM due a WAE512.
    however, i've currently the problem, that the TFO session count reaches the maximum a few times per day.
    Now the question is:
    What is the best way to avoid a TFO session exceed?
    Is it O.K. to modify the policy. The Idea is to pass through traffic, which has only a poor benefit of WAAS (such as SAP).
    The question here is: Has a pass through on the policy any impact to the TFO counter?
    The second idea is to redirect only definded traffic via WCCP? Is there a way to do it in this way?
    thanks for your help

  • Xcelsius and Qaaws session count issue

    Hi
    We are using xcelsius 2008 plus Qaaws and Live office.
    Whenever we open up the dashboard, it increases our connection count in the CMS Server count and does not releases it for about 30 mins) even after closing dashboard and even Infoview.
    Anyone else had this issue and resolved it?
    Please advise.
    thanks

    Welcome to SCN!
    This is natural. 1 session per QaaWS connection. This should not be a concern if don't have 'concurrent' licensing for Business Objects.
    Thanks,
    Subhodeep

  • Persisted Sessions Count in Tomcat5.0

    I am using Tomcat5.0. I want to find the exact number of sessions associated with application running in the server. By using HttpSessionListener i wrote my logic.So that i can count the number of sessions.My Problem is, Suposse if i stop my tomcat server, the sessions in the server will be persisted. When i restart the tomcat those sessions (*which were pesisted when i stop the tomcat*) will be loaded again. I am unble to find the number of sessions which are loaded. Newly created sessions i can track and i can count. but those persisted session which are loaded when i restart the tomcat are out my count . How can i find the exact number?

    Dorababu wrote:
    I am using Tomcat5.0. I want to find the exact number of sessions associated with application running in the server. By using HttpSessionListener i wrote my logic.So that i can count the number of sessions.My Problem is, Suposse if i stop my tomcat server, the sessions in the server will be persisted. When i restart the tomcat those sessions (*which were pesisted when i stop the tomcat*) will be loaded again.Is that a requirement? Else you should just turn it off. Its configurable in the server.xml.
    I am unble to find the number of sessions which are loaded. Newly created sessions i can track and i can count. but those persisted session which are loaded when i restart the tomcat are out my count . How can i find the exact number?If you have to have sessions persisted, you will have to subclass the PersistentManager class (which is responsible for persisting & reviving sessions across restarts). The only additional functionality that you would add is to register lifecycle Listeners that will be notified of session revivals. Happy googling :)
    cheers,
    ram.

Maybe you are looking for

  • Safari start up issues

    Hi, Whenever I start safari, the application icon just bounces in the dock continuously and doesnt go any further. When I bring up the force quit window, it just says that the application is not responding. How do I sort this out? I searched through

  • Analysis Authorization created in RSECADMIN

    Hi I created an alaysis authorization using the transaction RSECADMIN following the steps Step 1: Activate all business content related to authorizations before you get started:* InfoObjects: 0TCA* and 0TCT* InfoCubes: 0TCA* Set the following InfoObj

  • How to read a table from one host to other host

    Hi Everybody, How to read a table from one host to other host. For Example, a/a@abcd - host 1 b/b@xyz - host 2 suppose im having a table called emp in a/a@abcd i want to read the table emp in b/b@xyz how to do this.?? I know that we have to create a

  • AE replaced footage doesn't pre-render properly

    Currently I'm working on a project that has various visual effects which I've composited in After Effects. I've done this, after editing the project in Premiere CS5.5, by selecting "Replace footage with After Effects composition" in the context-menu

  • IMac not streaming from Match, says cannot find location

    I have most of my music on an external harddrive which was connected to my iMac. All those songs are uploaded or matched to my Match. I have unplugged the harddrive (since my iMac does not like firewire and will freeze, another issue completely) but