How can I get a count of objects in the near cache? (Extend client)

Hi,
I'm trying to figure out how to get the count of objects in my near cache (from c++ client). Knowing the size of the near cache is a key factor when optimizing configurations for performance.
However if I call size() on the cache handle I get the count of objects in the cache (ie the cluster). How can I get a count of objects in the near cache?
Thanks
Rich Carless

H Rich,
It may not be ideal, but I think you may be able to infer the size by using the HeapAnalyzer (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_heap_analyzer.html) facility, specifically the "class" based HeapAnalyzer. Its Snapshot representation http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_snapshot.html provides a mapping between class name and ClassStats (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_class_stats.html) which provides information on how many instances of a given class type are in memory. Note the reported counts are process wide but if your key or value type are distinct you may be able to infer your answer. I realize this is rather complex, my only other suggestion would be to just make some guesses on size and see how they effect performance.
Mark
Oracle Coherence

Similar Messages

  • How can I get record count with a query?

    In Client/Server pplication,the client send a query to server.
    How can server get record count by oracle call interface?
    Is it need execute "select count(*) from ...."?

    Yes.
    Either that or increment a counter for each record fetched and
    loop round until you hit the last record.
    The first method would be more efficient on large datasets.

  • How do you get word count to print at the end of a document in Pages?

    How do you get word count to print at the end of a document in Pages?

    Pages v5 does not provide a user assignable word count variable. With some AppleScript, and a paste operation from the clipboard, you can have locale punctuated word count in this format: 7,803 — anywhere in your document. The following AppleScript works with Pages '09 v4.3 through Pages v5.5.2 on Yosemite.
    I would suggest that you copy paste the following AppleScript into your [Apple] Script Editor and save it (suggestion) wordcnt.applescript. Then, follow this with an option+Save As… and this time set the File format to Script Bundle, or Application with hidden extension — saved to your Desktop. Provided you have a Pages document open, you are then a double-click from the ability to paste your current word count into Pages.
    Note: If you have Pages word count display enabled, it will automatically count your pasted value as another word which initially may deceive on true word count at the time the script was run.
    AppleScript
    --- copy below this line ---
    property locale : "en_US.UTF-8" -- In Terminal, use the locale command to see yours
    if not ApplicationIsRunning("Pages") then
         display dialog "Pages must be running to use this utility."
         return quit
    end if
    tell application "Pages"
        tell body text of front document
            set wordCnt to count words
            -- Don't want punctuated numbers? Remove the single quote from printf format
            set the clipboard to (do shell script "export LC_ALL=" & locale & "; printf \"%'d\" " & wordCnt)
        end tell
    end tell
    on ApplicationIsRunning(appName)
         tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
         return appNameIsRunning
    end ApplicationIsRunning

  • HOW CAN I GET A DESCRIPTION OF ALL OF THE FRATURES IN lION 10.7.4

    How can I get a description of all of the programs that came with my mac pro without spending an arm and a leg?

    This is a good place to start and follow the links to all the Mac 101 articles.
    http://www.apple.com/support/mac101/
    Regards,
    Captfred

  • One laptop died.  I have a new laptop now.  How can I get my Ipod song list on the new laptop without downloading each c.d.?

    My first laptop died.  I have a new laptop now.  How can I get my Ipod song list on the new laptop without downloading each c.d.?

    See this older post from another forum member Zevoneer covering the different ways to copy content from your iPod to your PC.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • How can I get rid of multiple pictures at the same time?

    how can I get rid of multiple pictures at the same time?

    Adobe Bridge, lightroom and your file browser (windows explorer or Mac Finder) can select multiple pictures at once and then delete. If you are looking for more than that for information, you will need to be more specific at what your doing, what OS you have, and version of software your using. If necessary post screen shots so we can see what your doing. The more information we have the more detailed of an explaination can can give back to you.

  • How can I get my POP account showing in the inbox it's supposed to show in?

    Hi-Until a couple of weeks ago all mail received from my IMAP and POP accounts would show up in the correct mailboxes in my Mail inbox list. (Only problem then was that sent mail would never show up in the sent mail folder--always stayed in the inbox.)
    Now a new problem has happened----unless I go directly to my charter cable account (P0P account) to retrieve any mail sent to that particular address, the mail goes unnoticed by Mail on my MAC and nothing shows up in the inbox. But--- If I do a test to myself , sending an email to the POP address from my IMAP account from my MAcMAil, my IMAP account will show the email in the inbox of the IMAP account I sent it from as if I'd mailed it to that account. How can I get my POP account showing in the Inbox? And, any suggestions for a fix to getting the "sent" mail to show in the "sent" folder would also be appreciated.
    Thanks!

    Control click in the tool bar area and customize.

  • HT1904 How can I get a refund for apps in the apple App Store that do not work and are not what they said they wer

    How can I get a refund for apps in the apple App Store that do not work and are not what they said they wer

    You've tried deleting and redownloading them and seeing if they then work and tried contacting the developers ? If you have and they can't/won't help then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Hardware missing -AGP Graphics card. How can I get my FCE 4 working on the new computer? Cheers

    Hi I have just upgraded my computer to Mac OSX 10.6.7 now I cant open my FCE 4. Message reads, Hardware missing -AGP Graphics card. How can I get my FCE 4 working on the new computer? Cheers

    Thanks, just so I know we are talking about the same items please let me know - When you say "run Prokit" do you mean downloaded? Which I did. I dont have Prokit 4.0.1 if you are referring to that, do I need this first? Please explain what application name I am looking for if other than Prokit which is sitting in my "download folder" do I need to manually put it into the apps folder? Sorry if the questions are layman but this area is not a very strong point for me. Thanks for your help so far.

  • My iPhone is stolen. How can I get my address book back from the iCloud? I should have synchronized my iPad address book. However, I loss some recent contacts from iPhone.

    My iPhone is stolen. How can I get my address book back from the iCloud? I should have synchronized my iPad address book. However, I loss some recent contacts from iPhone.

    I use my iPad to get the address book backed up by iCloud from my iPhone. However, I cannot see the recent new contacts from my iPad. Is there anyway to check the iCloud server to see if my address book backup from my iPhone is still there?

  • I bought 3 iPhone 4s and each should have 5gb of cloud. I want to only use my one iTunes ID. How can I get this storage space increased to the 15 GB?

    I bought 3 iPhone 4s and each should have 5gb of cloud. I want to only use my one iTunes ID. How can I get this storage space increased to the 15 GB?

    iCloud storage is not allocated by device. iCloud storage is allocated to your iCloud AppleID. You get 5GB of iCloud storage.

  • How can I get my clock to remain on the correct time when starting bootcamp and windows XP? wireless option is not available.

    How can I get my clock to remain on the correct time when starting bootcamp and windows XP? wireless option is not available.

    Have a look at solutions in here https://discussions.apple.com/message/10689317#10689317
    Regards
    Stefan

  • I found out that I have some lost contacts on my iphone 5s, they dont appear when I search but if the contact calls me I see their name. How can I get those contacts to be on the list?

    I found out that I have some lost contacts on my iphone 5s, they dont appear when I search but if the contact calls me I see their name. How can I get those contacts to be on the list?

    You could check settings > mail contacts and calandars and see if there are any accounts (like icloud gmail yahoo) listed and if they have contacts on. Its possible if contacts were synced to one of these accounts that turning them back on will recover the missing contacts.

  • I have several pdfs on my iPad in iBooks. My iPhone shows only the categories, none of the documents. How can I get my iPhone to also show the documents that are on my iPad?

    I have several pdfs on my iPad in iBooks. My iPhone shows only the categories, none of the documents. How can I get my iPhone to also show the documents that are on my iPad?

    You will need to connect your iPad to your computer's iTunes and do File > Devices > Transfer Purchases to copy them over to your computer (that will copy PDFs and epubs that are in the iBooks app, not just actual ibooks), and you can then sync them to your iPhone. Or you might be able to open each PDF in iBooks on your iPad and use the share icon to email them to yourself and then use 'open in' in the Mail app on your iPhone to copy them to its iBooks app (if the PDF is protected then you may not get the email option via the share icon).
    The Settings > iBooks > Sync Collections setting doesn't copy items between devices, it just means that it a bookor PDF is on both devices and you move it into a collection on one device then it will be moved into the same collection on the other device

  • How can I get my iphone to stop losing the signal?

    How can I get my iphone to stop losing the signal?

    Thanks for the tip.  If only I could find somewhere where I did not lose the signal.
    I am based in the United Kingdom. The carrier is Orange.
    I lose the signal inside buildings and outside of buildings.  It happens at work and at home.  It happens in Centarl London in the open air and inside.  It happens in small towns.. It happens in the countryside.  It happens in motor cars.  It happens in airports.  It happens when the battery is fully charged, when it is half charged and when it's low on charge.  It happens using the phone, when reading messages and when using the internet.
    Hope this helps.

