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.

Similar Messages

  • HT3696 How to know if your mac is using the latest Haswell architecture processor or not? and how to know the difference between the new imac and the 2012/13 imac?

    How to know if your mac is using the latest Haswell architecture processor or not? and how to know the difference between the new imac and the 2012/13 imac?

    Sorry to reopen an old post, but I've just purchased a 2nd hand late-2013 iMac (or so thats what the seller said).
    I'm always sceptical though, and just wanted to know if there is a way to check if my iMac is indeed the late-2013 model that included Haswell?
    I've attached screenshots of the About This Mac section hoping it may help shed some light.
    Thank you in advance for your help!
    PS - I can't compare to the iMac specs link you posted above because its now showing the late-2014 models.
    <Image Edited by Host to Remove Serial Number>

  • How to:Create a blank document, and how to make a font available for editin

    Two questions:
    1: How do I create a new PDF document? All I see is to create from an existing document or scanner. If I'm creating something from scratch, do I really have to load an existing PDF, delete everything and then start my new document? That's the way it seems, which is nuts!
    2: I have tried to edit the text in a document. I did not not create it, but it is open to editing. The font used in the document is "Arial", a very common font that comes with windows. The font is installed and I use it all the time in other Adobe apps. However when I try to edit a ducument using that font, I get a message that "the font is unavailable for editing" and it substitutes some random font. So why is it not available, and how do I make it available?
    Thanks!
    I'm using Adobe Acrobat XI Pro v.11.0.10 with Adobe Creative Cloud 2014 and Windows 7, all shown as up to date.

    For the first item...
    Here is a sample from the Acrobat SDK - JavaScript section:
    trustedNewDoc = app.trustedFunction( function (nWidth, nHeight)
            app.beginPriv();
                switch( arguments.length ) {
                    case 2:
                        app.newDoc( nWidth, nHeight );
                        break;
                    case 1:
                        app.newDoc( nWidth );
                        break;
                    default:
                        app.newDoc();
            app.endPriv();
        app.addSubMenu({ cName: "New", cParent: "File", nPos: 0 })
        app.addMenuItem({ cName: "Letter", cParent: "New", cExec:
            "trustedNewDoc();"});
        app.addMenuItem({ cName: "A4", cParent: "New", cExec:
            "trustedNewDoc(420,595)"});
        app.addMenuItem({ cName: "Custom...", cParent: "New", cExec:
            "var nWidth = app.response({ cQuestion:'Enter Width in Points',\
                cTitle: 'Custom Page Size'});"
            +"if (nWidth == null) nWidth = 612;"   
            +"var nHeight = app.response({ cQuestion:'Enter Height in Points',\
                cTitle: 'Custom Page Size'});"
            +"if (nHeight == null) nHeight = 792;"
            +"trustedNewDoc(nWidth, nHeight) "});
    Copy it into a text file and give it a name with a "*.js" file extension.
    Place the JS file in the JavaScripts folder:   C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts\
    Relaunch Acrobat and you should have a new menu item named "New"

  • I purchase iphone from saudi arabia (mobily telecom), can i use this mobile in pakistan and other custires. and how i know this phone is carrier unlocked..

    i purchase iphone from saudi arabia (mobily telecom), can i use this mobile in pakistan and other custires. and how i know this phone is carrier unlocked..

    It will be locked to mobily telecom, and according to Apple's list of supported carriers and their features (http://support.apple.com/kb/HT1937) they do not offer unlocking.  Since only the carrier it is locked to can unlock it, you have bought a useless phone.

  • How apple support my iphone who ever my serial is replaced and  how i know my iphone is refurbished  ??

    Hi everyone! I have iphone 4s, which was my friends bought it from canada appstore about 1 month before and has serial number DQ*******TDD and IMEI ****. When i try to check warranty on the page https://selfsolve.apple.com/wcResults.do i see
    We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. If your information is correct, you may need to contact us.
    And if i try to enter IMEI here i see
    Our records indicate that this product has been replaced. Please provide the serial number for your replacement product to find the support and warranty coverage information. For more information, please contact us.
    Does it means, that I was bought a non exist iPhone? Or it was refurbished? I need an official answer to take them to seller because I was bought iPhone as a new.
    How I know my iphone is  refurbished?
    Thank you.
    answers that i folow up and find are :
    - Did you purchase the device from Apple or an authorized reseller? If not, then you were scammed.
    - It means you bought a gray market phone that was replaced, reported lost, or reported stolen, then re-sold illegally. It has no warranty and Apple will not service it with an out of warranty replacement.
    - If your phone was replaced, it was most likely refurbished.
    - You cannot tell the difference between a refurbished phone and a new one.
    - check your serial number if its starts with 5K then its refurbished model
    Not true. All it does is identify it as 'service stock'. It may be refurbised, or it may be new. There is no way for you, or even someone at an Apple Store, to tell the difference.
    6 - You bought a phone that was stolen, lost, or taken in for repair and then re-sold illegally. get your money back if you can.
                 If there is ever a hardware problem that requires service, you will most likely not be able to get it serviced or replaced by Apple.
    7- During the refurbishment process the devices are assigned a new serial number.
    8- This means that your iPhone was replaced by Apple and you entered the serial number for your old iPhone which was replaced.
    9- That means that particular phone has been replaced under warranty. Where did you get the phone from? If it was used, the previous owner may have had it replaced and not returned it to Apple as they were supposed to and sold it.
    10-  Interpreting what you postd, it would seem you had the device replaced at some earlier stage.  Apple doesn't repair but instead replaces the whole unit with a refurbished unit which has its own serial number. Whatever the case, you will have to see Apple about the matter.
    11-  white box (new) or a brown box (refurb)
    now my questions :
    how i know my iphone is refurbished and how apple support my iphone who ever my serial is replaced ??

    How can I know my device is refurbished or new one??Can I check my device is refurbished or new with serial number?

  • ScrollRect and how to know the real height

    I am having a problem when I try to know the real height of the sprite.
    I have a clas:
    package
        import flash.display.Sprite;
        import flash.events.TimerEvent;
        import flash.geom.Rectangle;
        import flash.system.Capabilities;
        import flash.utils.Timer;
        [SWF( width='800', height='600', frameRate='30', backgroundColor='#ffddee' )] 
        public class Test1 extends Sprite 
            private var timer:Timer;
            private var sprite:Sprite;
            public function Test1() 
                init(); 
            private function init():void 
                timer = new Timer( 2000, 0 );
                timer.addEventListener( TimerEvent.TIMER, onTimer );
                sprite = new Sprite();
                sprite.graphics.beginFill(0x00ffaa);
                sprite.graphics.drawRect(0,0,200,450);
                sprite.graphics.endFill();
                sprite.scrollRect = new Rectangle(0,0,200,200);
                addChild( sprite );
                show(0);
                timer.start();
                trace("START "+flash.system.Capabilities.version);
            private function show(cur_page:int  ):void
                trace("height = "+sprite.height);
                trace("scrollHeight = "+sprite.scrollRect.height);
                trace("boundsHeight = "+sprite.getBounds(sprite).height);
            private function onTimer( e:TimerEvent ):void
                show(0);
    and it displays:
    height = 450
    scrollHeight = 200
    boundsHeight = 450
    START WIN 10,1,102,64
    height = 200
    scrollHeight = 200
    boundsHeight = 200
    Why  sprite.getBounds(sprite).height first time brings the real height, and  then the value by appropriate sprite.scrollRect.height, and how to fix  it?

    I found the solution, which was published on 24th February 2009:
    http://usecake.com/lab/find-the-height-and-width-of-a-sprite-with-a-scrollrect.html
    * This function works like DisplayObject.getBounds(), except it will find the full
    * bounds of any display object, even after its scrollRect has been set.
    * @param displayObject - a display object that may have a scrollRect applied
    * @return a rectangle describing the dimensions of the unmasked content
    public function getFullBounds ( displayObject:DisplayObject ) :Rectangle
         var bounds:Rectangle, transform:Transform,
                             toGlobalMatrix:Matrix, currentMatrix:Matrix;
         transform = displayObject.transform;
         currentMatrix = transform.matrix;
         toGlobalMatrix = transform.concatenatedMatrix;
         toGlobalMatrix.invert();
         transform.matrix = toGlobalMatrix;
         bounds = transform.pixelBounds.clone();
         transform.matrix = currentMatrix;
         return bounds;
    I  just want to make a sprite that can be scrolled using the scrollRect, for  this I need to know the scrollRect.height and full height of the sprite
    The  solution I've found works, but I would like to know how to get the full  height of the sprite that has a scrollRect, using the native language  facilities.
    Is this a bug, or am I doing something wrong?

  • 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

  • How to know Number of the Row which is selected in Advanced table

    Hi All
    I have a requirement where in an advanced table, when user clicks on copy icon against a row..a new row is created with copied values of the row against which copy action is performed.My issue is: assume in table i have got 5 rows..when user clicks on copy..my copied row gets created in the end..but i want tht row to be created directly under the row against which copy action is performed.I think somehow if i am able to know the position number of the row against which copy action is performed..i should be able to achieve it...can you please help me on this.
    Thanks
    Raj

    hi raj,
    create a fire action to the copy image.
    and then copy this method in to u r AM,
    public void copy action(String s)
    PwrPosViewShipmentsVOImpl sVO = getPwrPosViewShipmentsVO();
    RowSetIterator rowsetiterator;
    OADBTransaction oadbtransaction;
         rowsetiterator = sVO.findRowSetIterator("ships");
    int i;
         int j;
    if(rowsetiterator == null)
    rowsetiterator = sVO.createRowSetIterator("ships");
    oadbtransaction = getOADBTransaction();
    rowsetiterator.reset();
    i = 0;
    if(!sVO.isPreparedForExecution())
    rowsetiterator.setRowValidation(false);
    String s1;
    PwrPosViewShipmentsVORowImpl sVORowImpl1;
    PwrPosViewShipmentsVORowImpl sVORowImpl=null;
    do
    if(!rowsetiterator.hasNext() || i >= sVO.getFetchedRowCount())
    break;
    i++;
    sVORowImpl = (PwrPosViewShipmentsVORowImpl)rowsetiterator.next();
    s1 = copyServerUtil.replaceNull(sVORowImpl.getAttribute("view attribute of the referenced column"));
    } while(!s.equals(s1));
    j = sVO.getRangeIndexOf(sVORowImpl);
    sVORowImpl1 = (PwrPosViewShipmentsVORowImpl)rowsetiterator.createRow();
    sVO.insertRowAtRangeIndex(j + 1, sVORowImpl1);
    rowsetiterator.closeRowSetIterator();
    * create a new class file under the server folder and paste the below into that. and then import that class file into u r AM. and then try to run as a whole. u will get ur required work.
         public static final String replaceNull(Object obj)
    if(obj == null || obj.equals("null"))
    return "";
    } else
    return obj.toString();
    }

  • How to know number of columns used in a cursor

    Hi,
    I am using some query in a cursor.
    I want to know the number of columns used in that query.
    Please let me how to do ?
    This is required because I want to export an oracle report into MS Excel.
    For this I need to know, upto which column I should write in excel cell.
    I am using Oracle 9i
    I hope, I am clear in my requirement.
    Regards
    Surendra

    You could use DBMS_SQL.DESCRIBE_COLUMNS :
    SQL> CREATE OR REPLACE
      2    FUNCTION column_count(
      3                          p_stmt VARCHAR2
      4                         )
      5      RETURN NUMBER
      6      IS
      7          v_cur     NUMBER;
      8          v_cnt     NUMBER;
      9          v_rec_tab DBMS_SQL.DESC_TAB;
    10      BEGIN
    11          v_cur := DBMS_SQL.OPEN_CURSOR;
    12          DBMS_SQL.PARSE(v_cur,p_stmt,DBMS_SQL.NATIVE);
    13          DBMS_SQL.DESCRIBE_COLUMNS(v_cur,v_cnt,v_rec_tab);
    14          DBMS_SQL.CLOSE_CURSOR(v_cur);
    15          RETURN v_cnt;
    16  END;
    17  /
    Function created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC DBMS_OUTPUT.PUT_LINE('column_count is ' || column_count('select * from emp'))
    column_count is 8
    PL/SQL procedure successfully completed.
    SQL> EXEC DBMS_OUTPUT.PUT_LINE('column_count is ' || column_count('select min(sal),max(sal) from emp'))
    column_count is 2
    PL/SQL procedure successfully completed.
    SQL> SY.
    Edited by: Solomon Yakobson on Sep 20, 2008 4:54 AM

  • PRINTER_FRIENDLY View and how to restrict number of rows

    Dear apex community,
    I am on the APEX 4.2 and OracleXE11g.
    I have created a page with the classic SQL report based on the table. The pagination style is "Row Ranges 1-15 16-30 (with set pagination)". Enable Partial Page Refresh: Yes.
    The table contains more than 1000 rows and the user can see on one report page only 30 and can navigate with pagination links.
    I have created for the user the PRINTER_FRIENDLY view of this page with "YES on the ninth place of the apex url. But now I have the following problem:
    - user navigates with pagination buttons and is actually on the page "31-60". The report shows him only 30 records.
    - user clicks on the link "PRINT" to call the printer friendly view of the page but the printer friendly page shows him not 30 records, but ALL (more than 1000) rows from the table.
    Is there any way to show on the printer friendly page only the records from the report?
    Best regards.

    S-Max wrote:
    @fac586,
    "+CSS print media style sheet on the standard page+". What is it???A print media style sheet is used to suppress unwanted page elements (tabs etc) from the printed output and optimize the formatting for print (e.g. smaller font sizes, including full URLs instead of links, page breaks etc).
    Simple example of suppressing unwanted APEX page elements using media style sheet: +{message:id=2475831}+

  • What is SVN and how to know the details of SVN

    Hi Experts
    I want to know the complete details of SVN. please provide me the links to learn about this.
    Thanks in advance
    Prasannakumar

    Apache Subversion

  • What type of encryption is firefox using for password protection and how trustworthy is it

    I would like to know what kind of encryption FF uses and how I know I can trust it? This is not a bone of contention with FF, I love the product, rather it is just a concern I have that will convince me to let FF manage my financial passwords. Thanks for any assistance with understanding this issue more completely.

    The degree of protection very much depends on how strong your master password is.
    When using a master password, the data is encrypted using [http://www.tropsoft.com/strongenc/des3.html Triple DES Encryption in CBC mode]. This level of encryption is good for general purpose use. The weak point it the master password, if you have a weak master password there are programs available that will be able to crack the master password, they often do this by using a brute force method. If you use a strong master password, the brute force method will need a very long time to crack passwords. For details on password strength and creating strong passwords see http://en.wikipedia.org/wiki/Password_strength and http://luxsci.com/blog/security-simplified-the-basesuffix-method-for-memorable-strong-passwords.html

  • How to know if I need DVD-R or DVD+R? What's the difference?

    Attempting to put photos and videos onto DVD's to play on TV and when I was at the store to buy the DVD's I was confronted with whether I need - or + ? I can't find anyone who knows what the difference? Not even the person at the store where I was trying to buy them could tell me? I'm assuming if I purchase the wrong ones, I will probably have some difficulty.
    Can anyone fill me in on what the plus and minus mean and how to know which ones I need for my system?
    Thanks a bunch!
    Donna

    DD, welcome to the forum.
    Here is a guide that will help you understand the differences in DVD -R & +R.  The standard wisdom is that the +R discs are more compatible with all DVD players.  The author of the guide goes into good detail about the differences.  I personally buy +R whenever possible.  This means if they are cheaper or the same price as - (dash) R.
    Please let us know if this solves your problem or not.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • 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

  • How to know which process is consuming high percentage of cpu?

    Hi,
    How to check which process is consuming high percentage of cpu ?
    how to know the cpu time is atleast 80% of the elapsed time and how to know which code the process is running?
    I know we can check high performance cpu can be find by TOP command
    but i dont know on solaris?
    please help me on this?

    One way is to use my Snapper script for getting the breakdown ( see http://blog.tanelpoder.com/2007/12/06/oracle-session-snapper-v106-released/ for more info ).
    An example snapshot (taken over 60 second period) is below:
    SQL> @snapper out,gather=tw 60 1 "select sid from v$session where type = 'USER'"
    -- Session Snapper v1.07 by Tanel Poder ( http://www.tanelpoder.com )
    HEAD, SID, SNAPSHOT START , SECONDS, TYPE, STATISTIC , DELTA, DELTA/SEC, HDELTA, HDELTA/SEC
    DATA, 2, 20080710 11:39:18, 61, TIME, repeated bind elapsed time , 1314, 22, 1.31ms, 21.54us
    DATA, 2, 20080710 11:39:18, 61, TIME, parse time elapsed , 21518, 353, 21.52ms, 352.75us
    DATA, 2, 20080710 11:39:18, 61, TIME, PL/SQL execution elapsed time , 809888, 13277, 809.89ms, 13.28ms
    DATA, 2, 20080710 11:39:18, 61, TIME, DB CPU , 11204956, 183688, 11.2s, 183.69ms
    DATA, 2, 20080710 11:39:18, 61, TIME, sql execute elapsed time , 12441308, 203956, 12.44s, 203.96ms
    DATA, 2, 20080710 11:39:18, 61, TIME, DB time , 13825800, 226652, 13.83s, 226.65ms
    DATA, 2, 20080710 11:39:18, 61, WAIT, read by other session , 4432, 73, 4.43ms, 72.66us
    DATA, 2, 20080710 11:39:18, 61, WAIT, log file sync , 1215135, 19920, 1.22s, 19.92ms
    DATA, 2, 20080710 11:39:18, 61, WAIT, db file sequential read , 1458168, 23904, 1.46s, 23.9ms
    DATA, 2, 20080710 11:39:18, 61, WAIT, enq: TX - row lock contention , 11600, 190, 11.6ms, 190.16us
    DATA, 2, 20080710 11:39:18, 61, WAIT, row cache lock , 420, 7, 420us, 6.89us
    DATA, 2, 20080710 11:39:18, 61, WAIT, SQL*Net message to client , 1842, 30, 1.84ms, 30.2us
    DATA, 2, 20080710 11:39:18, 61, WAIT, SQL*Net message from client , 9490531, 155582, 9.49s, 155.58ms
    DATA, 2, 20080710 11:39:18, 61, WAIT, PL/SQL lock timer , 35759582, 586223, 35.76s, 586.22ms
    DATA, 2, 20080710 11:39:18, 61, WAIT, events in waitclass Other , 302, 5, 302us, 4.95us
    DATA, 20, 20080710 11:39:18, 61, TIME, repeated bind elapsed time , 1332, 22, 1.33ms, 21.84us
    DATA, 20, 20080710 11:39:18, 61, TIME, parse time elapsed , 21439, 351, 21.44ms, 351.46us
    DATA, 20, 20080710 11:39:18, 61, TIME, PL/SQL execution elapsed time , 799773, 13111, 799.77ms, 13.11ms
    DATA, 20, 20080710 11:39:18, 61, TIME, DB CPU , 11303744, 185307, 11.3s, 185.31ms
    DATA, 20, 20080710 11:39:18, 61, TIME, sql execute elapsed time , 12404247, 203348, 12.4s, 203.35ms
    DATA, 20, 20080710 11:39:18, 61, TIME, DB time , 13792389, 226105, 13.79s, 226.1ms
    DATA, 20, 20080710 11:39:18, 61, TIME, sequence load elapsed time , 752, 12, 752us, 12.33us
    DATA, 20, 20080710 11:39:18, 61, WAIT, log file sync , 1228759, 20144, 1.23s, 20.14ms
    DATA, 20, 20080710 11:39:18, 61, WAIT, db file sequential read , 1339772, 21963, 1.34s, 21.96ms
    DATA, 20, 20080710 11:39:18, 61, WAIT, row cache lock , 395, 6, 395us, 6.48us
    DATA, 20, 20080710 11:39:18, 61, WAIT, SQL*Net message to client , 1901, 31, 1.9ms, 31.16us
    DATA, 20, 20080710 11:39:18, 61, WAIT, SQL*Net message from client , 9496607, 155682, 9.5s, 155.68ms
    DATA, 20, 20080710 11:39:18, 61, WAIT, PL/SQL lock timer , 35786481, 586664, 35.79s, 586.66ms
    DATA, 20, 20080710 11:39:18, 61, WAIT, events in waitclass Other , 96, 2, 96us, 1.57us
    Tanel Poder
    http://blog.tanelpoder.com

Maybe you are looking for

  • Startup gets 'Network cable unplugged' on mini-PCI wireless card

    I recently installed a Netgear DG834GT wireless router and now have an intermittent problem connecting my Tecra 9100 to it. If the 9100 has been shutdown for a while (like overnight), when I restart I always get 'Network cable unplugged' for the wire

  • How to switch from a program to another one

    Hi all, I would like to run a robotic system in autonomous mode. To achieve this, i have two programs. The firts one is to drive the robot autonomously. The second one is to do another function, which doesn't have nothing to do with the first one. My

  • Setting date parameters with yesterdays date

    Hi everyone. I have a very basic report where I have two date fields as parameters, 'From Date' and 'To Date'. I want the From date to default to yesterday, and the To date to default to today. I can set todays date simply by adding DEFAULT sy-datum

  • How to access entities from badi using CL_CRM_BOL_CORE

    Hi experts I'm implementing a  badi which will get called from sapgui and web ui  where I have to use the infromation from web ui . From badi we can use cl_crm_bol_core to access message container but in the same way how can I use get related entitie

  • Nokia Lumia 900 Camera White Balance "Fix"

    I'm not sure if other people have posted about this but I figured out a pain in the @$$ way of coping with the atrocious white balance on the Nokia Lumia 900.  I found that each time you change the white balance setting it will take the first picture