How many sessions are created in Server ?

Hi All developers,
SCJP back again.........
Anybody please tell me......
Is there any way to find out how many sessions are created in server ?
Thanks in advance ..............

Only by keeping track of them yourself.
The various session listeners - SessionListener, SessionBindingListener are usefule here.

Similar Messages

  • How many Objects are created in this?

    Hi,
    How many objects are created in the flwg code:
    String str = new String("Hello");
    String str2 = "Hey there";
    str = str + str2;

    Depends if you're counting objects created at compile time.
    "Hello" is created at compile time. That's 1.
    new String("Hello") creates a new String object at runtime, pointing its backing array at the "Hello" in the constant pool. That's 2.
    "Hey there" is created at compile time. 3.
    str + str2 I might do everything at compile time, or it might do some at runtime. I don't know if str is considered a compile time literal here. I think not, but I'm not sure. You can check by using javap. If I'm correct, then at runtime you'll create a StringBuffer (4) and another String (5).
    So I'd say 5 objects. But if the compiler treats str as a literal and therefore can do the str+str2 at compile time, then it might do so without creating the StringBuffer. Or it might still create it at compile time, use it, and throw it out.

  • How many tables are created in Master data loading ( Including hierchy )

    hi ,
    Please anybody , can you tell us how many tables are created in Master data loading ( Including hierchy )
    thanks
    Phani

    Hi PP,
    Depending upon the definition of an infoobject, the tables are created when the objects are activated.
    /BI<C OR DIGIT>/<TABLE CODE><INFOOBJECT>
    <C or digit>: C = Customer-defined InfoObjects
    digit = SAP-defined InfoObjects
    <table code>: S = SID table
    T = Text table
    P = Time-independent master data attributes
    Q = Time-dependent master data attributes
    M = Union of time-dependent and time-independent master
    data attributes
    X = SID table for time-independent navigational attributes
    Y = SID table for time-dependent navigational attributes
    H = Hierarchy table
    K = Hierarchy SID table
    I = Hierarchy SID structure table
    J = Hierarchy interval table
    Thnaks...
    Shambhu

  • How many String are created?

    public String makinStrings() {
         String s = �Fred�;
         s = s + �47�;
         s = s.substring(2, 5);
         s = s.toUpperCase();
         return s.toString();
    }How many objects are created when this method is called?
    My answer is 5
    1. "Fred"
    2. "47"
    3. "Fred47"
    4. "ed4"
    5. "ED4"
    But my friend is telling it is 3.
    1. "Fred"
    2. "47"
    3. "Fred47"
    I know that any method called on String object creates a brand new String. Please help me with the solution whether it is 3 or 5.

    hi,
    First of all i want to thanks for all of your replies.
    My friend is saying that when we say "How many objects when method is invoked" it means at runtime. String literals are not created at run time.
    String s = �Fred�; // No object is creatd here
    s = s + �47�; // One object created "s"
    s = s.substring(2, 5); //Another object "s"
    s = s.toUpperCase(); //Another object "s"
    return s.toString();
    Hence total 3 objects.
    Now the i have got a doubt. Are String literals created at Complie time itself. Or since String s = "Fred" is a compile time constant field. And String literal "47" is also a compile time constant field.
    Suppose if the code is like this
    String s = new String("Fred")
    String s1 = s; ---------------- Then is this String object created at Run time.
    String s2 = "47" ----------- This object is created at Complie time.
    Please clarify my doubt.

  • How many objects are created?

    I have this question which some one posted to me.
    He asked me how many objects are created when an object of a simple class is created for example
    class A{
    public static void main(String args[])
    A a1 = new A();
    Now how many objects are created? I think only one. Can anyone tell me if any other objects are also created.
    Plz tell me .

    No, the answer is indeed 1. All the other objects
    (including the String[] in the main method
    parameters) are created outside of the A
    class, either by the JVM itself or by some other
    class that calls the A.main() method. You can try
    this out for yourself by adding a constructor such as
    A()
    System.out.println("Creating class A");
    } and see what prints out.Take a closer look at the question:
    how many objects are created when an object of a
    simple class is created for exampleIt doesn't say "how many objects of type A are created".
    I.e. The VM has to load class A before you can create an object from it, and thus an object of type Class is created. There are also a bunch of other objects which needs to be created before you can instantiate A.
    Kaj

  • How can i find how many sessions are opened in my database

    Hai
    Iam using Oracle 10g version, front end that iam using is oracle forms6i, sometimes my system get hanged because of some session and not closed i think, can i know how can i find how many session is opened on my database.

    You could query the V$SESSION dynamic view. More info...here...
    HTH!

  • Garbage Collection: how many objects are created after for loop?

    Please see the fallowing java code
    1 public class Test1 {
    2     
    3     public static void main(String[] args) {
    4          
    5          MyObj obj = null;
    6          for(int i=0;i<5;i++){
    7               obj = new MyObj();
    8          }
    9 // do something
    10
    11     }
    12 }
    so my question is How may objects are eligible for garbage collection at line no: 9 (// do something)?

    so my question is How may objects are eligible for
    garbage collection at line no: 9 (// do something)?It's impossible to answer that question since we don't know how MyObj is implemented.
    Kaj

  • How many tables are created?

              How tables does weblogic (7.0) create in database when using JMSJDBCStore? According
              to the DDL, there are only two tables; JMSSTORE and JMSSTATE.
              Jeba
              

    That's it. Two.
              And in the next release (named 9.0?) it will likely
              go down to one.
              Tom, BEA
              Jeba Bhaskaran wrote:
              > How tables does weblogic (7.0) create in database when using JMSJDBCStore? According
              > to the DDL, there are only two tables; JMSSTORE and JMSSTATE.
              >
              > Jeba
              

  • 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

  • How to know status of session in tables& how many status are available?

    Hi Experts,
    these are tables having of BDC Session status tablels APQD, APQI , APQL..
    could any one tell me how to find the error status in the tables.
    APQL is the session log table but i am unable to find the details of error session.
    error status found in APQI table.
    and also tell me how many status are avilable for session?
    and tell me the meaning .(like E for error )
    Thanks.

    Hello Kalyan,
    Please find the status of the sessions as below:
    1. New
    2. Incorrect
    3. Processed
    4. In Process
    5. In Background
    6. Being Created
    7. Locked.
    I think you are asking about the status of the session. it will be in SM35 as tab strips. If you are asking about the status in the LOG it will be Success or Error and it will update at runtime through BDCLM-MART field.
    I think it will help you.
    Regards,
    Subrahmanyam.

  • How sessions are implemented on server

    Hi All,
    Can anyone please tell me how sessions are implemented on server like JRun, WebLogic, WebSphere or in general ?
    Thanks & Regards,
    Kumar.

    A common way to implement sessions in web servers would be something along the lines of...:
    1) When a browser accesses the webserver, the webserver sends a cookie with a session id to
    the browser.
    2) The webserver creates an instance of some proprietary class that implements the
    javax.servlet.http.HttpSession interface (comes with J2EE)
    3) The webserver stores the session instance in a java.util.Map instance using the session id as the key.
    4) When the browser hits the web server again, the cookie containing the session id is also sent, and
    the web server knows which session instance to use when processing this request.
    5) If the browser doesn't have cookies enabled, URL rewriting can be used. URL rewriting means that
    the webserver adds the session id as a parameter to every link in the web application. Thus, whenever
    the browser accesses the server again, the session id will be part of the URL, and the web server will
    know what session instance to use when processing the request.
    6) The webserver has a thread checking the session instances regularly to see if they are still valid,
    meaning if their timeout limit hasn't been passed since the last request. If a session has expired it will
    be removed. If a browser accesses a server with an old session id, the server will send a new cookie
    with a new session id to the browser.
    7) If the web server is part of a cluster, the session instance must be stored in a central database so all
    web servers can access it, or the session must be replicated from the current server to all other servers in the cluster, whenever the values in the session instance changes.
    Though I'm not an expert on Java web servers, I believe the, or variations of the above of course, will be how it's done.
    Hope this gives you an idea.
    Jakob Jenkov
    www.jenkov.com

  • How many softwares are there to create a setup file for java programs

    Hi, i am new to java
    I want to know how many softwares are there to create a setup file for java programs.
    I know one software i.e java launcher to create a setup file.
    I want to know about any other softwares are available to create a setup file for java programs.
    I created a setup file for swings program in JCreator.
    And don't think that i am wastiing ur time with this question .
    Help me regarding this topic.
    Thanks in Advance

    superstar wrote:
    I want to know how many softwares are there to create a setup file for java programs.13, no wait, 42.
    I know one software i.e java launcher to create a setup file.You should clearly identify what you think you already know.
    I want to know about any other softwares are available to create a setup file for java programs.
    I created a setup file for swings program in JCreator.Is this the one you talked before, or is this different?
    And don't think that i am wasting ur time with this question .Why should I not think that?

  • Can I find out how many clients are connected to a server process?

    Hi, I am hoping I can find out how many clients are connected to a server process. This could be either a programmatic lookout number, a number in a log file etc.
    By the way, does lookout have any application (not data) logs? I have noticed that occasionally lookout will crash and I cannot find any logs to determine why, what processes were running, who last accessed it etc.
    Thanks

    Hello,
    There's currently no way to acquire this data. I think that'd be a great suggestion for the product. Please submit your feedback to our developers at the following link: http://digital.ni.com/applications/psc.nsf/default?OpenForm&temp1=&node=
    Best regards,
    Yusuf C
    Application Engineer
    National Instruments

  • 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)

  • How to findout how many  instances are available in one server

    how many instances are available in one server

    You can also check (in Unix) /etc/oratab to list all Oracle instances, it should be updated. That's not so true...
    example:
    ps -aef | grep pmon | grep -v grep
    oracle   14867     1  0 Jul29 ?        00:00:00 ora_pmon_TEST9I
    oracle   15024     1  0 12:10 ?        00:00:00 ora_pmon_SECOND9I
    oracle   15172     1  0 12:11 ?        00:00:00 ora_pmon_THIRD9I
    cat /etc/oratab
    *:/opt/oracle/920:NThis topic was discussed here Oracle9i on Redhat and there you could find other suggestions.

Maybe you are looking for

  • How can I transfer data from a pc to my mac pro

    I would like to sync pc I tunes to my newly purchased Mac Pro, what is the best method to transfer the data

  • System image restore new hard drive

    Hard drive failed. Brought new one and are trying to do a system image restore. Boot using Win 7 repair disk. Start image recovery. Runs for a min or two and give me the following error. Windows back up failed to extend or mount the file system on th

  • When in audiobooks I can't get to podcasts

    I just recently started loading Audiobooks onto my iPhone4S (IOS 5.0.1), I listen to these and podcasts when driving to work. But I've found a strange quirk in the interface. To get to the Audiobooks I go into Music>More>Audiobooks But once I'm in th

  • 0SD_C03 report in local currency

    Dear all, I would like to get report in my local currency in 0SD_C03 , however all kf's are in statistical currency unit, is there any way to get in local currency, i entered in sales order, other than currecy translation in bex? Thanks

  • Macintosh Swing

    I'm having trouble compiling the swing example code provided in the tutorial. the error is javax.swing.*; package not found. I'm using MRJ 2.2 on my mac. do i need a newer version of mrj? do i need a seperate package all together? help