Maybe you are looking for

  • Fail safe logic needed for purchase order upload program

    Hello all, i am working on creating PO's by reading data from a text file. I need to implement fail safe logic in it, which is to make sure this program uploads all the records in the text file successfully. For example, i have 1000 records in my tex

  • Sync / Async Bridge without BPM

    Hi All, I was trying to implement the Sync / Async Bridge without the BPM. I am trying a HTTP to JMS Sync / Async Bridge. I have followed the following link and done exactly the same as shown in the document http://help.sap.com/saphelp_nw04/helpdata/

  • When editing an image in ps from a lr 4.2 smart collections image not shown back in smart collection

    Hi all, I have noticed at LR 4.2, that if you edit an image of a smart collection using PS (edit in PS function threw LR) and then save, the image is not appearing in the specific smart collection. Instead  image appears in the parent folder from whe

  • Transaction code to display exception messages by material and plant

    Hi, Is there a transaction code or standard report in SAP  to display exception messages by material and plant? I see the exception messages by individual material and plant in MD04 but I need to see a collective view. I tried Collective access in MD

  • How to use s60 sdk?

    Hello I m using WTK..but my application doesnt work via OTA..There is some problem in loading image..it throws ioexception..i want to switch to s60 sdk.. can someone tell me how to run application in that after installing.. Edited by: Astha on Nov 23