Average Size of an object stored in the cache

Hi,
I am trying to query coherence and get the data in to my client. I am using Jconsole to monitor coherence. Is there a way I can find the average size of the object stored in the cache in bytes, so that I can determine how many bytes are sent over the network from coherence back to my client?
-Regards,
Mayuresh

If you are using binary unit calculator, you can get object size information from MBean.
You should check cache MBean on back tier. "Size" attribute is number of entries in this instance of backing map and "Units" attribute would be size in bytes (but only if binary unit calculator is configured).
Alternatively, if you interested in traffic, you could check extend proxy service MBean in "ConnectionManager" group. It has "TotalBytesSent" and "TotalBytesReceived" attributes.

Similar Messages

  • Where the policy object stored in the LDAP

    Hi
    Do anyone knows where do SAM saves the policy objects in the LDAP?
    thanks

    Hi Vinay,
    The attachments are stored in the task container.
    In Broader View :
    Attachment objects are stored in SAP memory using Object Keys .
    There are tables Like SOFM which store these Ids.
    Regards,
    Geet

  • Determine the Size of an Object in ObjectInputStream

    Hi all,
    I have a quick question. I have a class that is being written over a socket using ObjectOutputStream and ObjectInputStream. I want to be able to set the buffer size of the socket to fit only ONE object. Can anybody tell me how to determine the size of that object?
    (Note, the object has a Properties object within it, but for the time being, it can be assumed that properties object will always be the same.)
    - Adam

    Having written it to the outputStream, thought, can
    the size be determined somehow by the inputStream?No, it can't
    This is related to my previous question (on Pushlets
    and Thread Priorities). I didn't read that one.
    I believe that it's possible
    that multiple threads are trying to write to the
    socket at the same time, and I cannot synchorize the
    input stream to get a lock on it. Do you mean the outputstream? Why can't you synchronize the method that writes to the outputstream?
    I thought this
    might be causing the data to not be sent over the
    socket until all the threads have finished. That doesn't sound correct. But you could call the flush method when an object is written.
    I
    figured if I reduced the size of the socket buffer,
    it would only accept a single object, eliminating
    this problem?I don't think so.
    /Kaj

  • Using objects stored in OAER (image) ni SMARTFORM

    Has anybody done anything in SMARTFORM where the object stored in the OAER (image) is directly accessed in SMARTFORM without uploading it to SAP via SE78?
    Thank you very much.

    Yes we can do that. In the window create a Graphics.
    In the General attributes tab of that Graphics window
    give
    Name   = YPHONE      (The name which is there in OAER)
    Object = GRAPHICS   
    ID     = BMAP       
    Check the radio Black and white or Color Bitmap.
    Give resolution = 600 or depending on the size.
    Regards,
    Prakash.

  • Does coherence cache the value from the cache?

    Hi, I have the question about if the coherence caches the value from the cache? I believe it does from my test, just want to get the confirmation.
    I like to use an example to describe my question. For example:
    If (key1, value1) are in the cache1, (value1 is an object),
    for the first time, if cache1.get(key1), coherence will deserialize value1 and return. But if in the same JVM, when cache1.get(key1) is invoked again, coherence will return value1, which I believe is cached by coherence in the current JVM, and return; instead of deserializing and return it. Is that right?
    I am asking this question because I found a problem in our project when use coherence. As the above example, if I use value1 = cache1.get(key1), and in our project, value1 object has a set method to change one of its internal attributes, and this method was indeed invoked after value1 get from cache1. Then in another class, value2 = cache1.get(key1) is called again, and I found out that value2's attribute will have the modified value, even cache1.put(key1, value1) is never invoked in the first place.
    Of course, this kind of behavior matches the java.util.Map. But coherence cache is a cluster/distributed environment. In the above example, if on another data node, value3 = cache1.get(key1) will get the original attribute value in value3, since the deserialize object will always get the original value, unless the new value is put in explicitly by cache1.put(key1, value1).
    In this case, should cache1.get(key1) always return a clone object make more sense?
    Thanks

    You observation is correct. More specifically for cache topologies which include an in-process cache Coherence may return the same object reference for repeated get requests on the same key. I say "may" because for any variety of reasons we may also have to retrieve a fresh copy from a remote cache server. When possible we will return existing objects for performance reasons avoiding costly things like network hops, and de-serialization. Any modifications made to an object returned from the cache will not be made automatically available to other cluster members. Additionally if these modifications are made concurrently with another thread performing a cache.put() on the same value could result in a corrupt cached value if your serialization methods are not thread-safe. Best practice dictates that unless you are sure that you are using a cache topology which does not include an in-process cache that you treat the values returned from the cache as immutable, and instead deep clone() it before making any modifications.
    The distributed-scheme and remote-scheme are the only types of caches which do not include in-process caching, and thus always return "mutation safe" values. The most common in-process cache topology is near-scheme, but others include replicated-scheme, optimistic-scheme, local-scheme, and the programatically created ContinuousQueryCache.
    thanks,
    mark

  • Sholdnt the cache be cleared before an OutOfMemory exceptio

    Hi,
    We are running WLS 6.1 SP2. Our application does make use of entity beans (BMP).
    We have once, and only once, experienced an out of memory situation that we find
    a bit hard to explain.
    When running one of our batch-jobs we received an OutOfMemory exception, the thing
    that we find strange is that WL at the time of the OOM-exception held EBJ in its
    cache (indicated in the console by “Cached Beans Current Count” an “Beans In Use
    Count”).
    According to the documentation (http://e-docs.bea.com/wls/docs60/ejb/EJB_environment.html)
    WLS should remove EJBs from its cache when running low on memory. As I understand
    the WLS hasn’t done this in this particular case. Any comments?
    Perhaps I am misunderstanding the meaning of the values in the console?
    * Does “Beans In Use Count” mean that the application holds live references to
    that number of objects? Or does “Beans In Use Count” include objects that are
    unreferenced?
    * At the time of the out of memory we had EJB’s that has an “Idle Beans Count”
    of 1000 and a “Beans In Use Count” also of 1000. Does this mean that there are
    1000 objects living in the cache, all of them idle (does idle imply unreferenced?).
    If they are idle and the server is low om mem, shouldn’t those EJBs be removed
    (or passivated)?
    TIA
    Jan Sundin

    As a quick test for cookie or cache problems you can try to switch Private Browsing mode on to see if that allows to log in.
    You can either use Tools > Start Private Browsing or set a check mark in:
    * Tools > Options > Privacy: [ ] "Automatically start Firefox in a private browsing session"
    To see all the History and Cookie settings, select: Tools > Options > Privacy > History: Firefox will: "Use custom settings for history"<br />
    Do not forget to exit Private Browsing mode after you have finished the login test.

  • Want to know the size of Session Object

    Hi,
    There are around 100 objects stored in my application session.i want to know the size of Session object.
    For this i perform the following code:
    Enumeration enu=request.getSession().getAttributeNames();
    int i=0;
                   Object obj=null;
                   while(enu.hasMoreElements())
    String obj_name=(String)enu.nextElement();
                        long MemoryBefore=Runtime.getRuntime().freeMemory();
                        obj=new Object();
                        obj=(request.getSession().getAttribute(obj_name));
                        long MemoryAfter=Runtime.getRuntime().freeMemory();
                        obj.getClass().getName();
                        obj=null;
         System.out.prinltn(Session Attr Variable ::: "+obj_name +" and Size :"+(MemoryAfter-MemoryBefore));
                             i++;
    But each time i get size 0

    Anurag_Tripathi wrote:
    Hi,
    There are around 100 objects stored in my application session.i want to know the size of Session object.
    For this i perform the following code:First, that code makes no sense. Second, I highly recommend using a [Java profiler|http://www.google.com/search?q=java+profiler] to measure your application's performance. It will be much easier than trying to cobble together code to do this on your own.
    ~

  • I need to add the values stored in the session object into the html textbox

    Dear Sir,
    i have been trying to create an edit employee details page
    What i have done till now is as follow:
    1. Got employee id from HTML page.
    2. Compared it with the id stored in the database.
    3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.
    4. Dispatched the session values to another servlet EditEmpDetails2.java
    what i need to do now
    5. Now i need to set the session values in the text field of the html form
    6. I also need to be able to edit those vales and store the edited values in the database.
    Please help me as i have tried doing it for 1 week without any clues
    i have tried to create a html page which is something like this:
    <html>
    <head>
    <title>Edit Employee Details Page</title>
    <body BGCOLOR="red" text="black">
    <h1 ><font color="black">Edit Employee Details Page</font></h1>
    <form action = "EditEmpDetails" method="Get">
    <table width="50% align="center"
    <tr><td>Employee ID: </td>
    <td><INPUT TYPE="TEXT" name="employeeid"<br></td></tr>
    <tr><td><center><input type="submit" value="submit"></center></td></tr>
    <tr><td><center><input type="reset" value="reset" ></center></td></tr>
    </table>
    </form>
    </body>
    </html>
    design of my servlet EditEmpDetails.java
    public void EditEmpDetails1 extends HttpServlet
    public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException
    PrintWriter out = response.getWriter();
    response.setContentType("text/html");
    HttpSession session = request.getSession();
    String employeeid;
    String X = request.getParameter("employeeid");
    System.out.println("Employee iD:" + X);
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:murphy");
    String query = "Select * from users where employeeid=?";
    PreparedStatement stat = con.prepareStatement(query);
    System.out.println(stat);
    stat.setString(1,X);
    ResultSet rs = stat.executeQuery();
    while(rs.next())
    String Z = rs.getString(password);
    if(Z.equals(X))
    String A = rs.getString(1);
    session.setAttribute("employeeid", A);
    String B = rs.getString(2);
    session.setAttribute("firstname", B);
    String C = rs.getString(3);
    session.setAttribute("lastname", C);
    String D = rs.getString(4);
    session.setAttribute("gender", D);
    String E = rs.getString(5);
    session.setAttribute("dateofbirth", E);
    String F = rs.getString(6);
    session.setAttribute("address", F);
    String G = rs.getString(7);
    session.setAttribute("postalcode", G);
    String H = rs.getString(8);
    session.setAttribute("phone", H);
    String I = rs.getString(9);
    session.setAttribute("mobile", I);
    String J = rs.getString(10);
    String url = "/EditEmpDetao;s.java";
    RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url)
    dispatcher.forward(request,response);
    catch (Exception e)
    system.out.println(e)
    I do not know how to put the values stored in the session object into the html text box

    3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.do you really need to store this in session object?
    5. Now i need to set the session values in the text field of the html form which form? in a new html/jsp page? i suggest go for a JSP
    In your JSP page use JSP expression tags to put the session attributes.
    it's something like : <input type='text' name='employeeid' value='<%= session.getAttribute("employeeid") %>' >and you need to generateanother servlet for saving the details/modifications to the database.
    I think i m clear enough.
    if you need more clarifications. just try it and then post your problem.
    Diablo

  • I am contemplating replacing my old Ipod with a 8gb touch which supposedly holds up to 1760 songs. In my ITunes library the average size of a 12 song album is 300mb which means I can get 27 albums x 12 songs is 324 songs. Where am I going wrong here?

    I am contemplating replacing my old Ipod with a 8gb touch which supposedly holds up to 1760 songs. In my ITunes library the average size of a 12 song album is 300mb which means I can get 27 albums x 12 songs is 324 songs. Where am I going wrong here?

    There is about 6.9  GBs of free space on an 8 GB Touch for data storage. That translates to roughly 23 of your average albums.
    Holds up to 1760 songs is based on the size of an average track which is about 3 to 4 MBs, whereas your albums have tracks averaging more like 25 MBs per track. I sort of doubt your average album holds what would be about 5 hours.

  • How do I determine the size of an object on a particular layer?

    Whether it's a rectangle, circle, line, etc. how do I determine what the size of an object is on a particular layer?

    Right click on the rulers and set the scale to pixels in the dialog
    Go to View>new guide and select the position of the guide lines along horizontal and vertial axes
    Window>info brings up the Info Palette. The information in the right lower corner provides a readout of any selection that you make, e.g. with the marquee tool
    View>grid allows one to bring up a non-printable grid which is useful for orientation. The grid can be set up with subdivisions to suit via Edit>preferences>guides and grid
    You can open a duplicate layer at the top of the stack, then using the brush tool create a straight line for visual projection. The layer can be deleted at any time. To create a straight line, click on the begin point, hold down the shift key, and click on the end point
    Hope that one of these options is useful for your purpose. Please post your progress.

  • How can i get the value stored in the session object using its sessionid

    how can i get the value stored in the session object using its sessionid by running stand alone java application

    myforum wrote:
    how can i get the value stored in the session object using its sessionid by running stand alone java applicationThis does not seem to make sense! You need at least to give a lot more detail of what you are doing.

  • How to measure the size of an object written by myself?

    Hi all,
    I'm going to measure the performance on throughput of an ad hoc wireless network that is set up for my project. I wrote a java class that represents a particular data. In order to calculate the throughput, I'm going to send this data objects from one node to another one in the network for a certain time. But I've got a problem with it- How to measure the size of an object that was written by myself in byte or bit in Java? Please help me with it. Thank you very much.

    LindaL22 wrote:
    wrote a java class that represents a particular data. In order to calculate the throughput, I'm going to send this data "a data" doesn't exist. So there's nothing to measure.
    objects from one node to another one in the network for a certain time. But I've got a problem with it- How to measure the size of an object that was written by myself in byte or bit in Java? Not.

  • PCD Audit : What information about the PCD objects are stored in the PCD?

    Folks,
    Need some information on the information stored in the PCD for audit purposes.
    Object = Any PCD object, typically iView, Page, Workset, Role, Group...
    1. Creation of any object - Should definately be present in the PCD
    2. Any modification including history - List of all actions on any PCD object - I am sure the last modification is tracked, but can we track every change to the object from creation?
    3. Deletion of any object? - This I am not sure of - Does the PCD store information about deleted object's like deletion time stamp and the user who deleted etc?
    Thank you...

    Hi,
    >>1. Creation of any object - Should definately be present in the PCD
    There is no doubt about this.
    >>2. Any modification including history - List of all actions on any PCD object - I am sure the last modification is tracked, but can we track every change to the object from creation?
       <b>AND</b>
    >>3. Deletion of any object? - This I am not sure of - Does the PCD store information about deleted object's like deletion time stamp and the user who deleted etc?
    There is no versioning concept in PCD right now, but ofcourse planned for future.
    So you cannot track the history and deleted objects, but there exists PCD Repository Manager in KM on which you can activate versioning. Check if this suites your needs. Never tried but logically ever PCD change should get versioned here.
    http://help.sap.com/saphelp_nw70/helpdata/en/76/a8934259a5cc6ae10000000a155106/frameset.htm
    Greetings,
    Praveen Gudapati

  • How to stop changing stroke weights when changing the size of an object in CS5 on Windows 7?

    I'm not sure what I did to make this happen or how to change it back, but for some reason when I change the size of an object/line it changes the stroke weight as well. (For example, if I drew an ellipse with stroke weight 2 pt, and then increased the size the stroke weight would be 2.856 pt or some such number instead of 2 pt.) Does anyone know how to change this back?
    Thanks!

    Take a look at the Scale Strokes and effects preference either in the general programme preferences or in the flyout menu of the Transform palette.

  • The Control Panel (top bar) no longer shows the location or size of an object when I select an object using the black arrow.

    I'm only able to see/adjust the location or size of the object by opening the Transform panel. 
    This is what I used to see:
    Now my Control panel looks like this where the above information used to be when an object was selected using the black arrow:

    tracyelaine,
    It may be time for the list (you may skip 5) in this case).
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media, see below. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html
    External media: It is always recommended here to open/save from/to own hard disk, and to copy from/to networks and removable media. You may be lucky (for a while), but the chances of file corruption and other unpleasantnesses are immensely greater when you use anything but the harddisk, and it is better to be safe than sorry.
    In addition to the (far greater) risk of file corruption, some issues are mentioned here:
    http://helpx.adobe.com/illustrator/kb/illustrator-support-networks-removable-media.html

Maybe you are looking for

  • Problems Installing Adobe Flash 11.4

    Every time I try to install Adobe Flash 11.4 I receive an error saying Adobe Flash Player Install Manager quit unexpectedly after it was relaunched. From there I try to relaunch but it still does not work. I am running Mac OS X Version 10.5.8. Any he

  • Logic related to HR module

    Does anyone knows how the standard SAP gather data from HR table during execute run (PC00_M99_CIPE - Execute run)  ? How the SAP differentiate which data hasn't posted to FI yet -> to be posted. what table does SAP read ? Anyone can help me ? I'm not

  • HT4576 I wanted to change my time zone to Boston, MA

    I was wondering why my ipad continued to change the calendar events back to NY,NY. I know it sounds silly to some, but I am a Boston sports fan and it agitates me. I don't see any reason why Boston can't stay there. Can someone help please? Thank you

  • Why did my Lightroom 3.6 crash?

    For some reason my Lightroom 3.6 just crashed. I tried to uninstall and re-install with no results. I then did a system Restore and that didnt work either. I recently uploaded the trial versin of Nik Color Efex Pro and the trial was just about over w

  • FCP 5 Audio Capture Bug and Aurora Video Systems

    I think Apple know about this one. Aurora says that FCP 5.0x has a bug that makes setting audio capture levels imposible when using the Igniter. Will Apple fix this? Alex Edited by an Apple Discussions Host