WTK Memory Monitor, "Objects" view - how to interpret percentages?

In the WTK Memory Monitor "Objects" view, a table of objects and memory sizes is shown. When clicking on an entry, a tree view is shown on the right hand side. Each item in the tree view has a percentage number next to it - how do I interpret this? Is it relative to the "Live", "Total" or "Total size" value of the corresponding object? More specifically, is it a count or size percentage?

In the WTK Memory Monitor "Objects" view, a table of objects and memory sizes is shown. When clicking on an entry, a tree view is shown on the right hand side. Each item in the tree view has a percentage number next to it - how do I interpret this? Is it relative to the "Live", "Total" or "Total size" value of the corresponding object? More specifically, is it a count or size percentage?

Similar Messages

  • How much memory an object consumed?

    Via making an internet lookup and writing some code, i made an implementation of
    how to calculate how much memory an object consumes. This is a tricky way.
    However, how can i achieve a better and direct way? Is there a tool for attaching
    to JVM and viewing the memory locations and contents of objects in memory?
    I wrote the tricky way to Javalobby and pasting the same explanation to here too.
    I must say that this tricky way does not belong to me, and i noted where i took
    the main inspiration etc. at the end.
    Because of the underlying structure Java does not let
    users to access and directly change the content of
    instances in memory. Users could not know how
    much memory is used for an object, like in C.
    However this tricky method lets them to know in an
    indirect way.
    To achieve how much memory is used for an object we must
    calculate the used memory before and after the object is
    created.
    MemoryUsage.java
    * User: Pinkman - Fuat Geleri
    * Date: Mar 20, 2005
    * Time: 11:13:50 AM
    * The class which makes the calculation job.
    * Calculating the difference of used memory
    * between calls
    * "start()", and "end()".
    * So if you initiate an object between those
    * calls you can get how much memory the object
    * consumed.
    * Initial inspration from
    * http://javaspecialists.co.za/archive/Issue029.html
    public class MemoryUsage {
         long usage;
         public void start(){
              garbageCollect();
              Runtime r=Runtime.getRuntime();
              usage=r.totalMemory()-r.freeMemory();
         public long end(){
              garbageCollect();
              Runtime r=Runtime.getRuntime();
              return (r.totalMemory()-r.freeMemory())-usage;
         public String memorySizeToString(long l){
              int MB=(int) (l/1048576);
              l=l-1048576*MB;
              int KB=(int) (l/1024);
              l=l-1024*KB;
              return new String(MB+"MB "+KB+"KB "+l+"BYTES");
         private void garbageCollect() {
              Runtime r=Runtime.getRuntime();
              r.gc();r.gc();r.gc();r.gc();r.gc();
              r.gc();r.gc();r.gc();r.gc();r.gc();
              r.gc();r.gc();r.gc();r.gc();r.gc();
    Therefore the first file MemoryUsage.java is coded.
    It simply calculates and stores the used memory when
    start() method is called. After generating some objects,
    the end() method is called to get the
    difference between memory usages, between the start()
    and end() method calls.
    SizeOf.java
    import javax.swing.tree.DefaultMutableTreeNode;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Random;
    * User: Pinkman - Fuat Geleri
    * Date: Mar 20, 2005
    * Time: 6:02:54 PM
    * Arbitrarily size of objects in JAVA..
    * An example of getting how much an
    * object consumed in memory.
    * Like
    *  primitives -> does not consume any
    *  arrays  -> consumes 16 bytes when empty
    *   ex: byte []a=new byte[0];
    *  list    -> consumes 80 byte when empty..
    *  references -> when did not initiated does
    * not consume any memory!.
    * Initial inspration from
    * http://javaspecialists.co.za/archive/Issue029.html
    public class SizeOf {
         MemoryUsage mu=new MemoryUsage();
         public static void main(String []args){
            SizeOf s=new SizeOf();
              s.sizeOfExample();
         //remove the comments in order to make the same checking by yourself..
         private void sizeOfExample() {
              mu.start();
              //byte []b=new byte[0];//<-byte array 16byte,each byte addition equals 1 byte!!
              //String s="How much memory is used?";//string consumes no byte!!
              //byte c=20; //<-consumes no memory!!
                    //Object o=new Object();//object consumes 8 bytes..
              //Object []oa=new Object[100];//<-object array consumes 16 byte! and each addition object 4 bytes!
                    //List list;//non initialized object consumes no memory!!..
              //Integer i=new Integer(1);//an integer object consumes 16 bytes!
              //List list=new ArrayList();//An array list consumes 80 bytes!.
              /*for(int i=0;i<10;i++){ //An array list + 10 integer consumes 240 bytes  :)
                   list.add(new Integer(i));
              Random r=new Random();
              byte []rand=new byte[1];
              int count=100000;
              List list=new ArrayList(count);
              for(int i=0;i<count;i++){
                   r.nextBytes(rand);
                   list.add(new String(rand));//empty string occupies no memory??
              DefaultMutableTreeNode root=new DefaultMutableTreeNode();//8 byte when single!.
              Random r=new Random();
              byte []rand=new byte[10];//when this is one and count is 1 million memory gets overfilled!..
              int count=500000;
              for(int i=0;i<count;i++){
                   r.nextBytes(rand);
                   root.add(new DefaultMutableTreeNode(new String(rand)));
              long l=mu.end();
              System.out.println(""+mu.memorySizeToString(l));
    An example usage can be found in the second file
    SizeOf.java. Simply remove the comments,"//", and execute
    to see how much memory used.
    For example:
    % Primitives does not consume any memory.
    % Non-initialized object references does not consume
    any memory.
    % Empty string and most of the small strings does not consume any memory.
    % Empty byte[] consumes 16 bytes.
    % Empty ArrayList consume 80 bytes.
    % An Integer object consumes 16 bytes.
    % Empty DefaultMutableTreeNode consumes 8 bytes..
    and so on.
    You can find the mentioned files in the attachments.
    I heard the idea of -how much memory is used- from
    Prof. Akif Eyler, and i got the main inspration from
    the site http://javaspecialists.co.za/archive/Issue029.html
    //sorry about my mistakes, and everything :)
    Thanks for your answers beforehand.

    Any good profiler will tell you.
    You can also code your own using jvmpi or jvmti.
    Also note that calling System.gc is a hint to the jvm it may or may not respect your wish.
    Test it with a few different gc algorithms and see what happens.
    /robo

  • WTK�s memory monitor is very slow

    Hello people! I was using the WTK�s(2.2) memory monitor and it�s woking well. But now, the momory monitor is too slow. Almost stopping the application (a simple game). I don�t understand, the system is the same! The code is the same! The computer is the same! Somebody can help me? Thanks!

    Run Etrecheck and post the results
    You backed up first and made a clone of your system?
    You used Recovery Mode and Disk Utility to repair the drive.
    Use to be we HAD TO clear system cache and extension caches before doing any type of install or upgrade.
    Maybe the report will show some possible explanation, incl. if the directory is healthy.

  • RZ20: how to create status attribute for monitoring object ?

    Hello,
    I am brand new into RZ20 maintenance and my question may be silly.
    Anyway, SAP supplies monitoring objects customized with performance attribute (such as MTE class SAPconnect Error). Instead of having such performance attribute, I would prefer to have a MTE class with status attribute in order to trigger an alert each time a there is a SAPconnect message with error.
    Is it possible to define such status attribute ? If so, how could it be achieved ?
    Thank you for your help.
    Regards,
    Fabrice

    Hello Fabrice,
    the monitoring object and its attributes are defined by the data collector. This means the attributes are hard coded (in the function module or report in case of data collection method (a passive data collector) of directly in the kernel (an active data collector).
    And as long as the data collector is delivered by SAP, changing the coding is not a good idea
    So only way would be to create your own monitoring objects using your own data collector. A documentation how to do this is available in the Service MarketPlace: "<a href="http://service.sap.com/~sapidb/011000358700001752571999E/SUPPLIER_46A_EN_Neu.pdf">How to Write a Data Supplier for the Alert Monitor</a>".
    Regards, Michael

  • I hit the wrong monitor refresh rate and now lost monitor picture.  How can I get back to the right refresh rate with no pic to view?

    I hit the wrong monitor refresh rate and now lost monitor picture.  How can I get back to the right refresh rate with no pic to view?

    Try this:
    Mac OS X 10.6 Help: If you changed your display’s resolution and now it doesn’t display a picture

  • How to call Apps Module Custom Method from Entity Object / View Object ?

    Hi All,
    I create a custom method in AppsModuleImpl.java. How can I call that custom method from a setter method on Entity Object / View Object ?
    (I have tried to use Configuration.createRootApplicationModule(amDef,config); but it is not the correct way, is it? )
    Below is my code :
    The setter on MyEntityImpl.java :
    public void setKodeprd(String value) {
    setAttributeInternal(KODEPRD, value);
    if (getProduct() != null) {
    // CALL the getSalesPrice custom method from here, HOW ??
    The Application Module custom method :
    public Number getSalesPrice(String priceCode, String kodePrd) {
    Number price = new Number(0);
    String [] theKey = {priceCode, kodePrd};
    Key priceKey = new Key(theKey) ;
    ViewObject SalesPrice = getSalespricedView1();
    Row[] salesPriceRow = SalesPrice.findByKey(priceKey, 1);
    price = ((SalespricedViewRowImpl)salesPriceRow[0]).getPrice();
    SalesPrice.remove();
    return price;
    Thank you for your help,
    xtanto

    inside the EntityObjectImpl :
    YourAppModuleImpl am = (YourAppModuleImpl)getDBTransaction().getRootApplicationModule().findApplicationModule("YourAppModuleorServiceName");

  • How to use Memory Monitor on Sun ONE Studio 4 ??

    Hello,
    I am creating a midlet using the Nokia 7210 emulator. When trying to load a Canvas, an "Unable to run application" alert appears and the midlet quits.
    Presuming this is due to a memory problem, I've inserted a System.gc() call before I create the new canvas, but the midlet still exits.
    So to help me get to the bottom of it, I thought I had best try s1s4's Memory Monitor utlity - but I can't get it to work. I have ticked the 'Enable Memory Monitor' box on the Monitor tab of Preferences for the Installed Emulator (J2ME Wireless Toolkit 1.0.4_01), but nothing happens after the midlet runs and quits.
    Does anyone have any suggestions?
    Many thanks in advance,
    James

    I don't know. I've never tried.
    Look at the manual (7210midpSimGuide.pdf in the docs directory). Maybe there is something in there. In the command line options there are a bunch of tracing options that you can specify, like tracing allocations, garbage collections, stackmaps, etc.
    shmoove

  • Unified Job Monitoring: How to delete a Monitored Object ?

    Hello,
    in unified Job Monitoring I face the Problem, that I deleted a Monitoring Scenario without deleting the included Monitored objects.
    I set up another Scenario and would like to reuse the Monitord object names - which is not possible, because the System informs me, that they already exist. Also, in the Monitoring UI These Monitored objects still Show up and there's no way to get rid of them.
    Thanks for your Support !
    Best Regards,
    Thorsten

    Do you mean bc4j.xcfg file? It will be under your app. module ./common sub-directory.

  • Memory Monitor : Excessive GC

    Hey Folks,
    I was reading through the WTK docs on using the memory monitor, and it
    mentioned something about turning on excessive garbage collection, which causes
    GC to occur every time an Object is allocated. I can't figure out how to enable
    this functionality.
    Any thoughts?

    I have looked at "edit->preferences->select Monitor Tab" in WTK 2.1 and 2.2.
    I see "Enable Memory Monitor" check box but not "Excessive GC".
    Then, I added "kvem.excessivegc: true" to emulator.properties in /wtklib.
    It doesn't work.
    Any suggestion?

  • WTK Memory profiler crashes

    Hi,
    I am trying to profile my application using the wtk's memory profiler. The apllication that iam trying to load is pretty huge. When i try to do this, the memory profiler (zayit.exe) crashes.
    The stack trace is as follows
    java.lang.IndexOutOfBoundsException
         at java.io.BufferedInputStream.read(BufferedInputStream.java:272)
         at java.io.DataInputStream.read(DataInputStream.java:224)
         at com.sun.kvem.memorymon.MemoryListener.run(Unknown Source)
    Any help would be of great use.
    Thanks,
    Suresh

    ----------------From Flex Builder
    Help---------------------------------------------------
    One approach to identifying a memory leak is to first find a
    discrete set of steps that you can do over and over again with your
    application, where memory usage continues to grow. It is important
    to do that set of steps at least once in your application before
    taking the initial memory snapshot so that any cached objects or
    other instances are included in that snapshot.
    Then you perform that set of steps in your application a
    particular number of times -- 3, 7, or some other prime number --
    and take the second memory snapshot to compare with the initial
    snapshot. In the Find Loitering Objects view, you might find
    loitering objects that have a multiple of 3 or 7 instances. Those
    objects are probably leaked objects. You double-click the classes
    to see the stack traces for each of the instances.
    Another approach is to repeat the sequence of steps over a
    long period of time and wait until the memory usage reaches a
    maximum. If it does not increase after that, there is no memory
    leak for that set of steps.
    check your app following these instructions above.

  • WTK memory problem !

    I started to use Memory Monitor from WTK and i set the Heap to 1000Kb.
    when the app is started it uses top most 700Kb.
    then while i used it it reach a maximum of 650 Kb.
    My question is why i get Out of memory exception since the monitor
    show that i was not even close to 1000 Kb ?
    thx a lot for any help !!!
    BTW when emulator is started with memeory monitor firs load around of 400Kb of system classes ....is this how it should be ?
    Thx again !

    If you installed your Mac OS X 10.7.1 on the minimum requirements of 2 GB memory, then you have just enough memory to run the operating system and not much more.  Most on here recommend at least 4 GB memory for Lion to operate efficiently.
    Click the apple in the left corner of the menu bar, About This Mac and what does it say about the amount of memory installed?
    Also, what model iMac do you have?  You can see the maximum memory it will accept by going to http://www.everymac.com and click on iMac and then find your model.

  • WTK Memory capacity

    What is the current memory capacity if wtk 2.2?? How can we handle out of memory error??

    I dont remeber the exact value , but you can change the ammount of memory for the emulator from the WTK-> prefrences -> storage-> heap size
    this will emulate a device with the ammount of memory you just specified.
    how to handel out of memory1- the keyword"new" is not that simple to use( kep that in mind)
    2- srround the most suspected memory consumer code with try and catch , to catch OutOfMemoryError. ( please note this is not Exception , this is error)
    3- after catching the erroe run gc(), to clean up some resource.
    4- gc() is not that cheap to call , so call it when u just released a heavy ass object and u about to create new heavier ass one.
    finally
    good code will be out of memory safe. ,btu bad code not only OutOfMemoryError generator , but also a main cause of the phone restart issue
    amr

  • The pool managing the instance is not available or the location monitoring object cannot be found - discovery progress

    Hi,
    I have installed scom 2012 with integrated SP1 on windows server 2008 R2 with integrated SP1 and SQL 2008 R2 SP2.
    The Problem I have is when trying to discovery I´m getting this error:
    The pool managing the instance is not available or the location monitoring object cannot be found
    Date: 05.03.2013 14:44:22
    Application: Operations Manager
    Application Version: 7.0.9538.0
    Severity: Error
    Message:
    Microsoft.EnterpriseManagement.Common.LocationObjectNotFoundException: The pool managing the instance is not available or the location monitoring object cannot be found.
       at Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleFault(String methodName, Message message)
       at Microsoft.EnterpriseManagement.Common.Internal.AdministrationServiceProxy.LaunchDiscovery(Guid batchId, IList`1 jobDefinitions)
       at Microsoft.EnterpriseManagement.Administration.ManagementServer.BeginExecuteWindowsDiscovery(IList`1 discoveryConfigurations, AsyncCallback callback, Object state)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Administration.DiscoveryProgress.<>c__DisplayClass7.<SubmitTask>b__3(Object , ConsoleJobEventArgs )
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
    How can I solve this? Thank you.
    gruss Daniel Ovadia MBSS - Microsoft Dynamics CRM MCNPS

    See the article I wrote/posted here about monitoring Domain Controllers: http://adinermie.wordpress.com/2014/02/26/scom-agent-grayed-out-when-trying-to-monitor-domain-controllers/. 
    And to add an account to Local Administrators role on a Domain Controller, follow this:
    Open a command promt using the "Run as administrator" function and then run the following command.
    net localgroup Administrators /add {domain}\{user}

  • Storing XML using XSU, object VIEW and INSTEAD OF trigger

    Here is the point:
    I've got 2 tables which are linked:
    CREATE TABLE dept (
    deptno NUMBER PRIMARY KEY,
    deptname VARCHAR2(20)
    CREATE TABLE emp (
    empno NUMBER PRIMARY KEY,
    empname VARCHAR2(20),
    deptno NUMBER REFERENCES dept(deptno)
    I've got the following message, which I want to insert in the tables using XSU (I already have a PL/SQL stored procedure which work perfectly for insertion into 1 table, using DBMS_XMLSave.insertXML or xmlgen.insertXML):
    <DEPT>
    <DEPTNO>10</DEPTNO>
    <DEPTNAME>IT</DEPTNAME>
    <EMP>
         <EMPNO>1</EMPNO>
         <EMPNAME>John</EMPNAME>
    </EMP>
    <EMP>
         <EMPNO>1</EMPNO>
         <EMPNAME>Phil</EMPNAME>
    </EMP>
    </DEPT>
    So I've created the following object:
    CREATE TYPE emp_t AS OBJECT
    empno NUMBER,
    empname VARCHAR2(20)
    CREATE TYPE emplist_t AS TABLE OF emp_t;
    CREATE TYPE dept_t AS OBJECT
    deptno NUMBER,
    deptname VARCHAR2(20),
    emplist emplist_t
    Now I understand that I should create an object VIEW and an INSTEAD OF trigger (That's what I read many times),
    but I don't know how to structure the view and the trigger.
    Could you help? (Example of a similar context, piece of code)
    Thanks a lot
    Marion

    Hi John,
    I have exactly the same issue as you experienced back in January. I have a complex data modelling requirement which requires the need to pivot rows into columns using ROW_NUMBER() and PARTITION clauses. To hide the complexity from the middle tier, I have created a database view and appropriate INSTEAD OF triggers and mapped my EO to the view. I have overriden the lock() method on the EO implementation class (to avoid ORA-02014) and would like to try the same solution you used with the pl/sql call to lock the record.
    My question is, how did you manage the release of the lock if the transaction was not rolled back or committed by your application i.e. if the user closed the browser for instance.
    In my naivity, I would like to think that the BC4J framework would release any locks for the database session when it found the servlet session to be terminated however my concern is that the lock would persist and cause complications.
    Any assistance greatly appreciated (if you would be willing to supply your lock() method and pl/sql procedure logic I would be even more grateful!).
    Many thanks,
    Dave
    London

  • ST05 LOBSTA what is this and how to interpret it.

    Hi all,
    there is an object LOBSTA in sql trace called LOBSTA, which has quite big execution time and points to some Classes.  Have you any idea how to interpret this object and what to do to improve execution times on it.

    For example:
    12:03:05.098    1.056    CL_GUI_TEXTEDIT===============CP    REPOTEXT    LOBSTA    234    0    0    0    R/3    OCILobRead2(BLOB locator=076015B8, bufln=65536, piece=FIRST_PIECE) -> amt = ?
    19:57:56.246    975    CL_GUI_TEXTEDIT===============CP    REPOTEXT    LOBSTA    237    0    0    0    R/3    OCILobRead2(BLOB locator=077915B8, bufln=65536, piece=FIRST_PIECE) -> amt = ?
    12:03:04.119    965    CL_GUI_TEXTEDIT===============CP    REPOTEXT    LOBSTA    234    0    0    0    R/3    OCILobRead2(BLOB locator=076015B8, bufln=65536, piece=FIRST_PIECE) -> amt = ?
    19:58:56.366    862    CL_GUI_TEXTEDIT===============CP    REPOTEXT    LOBSTA    237    0    0    0    R/3    OCILobRead2(BLOB locator=077915B8, bufln=65536, piece=FIRST_PIECE) -> amt = ?

Maybe you are looking for

  • Call a shell script from a OWB Mapping or Process Flow

    Hi, is it possible to call a shell script from a owb mapping or Process Flow and how can i do this? Greetings

  • Video Monitoring System - Linksys by Cisco

    Hey all.  I have Video monitoring software, with 7 WVC2300 cameras.  I can access each individual camera over the web, no problem.  I can RDP to the server running the software no problem (a little choppy).  My question is.  Can you connect directly

  • Installation of SSRS 2014 freeze

    Hi, im having a issue trying to install SSRS 2014 on my Windows 2012 Standard Server. I was having trouble trying to install SQL 2014 Standard (downloaded from my partner account), and was failing. So i started it again, installed core features, plus

  • WAP2000 PoE/VLANs loosing Config

    Hello everybody, i have 4 WAP2000 configured with VLAN (sure one for management) connected to an linksys srw244g4p poe switch. I can configure the APs and even with the VLAN Setup they are working fine. I can access them connected to an trunk port an

  • Importing SCA Via CMS

    Hi, Quick question regarding importing SCA's into a runtime enviornment via CMS. Lets assume that ACTIVITY-A was checked in, activited, deployed into development, QA, assebled and now waiting for import into production. Before i import ACTIVITY-A int