Command to know number of instance running on Linux

Hi Friends,
Can any body tell me how to know number of instances running on Unix/Linux platform .
Regards
Mukesh

And if you add *| wc -l* to that, it will give you the number of instances + 1. This might be useful for scripting purposes.
wc -l basically gives you the number of lines.
Regards,
Mike

Similar Messages

  • How to know number of databases running

    HI Experts,
    How to easily know how many databases are running in Windows OS and Solaris OS
    Thanks
    Shaan

    Hi Adith,
    It means i have to loggin to sqlplus, but even if i logging to sqlplus it won't show total numbers of databases running on the server. Is there any other way to know.
    My query is how do I know about number and name of the databases running on a server which is unknown to me. Lsnrctl is one option, but it also doesn't give the 100% result.
    Thanks
    Shaan

  • Number of Instances of any Object in JVM

    Hello Guys, Is there any way to know number of instances for any perticular class in JVM. For example i want to know how many instance of calss "Vector" are there in JVM. Can we write any program which take class name as parameter and tells the number of instances ? is there any thing readly available in some place or if some of you guys might already written.
    Please let me know, thanks.

    In the destoryMine set the object to null and
    decrease the minecount by one.I follow everything you say but this. How do you "set
    the object to null"? Could you provide some Java
    source code as an example?I guess I don't see the problem you do. Assuming Mine has a single constructor taking a String parameter, what is wrong with this:
    public class MineFactory {
        private static int counter = 0;
        public static Mine createMine(String value) {
            counter++;
            return new Mine(value);
        public static void destroyMine(Mine mine) {
            mine = null;
            counter--;
        public int getMineCount() {
            return counter;
    }? The line         mine = null; is not a problem, is it?
    -- Scott

  • Vmstat and how to know number of available cpu/cpu in Solaris?

    Hi
    Which command to know number of available cpu in Solaris?
    And what is the difference between vmstat and prstat since the purpose is to check the server load??
    Thanks

    1) psrinfo or psrinfo -v, prtdiag also works on most platforms if you have a recent enough version of Solaris.
    2) prstat shows what processes you have on the systems, how much memory they consume, the amount of threads and other things, in other words it returns statistics about the processes of the system.
    vmstat shows the statistics of the virtual memory subsystem, such as paging, memory statistics, disk I/O and kernel stats.
    .7/M.

  • Sometimes a plugin-container.exe instance starts hogging a ton of memory -- I would like to know which plugin is running inside that plugin-container without having to one-by-one disable the plugins. Which process called plugin-container.exe?

    As described above, I have several instances of plugin-container.exe running, which is OK. It would make me feel safer to know which plugins are running inside each of these, since I would be better able to know whether there is malware running inside one of them, or which website might have made the process start hogging memory.
    I am a power user, I usually have 80-100 tabs open, and of course it is hard to track the website or plugin down without having to waste a lot of time.
    Could you provide in future releases this information?
    Is it already available under one of the about: pages (e.g. config, plugins, memory, etc?)

    Thanks Efreak! <br><br>
    Maybe I was not clear. I usually have 4-5 plugin-container.exe processes running. I know now that the large one that hogs is the Adobe Flash player, but, for example I don't know which plug-in initiated the other plugin-container.exe instances.<br><br>
    One of them actually says "googletalkplugin.exe" if you dig deep, which is OK. At least I know why the plugin-container.exe was started. But there are other instances that are just there and there is no way to figure out which plug-in initiated it.<br><br>
    This would of course also help figure out if it is really the Adobe Flash plug in that is hogging all the memory, OR even if within Firefox in the about: pages one could figure out which TABS are using which plug-ins.
    Like that you could freely choose to terminate the process directly, or close the TAB.<br><br>
    1) What I am looking for is a way to determine which plug-in is running under which instance of plugin-container.exe<br>
    2) Additionally it would be great to have a summary of which TABS are using which plugins (e.g. in the about:plugins page or yet another about: page)
    <br><br>
    Thank you

  • Java command to get the host ad ip details of the weblogic instance running

    Hi Guys I have a weblogic instance running in my machine and I have deployed my ear file containg some java class files.Is it possible for me to get the host name and the port to which the weblogic instance is running.
    Thanks in advance

    shet wrote:
    Hi Guys I have a weblogic instance running in my machine and I have deployed my ear file containg some java class files.Is it possible for me to get the host name and the port to which the weblogic instance is running.the application should neither know nor care what server or port it's deployed to.
    %

  • My iPhone 4 was stolen, how do i lock it permanently using a serial number for instance so nobody can use it or access my personal information, knowing that the thief knows my personal passcode.. Please help, Thanx

    My iPhone 4 was stolen, how do i lock it permanently using a serial number for instance so nobody can use it or access my personal information, knowing that the thief knows my personal passcode.. Please help, Thanx

    You cannot lock it by the serial number. Report it to your carrier and the police. You said that the thief knows your pass code. Does that mean that the thief was a personal friend who would be close enough to you to know what your code was? If that is the case, ask your friend to return your phone.

  • ABAP-OO: Create any number of instances

    Hello,
    please, look at this simple scenario:
    DATA:
      my_class type ref to zcl_xyz.
      create object my_class.
    In that case I have just created one instance. Now I need a mechanism to create and identify any number of instance of the type zcl_xyz. <b>That means, I dont know exactly, if I need 5 or 200 instances.</b> Any feasible idea, how to handle that?
    Thanks and regards.

    Hi,
    Declare one static attribute in the class.
    Here is the sample code to trap the number of instance created for an object type.
    CLASS C1 DEFINITION.
      PUBLIC SECTION.
        CLASS-DATA CREATE_COUNT TYPE I.
        METHODS CONSTRUCTOR.
    ENDCLASS.
    DATA: O1 TYPE REF TO C1,
          O2 LIKE O1,
          O3 LIKE O1.
    CREATE OBJECT: O1,
                   O2,
                   O3.
    WRITE: 'Number of created objects:', C1=>CREATE_COUNT.
    CLASS C1 IMPLEMENTATION.
      METHOD CONSTRUCTOR.
        CREATE_COUNT = CREATE_COUNT + 1.
      ENDMETHOD.
    ENDCLASS.
    Hope this hint helps you.

  • How count the total number of instances ?

    I have 2 scenarios :-
    1. How to get the total number of instances of  the node  in a BO?
    eg :
    businessobject BO1   {
    element BO_ID;
                       node NODE1 [0..n]
                         element Node_ID;
                         element Status ;
                         element value:
    I want to get total number of the NODES instances in the particular instance of the BO1.   !!!?????
    2. I want to  make some calculations based on the attributes of the NODE1 , in the   BeforeSave .absl  of the Business Object BO1.
    eg:
    something like this :-
    In BeforeSave of BO1.absl -
    for ( all the instances in NODE1 )
    {   if (NODE1.status == true)
                 sum = sum + NODE1.value
    Please help !!!!

    Your approach is correct.
    You can use a standard Query or create your own Query to run through Datainstances.
    Documentation with examples for Queries in ABSL see here: https://my020062.sapbydesign.com/sap/ap/ui/repository/SAP_BYD_WEKTRA/CP/sapLSUIContentPlayerTestPage.html?manifest=067D03A7602B1D490899DF46B5082089&COMPONENT=A1S_PDI&RELEASE=260&LANGUAGE=en&REGION=&INDUSTRY=&TASK=CR_VIEW&sap-language=EN
    Looking / Clincking  for "SAP Business ByDesign Scripting Language" and "Syntax for Implementation of Actions and Events" and "Query"

  • Command to know which process is doing huge paging

    Hi,
    I am using Oracle 10.2.0.2.0 on sun solaris 10.
    When I use OEM (Internet explorer version) it shows me that there is a huge paging going on.
    Also I have seen the vmstat output which is showing huge paging.
    For the time, I have stoped my oracle and restarted. Now from last two days, I am not seeing any problem of paging anymore.
    How can I know which process is responsible for that ?
    Can anyone help me to get a command to know which process is responsible for huge paging (for future) ?
    Thanks & Regards
    Arun Tayal

    hi,
    When OEM shows the problem try running the command 'top' from the unix prompt. From the list of processes look for all oracle ones and see which is consumming most resources. then run thw following script and input the PID and see what the sql script is
    --find out sql script from unix PID
    select sql_text
    from v$sqlarea a,
    v$process p, v$session s
    where p.spid = &process_id
    and p.addr = s.paddr
    and a.address = s.sql_address;
    hope this helps
    rgds
    Alan

  • How to remove one sap Instance where 2 instance running in same server

    How to remove one sap BW Instance from server where 2 instance running in same server.
    We have 2 BW Instances ( QW1 and CW1) running in the same physical server (windows 2003 + MSSQL). Now we want remove one Instance from the server completly. Could any one give steps or procudure which we should follow to remove one instance without disturbing another one. Both instances are Central Instances.
    SAP System component version: SAP NetWeaver 2004s (2007)
    Please help me in this...let me know if you need any more inforamtion.
    Thanks in advance.
    Sridhar

    Hi Sridhar,
    You can definitely remove an instance completey. When you select uninstall option using sapinst, it will give you a list of running instances on the node using profile files.
    You can select which one to uninstall.
    Best Regards
    RAGHU

  • Number of instances

    does any one know a simple way to return the number of
    instances or the number of synchronized objects in a
    fms application??
    thank you in advance.

    does any one know a simple way to return the number of
    instances or the number of synchronized objects in a
    fms application??
    thank you in advance.

  • Why my tax reporter number range is running so fast?

    hi experts,
    I really don't know why my tax reporter number range is running so fast. I ran the tax reporter for only like 15 times for only 30 employeess in production but the tax reporter number range goes upto 9234. why is that so. how does numberrange in tax reporter works and how do i fix it.
    Thanks,
    Rahsmi

    Thanks for that. Arun, i checked that but its like this which is standard SAP thing
    no.     from         to   current number    EXt.
    1       1           8999    20       
    99      9000     9999      9659
    Ext. is not checked, so its all coming internally. what u say?

  • How to know BPEL process is running

    Hi,
    I have BPEL process which is triggerred by FileAdapter. File Adapter polls for every 120seconds and if any file exists, it reads and BPEL process is initiated.
    As BPEL proccess is big and sometimes it executes more than 120seconds and it depends on environment with less load process faster and more load its takes more time.
    Due to this is there a way to know BPEL process is running before fetching new file or before starting actual BPEL process.
    JDev: 11.1.1.6.0
    Thanks,
    Bhaskar

    Can a singleton bpel will resolve your problem ?
    At a time only one bpel process will be running there wont be any parallel instances for that bpel. In that way there wont be any second instance created until the first instance has done with its job.
    http://orasoa.blogspot.co.uk/2007/05/create-singleton-process.html
    http://blogs.bpel-people.com/2009/04/writing-singleton-bpel-process.html
    Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question.
    Thanks,
    Vijay

  • Oracle instance running on a system with low open file descriptor

    Hello.
    We have 10.1.0.4 on SuSE 9 on x86 64bit Sun servers.
    We have databases that if started manually come up without the warning, but if started via a shell script scheduled through a crontab start up with this warning: "Oracle instance running on a system with low open file descriptor".
    My understanding is that it has to do with OS ulimit. it appears that non-interactive shell (crontab) does not set the nofiles at 65536.
    All our system are set up exactly the same way. The problem is, though, that some systems do not report the warning even when started non-interactively.
    My question is this: assuming my nofiles ulimit is in fact too low on all systems, why would some systems report the warning and others would not? Is there anything database specific the instance looks for when it starts, such as the number of datafiles in the database, instance memory size, etc..., which would make the instance warn in some cases but not the others?
    Thank You
    Boris

    Thank You Satish.
    This is a good reference and we may end up looking into the patch bundle associated with the bug.
    But does anyone have any idea why the systems that are set up the same exact way would warn on systems and not on others?
    Also, the Metalink note talks about init.crsd. I have not build an association between this inconsistency and RAC.
    What I do see is that if we start up our database non-interactively (where ulimit -n resolves to 1024, instead of 65536) the warning is generated, in some cases.
    Perhaps, the 1024 is too low. But then my question is why would Oracle think it is too low only on some servers and not all?
    Boris

Maybe you are looking for

  • Adding a new field to the search help exit

    Hi friends, adding a new field to the search help exit. How does it work ? Thanks in advace Ilhan

  • How do i completely remove headers from email messages

    Hi everyone. Can someone tell me how to completely remove the headers from showing up in messages i send, forward or receive? I know how to make the headers shorter, but that's not what i want to do. I want to completely remove them from all outgoing

  • MDB Listening to remote queue

              Hi,           Could any of you please let me know what needs to be done to configure my MDB           to listen to a remote queue in a different domain (also using wls 7.0).           I tried adding the <provider-url> element in the weblogi

  • Liberty Reserve said to use plugin fo liberty guard for protection. Where is the plug in for it?

    This is from Liberty Reserve: Liberty Guard Requirements Liberty Guard is a plugin for a Firefox browser and requires Firefox browser to operate. What is Liberty Guard? LibertyGuard is a Firefox plugin that blocks fake/phishing web sites that will tr

  • Consumption is happenign for all the operation in PI sheet

    Hi experts, The consumption is happening for all the operations in the pi sheets evethough the Process message characterstic for consumption is assigned only to one of the Operation in master recipe. I, also tried removing the backflush indicator but