Possible to set CacheSize for the single-JVM version of the data cache?

Hi -
I'm using Kodo 2.3.2.
Can I set the size for the data cache when I'm using a subclass of the single-JVM version of the
data cache? Or is this only a feature for the distributed version?
Here are more details...
I'm using a subclass of LocalCache so I can display the cache contents.
The kodo.properties contains these lines:
com.solarmetric.kodo.DataCacheClass=com.siemens.financial.jdoprototype.app.TntLocalCache
com.solarmetric.kodo.DataCacheProperties=CacheSize=10
When my test program starts, it displays getConfiguration().getDataCacheProperties() and the value
is displayed as "CacheSize=10".
But when I load 25 objects by OID and display the contents of the cache, I see that all the objects
have been cached (not just 10). Can you shed light on this?
Thanks,
Les

The actual size of the cache is a bit more complex than just the CacheSize
setting. The CacheSize is the number of hard references to maintain in the
cache. So, the most-recently-used 10 elements will have hard refs to them,
and the other 15 will be moved to a SoftValueCache. Soft references are not
garbage-collected immediately, so you might see the cache size remain at
25 until you run out of memory. (The JVM has a good deal of flexibility in
how it implements soft references. The theory is that soft refs should stay
around until absolutely necessary, but many JVMs treat them the same as
weak refs.)
Additionally, pinning objects into the cache has an impact on the cache
size. Pinned objects do not count against the cache size. So, if you have
15 pinned objects, the cache size could be 25 even if there are no soft
references being maintained.
-Patrick
In article <aqrpqo$rl7$[email protected]>, Les Selecky wrote:
Hi -
I'm using Kodo 2.3.2.
Can I set the size for the data cache when I'm using a subclass of the single-JVM version of the
data cache? Or is this only a feature for the distributed version?
Here are more details...
I'm using a subclass of LocalCache so I can display the cache contents.
The kodo.properties contains these lines:
com.solarmetric.kodo.DataCacheClass=com.siemens.financial.jdoprototype.app.TntLocalCache
com.solarmetric.kodo.DataCacheProperties=CacheSize=10
When my test program starts, it displays getConfiguration().getDataCacheProperties() and the value
is displayed as "CacheSize=10".
But when I load 25 objects by OID and display the contents of the cache, I see that all the objects
have been cached (not just 10). Can you shed light on this?
Thanks,
Les
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Why is the single SIM version of the Nokia 515 mor...

    Which one would you recommend to buy?

    Hi,
    The issue should occurs when you install the WAIK on a 64bit Windows 7 machine.
    You need install WAIK on a 32bit machine.
    Different binary versions of Windows SIM cannot create catalog files for some Windows images of different architecture types. We recommend using the
    32-bit version of Windows SIM to create catalog files because this version can create catalogs for all Windows image architecture types. The following list describes the Windows SIM architecture types and catalogs that can be created for each Windows
    image architecture type.
    x86 Image Manager. Can
    create catalogs for x86, x64, and Itanium-based Windows images.
    x64 Image Manager. Can
    create catalogs only for x64 Windows images.
    Itanium-based Image Manager.
    Can create catalogs only for Itanium-based Windows images.
    This article may helpful to you:
    http://technet.microsoft.com/en-us/library/dd744249(WS.10).aspx
    Hope that helps.
    Regards,
    Leo  
    Huang
    Leo Huang
    TechNet Community Support

  • If I buy the single user version of the standard software, can I add multiple licenses later?

    We need to install in about 5 seperate computers in my office, and not sure exactly how to go about purchasing the software.
    Thanks.

    For multiple licenses, that is usually done through Adobe for a special multiple activation license. The price apparently is based on the number of installations that are expected. I am not sure of the exact process, but that is what I have heard over the years. So please contact the Adobe folks to see if you can get pricing information. Be sure to have an esitmate of the number of seats that you require. I would recommend the Pro version and not the Std version. However, that may be where you buy one Pro license and then a multiple license for Std.

  • Is it possible to set my IPhone 5S to automatically backup to the Verizon cloud or to backup assistant. The only settings I see is where it will remind me to do. Can it be set to automatically do this, like my Droid did.

    Is it possible to set my IPhone 5S to automatically backup to the Verizon cloud or to backup assistant. The only settings I see is where it will remind me to do. Can it be set to automatically do this, like my Droid did.

        We want your information backed up as easily as possible, Todd536. With Verizon Cloud, you can not only tell the application when to back up automatically, but what you want backed up each time. Visit http://bit.ly/1f5sO4P for all the steps to manage your Verizon Cloud on your iPhone.
    JenniferH_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • HT1491 If I purchase one song from an albumn in iTunes, but later want to purchase the entire albumn, does iTunes give credit for the single song purchased, or will I be charged once for the single song, and then the regular full price for the albumn?

    If I purchase one song from an albumn in iTunes, but later want to purchase the entire albumn, does iTunes give credit for the single song purchased, or will I be charged once for the single song, and then the regular full price for the albumn?

    Welcome to the Apple Support Communities
    You'll purchase the rest of the album, so you'll pay the same as the cost of the album but without the cost of the previously purchased song

  • IPad 2 Mail: Is there a way to set Rules for folders, similar to Mail in the iMac?

    iPad 2 Mail: Is there a way to set Rules for folders, similar to Mail in the iMac?

    Based on your answer, and the answer to another question (which I didn't see before I asked mine, even tho I searched), I get the impression that iPad Mail is just a different face on web mail, that the messages are only stored on the server, not downloaded and stored on the iPad 2. Is that correct?

  • Deployment Rule Sets do not properly launch the latest available version from the JRE6 family when the jpi-version is specified by the RIA

    Issue Summary
    In Java 1.7 Update 71, Java 1.7 Update 72 and Java 1.8 Update 25 Deployment Rule Sets do not properly launch the latest available version from the JRE6 family when the jpi-version is specified by the RIA.  We've noticed this with Oracle Forms and Reports 11g where we have forms that specify Java 1.6 Update 20.  We used to be able to specify Java 1.6 Update 26 in our Ruleset, but now the only version a that works in our ruleset is Java 1.6 Update 20 which is the same version requested by the JPI-Version attribute of the jar.  The long term solution would be to upgrade Oracle Forms and Reports, however this isn't currently in the cards.
    RuleSet.xml Test
    Ruleset.xml

    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    &lt;ruleset version=&quot;1.0+&quot;&gt;  
    &lt;rule&gt;
       &lt;id location=&quot;*.javatester.org&quot; /&gt;
       &lt;action permission=&quot;run&quot; version=&quot;1.6*&quot; /&gt;
    &lt;/rule&gt;
    &lt;ruleset version=&quot;1.0+&quot;&gt;
    &lt;rule&gt;
       &lt;id location=&quot;*.internaldomain.name&quot; /&gt;
       &lt;action permission=&quot;run&quot; version=&quot;1.6*&quot; /&gt;
    &lt;/rule&gt;
    &lt;/ruleset&gt;
    Test 1 (Control)
    Installed Java Versions:
    – 1.7 Update 51 b13 (both x86 and x64 however x86 is invoked)
    – 1.6 Update 26 b03 (both x86 and x64 however x86 is invoked)
    Deployment Ruleset works as expected for both URLs
    Test 2
    Installed Java Versions:
    – 1.7 Update 72 (both x86 and x64 however x86 is invoked)
    – 1.6 Update 26 b03 (both x86 and x64 however x86 is invoked)
    The RuleSet works for JavaTester.org however on internaldomain.name we get the following error:
    With the trace logging turned on, I suspected the version attribute supplied by the RIA. I was able to trick Java by adding the following to my system deployment.properties file:
    deployment.javaws.jre.0.product=1.6.0_20
    deployment.javaws.jre.0.path=C\:\\Program Files (x86)\\Java\\jre6\\bin\\javaw.exe
    deployment.javaws.jre.0.enabled=true
    Because the RIA requests 1.6.0_20 it matches 1.6* from the deployment ruleset sooner than 1.6.0_26. However, if 1.6.0_20 is not available 1.6.0_26 should match according to the Deployment Rule Set documentation:
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/deployment_rules.html
    The version of the JRE that is used is determined by the following order of precedence:
    1. The current version of the JRE is used if it is available and matches both the version attribute and the version requested by the RIA.
    2. The latest available version of the JRE is used if it matches both the version attribute and the version requested by the RIA.
    3. The current version of the JRE is used if it is available and matches the version attribute.
    4. The latest available version of the JRE is used if it matches the version attribute.
    If no version is available that meets the criteria, then the RIA is blocked, and a message is shown to the user. To provide a custom message, include the message element.
    As a result:
    If Java 1.6.0_20 is listed in the version requested by the RIA and 1.6.0_20 is listed in the deployment.properties file, #1 matches.
    If Java 1.6.0_20 is listed in the version requested by the RIA, but 1.6.0_20 is NOT listed in the deployment.properties file the #1 SHOULD match, but doesn’t. It used to match up-to and including JRE 1.7 Update 51 however the ruleset appears to no longer match in subsequent versions.
    #2 should never match with our current Deployment Ruleset. It would match if we specified 1.7* as a version in the Ruleset.xml.
    #3 used to be broken as well after JRE 1.7 Update 51 however this bug has been marked as fixed. See: http://bugs.java.com/view_bug.do?bug_id=8032781
    I have reproduced this issue with Java 1.7 Update 71, Java 1.7 Update 72, and Java 1.8 Update 25 when one of these versions are installed with Java 1.6 Update 26.

    I can't seem to edit this post anymore, for some odd reason.
    So here goes;
    I found this post in NVIDIA's knowledge base;
    When installing an after-market graphics card into a certified Windows 8 PC with UEFI enabled, the s...
    The interesting parts in this post are as follows;
    When an after-market graphics card is installed into a motherboard with UEFI enabled in the system BIOS, or if the system is a certified Windows 8 PC with Secure Boot enabled, the system may not boot.
    UEFI is a new system BIOS feature that is provided on most new motherboards. A UEFI system BIOS is required in order for the Windows 8 Secure Boot feature to work. Secure boot is enabled by default on certified Windows 8 PCs.
    In order to get the PC to boot with a graphics card that does not contain UEFI firmware, the end-user must first disable the secure boot feature in the system's SBIOS before installing the graphics card.
    Note: Some system SBIOS's incorporate a feature called compatibility boot. These systems will detect a non-UEFI-enabled firmware VBIOS and allow the user to disable secure boot and then proceed with a compatibility boot. If the system contains a system SBIOS the supports compatibility boot, the user will need to disable secure boot when asked during boot process
    This leads me to believe that the BIOS update that wrecked my setup was 9SKT58A/9SJT58A, which only contains one change;
    "Adds support for updating BIOS from a WIN7 BIOS to a WIN8 BIOS".
    I've just ordered a cheap UEFI-compatible GT640 from Gainward, so I hope I'll be able to try that out this weekend.

  • I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    This is the Microsoft forum site that parallels what Apple has:
    Office for Mac forums
    It's not uncommon for MS employees who work with the Mac side of the business to help there. All in all a useful resource for Office:Mac

  • Just tried to install the latest firmware version and the screen has been grey for the last 30 mins

    Just tried to install the latest firmware version and the screen has been grey for the last 30 mins, any ideas what to do now?

    ..Step by Step to fix your Mac

  • What are the frequencies all versions of the iPhone 6 and what are they used for (e.g. GSM, 3G, LTE, WIFI, Bluetooth,etc...) provided with channel numbers per frequency

    what are the frequencies all versions of the iPhone 6 and what are they used for (e.g. GSM, 3G, LTE, WIFI, Bluetooth,etc...) provided with channel numbers per frequency.

    Click here

  • What different between the OTN download version and the CD version of 8i for linux?

    Does there have any different between the OTN download version and the CD copy version of 8i?
    Can I use the OTN download version for production environment?

    They are the same.
    Can I use the OTN download version for production environment? I think if you read the download license agreement it specifically says you can't use the software in a production environment.

  • Why remove the single most used item, the addons bar?

    Why does their v29 change log says "added options", when the only thing most of us see are removed options, including the single most used section: the addon bar? I do not want to install an addon to see the addon bar that has been present since pre-Firefox Mozilla days. So why remove the single most used item? Did the previous pro-life CEO like it too much and the new management cannot have that?? Seems like Firefox is going backwards, not forwards.

    With 20 years in tech support and working on thousands of user end computers, the number 1 area used by people both in offices and in their personal computers was the add on bar. Considering the sheer number of addons that make use of it (just a preliminary dig through the addons earlier today), I would say in excess of 75% of legitimate addons make use of it. By removing it, it essentially nullifies hundreds of thousands of man hours put into programming all those addons.
    Why require an addon just to be able to make use of other addons? Sounds like a VERY flawed study to me, or there was no study and it's just Mozilla big wigs deciding to change what they want, spitting in the face of the open source/common community licensing.

  • The latest stable version of the Linux kernel is: 2.6.25 !!!

    The latest stable version of the Linux kernel is:  2.6.25
    as u know
    http://www.kernel.org/
    after testing ,hope included in final core iso
    2008.04

    ekerazha wrote:
    brain0 wrote:First of all, ext4 is under heavy development and possibly buggy. Furthermore, the on-disk format is not guaranteed to be stable yet.
    No, it's not under heavy development, it is almost complete. The only missing part is the "dalayed allocation". The on-disk format, as I've already said, shouldn't change anymore.
    With this patch series, it is expected that ext4 format should be settling
    down.  We still have delayed allocation and online defrag which aren't
    quite ready to merge, but those shouldn't affect the on-disk format.
    I don't expect any other on-disk format changes to show up after this
    point, but I've been wrong before....  any such changes would have to
    have a Really Good Reason, though.
    Source: http://lkml.org/lkml/2008/1/21/392
    If you read this carefully, you don't want to use ext4 just now. You also should consider that ext4 is virtually untested compared to filesystems like ext3 which has been used for years in many production environments. I wouldn't read "I don't expect any other on-disk format changes" as "There will be no more changes" if I had important data.
    brain0 wrote:Second, we don't have a single filesystem built into the kernel, they are all modular - and I don't see a reason why this should ever change.
    I remembered some filesystems were "built-in". Evidently I remember wrong (well... and I remember the filesystem for the root partition had to be built into the kernel, but my knowledge on this point is not very updated).
    You're so 90's. If we would build everything into the kernel that everyone needed to boot, it would be 5MB or 10MB instead of just 2MB. Everything is as modular as possible now (there are some exceptions which should be ironed out in one of the next releases).

  • How to convert the CS6 MAC version to the Windows version?

    I followed the advice to go to go/getserial, but the productcode i entered was "invalid", but the figures i entered are correct. What now ?

    Thank you for the tip, but I only get to : ask the community..   No
    contact with any agent.
    Pat Willener schreef op 19/09/2014 11:25:
    >
          How to convert the CS6 MAC version to the Windows version?
    created by Pat Willener <https://forums.adobe.com/people/pwillener> in
    /Downloading, Installing, Setting Up/ - View the full discussion
    <https://forums.adobe.com/message/6744036#6744036>

  • Does anyone have any real answers to what specs the Best Buy version of the U43JC has?

    I called Best Buy 1-800 number numerous times and everyone keeps giving me different answers. And being on the phone with them so often I figured out what they do, they go bing.com or google.com and do a search. They have no real facts other than what other websites are saying.
    1) Processor: It says I5-450m, but the processor speed states "2.26Ghz" which is the speed of the I5-430m. So, I5-450m or I5-430m?
    2) Built in Webcam says on Best Best as being 0.3mp....but every other website that is pre-selling this model says 2.0mp..So, 0.3mp or 2.0mp?
    3) There is no mention of built in Bluetooth for the Best Buy model, but other sites selling the U43JC says built in Bluetooth. Does the best Buy model have built in Bluetooth?
    4) There is no mention for the U43JC of having WIDI (Intel Wireless Display Technology) but all the other websites selling this model state it having WIDI. Does the U43JC that Best Buy is selling have WIDI?
    5) I know Asus offers a 8 cell battery with 4400mah or 5600mah......All the other websites specifically state 8cell 5600mah. Which 8 cell battery does the one Best Buy is selling have?
    6) All the other websites mention the U43JC having 2-2.0 USB and 1-3.0 USB, while Best Buy mentions 3-2.0 USB. Does the Best Buy version of the U43JC have 1-3.0 USB?
    Lastly what is the difference between a Asus U43JC-BBA7 which is how Best Buy labels it V.S. the Asus U43JC-A1 which the other websites mention it as?

    --"I called Best Buy 1-800 number numerous times and everyone keeps giving me different answers. And being on the phone with them so often I figured out what they do, they go bing.com or google.com and do a search. They have no real facts other than what other websites are saying."
    Only BBYs buyer will have such details on product. They don't answer phones.
    ---1) Processor: It says I5-450m, but the processor speed states "2.26Ghz" which is the speed of the I5-430m. So, I5-450m or II-430m?"
    It's called a "typo", and congratulations...you caught it. You get a cookie now. The unit has the 450M.
    ---"2) Built in WebMD says on Best Best as being Amp...But every other website that is pre-selling this model says Amp.So, Amp or Amp?"
    WOW...that's TWO typos! TWO cookies for you.
    3) The BBY unit has no Bluetooth.
    The unit is built to spec by BBY corporate buyers. Looks like you're more into the factory model.
    Disclosure: Former BBY employee.

Maybe you are looking for

  • Closing pooled connections?? one at a time?

    I've got an interesting need; I've writen a custom UserManager for form based authentication. class ValidateLoginManager extends AbstractUserManager Authentication is to a legacy DB (Oracle) where all users have been added as Oracle users. So I've cr

  • Issue with Report to get Position value for each Class ID.

    Hello Experts, m working on a report where I want Position values as on date. for an entered date report should give position value(Amount for transaction) for each class Id. I m trying using the exit variable but could not reach the output. For date

  • Keyfigures values are not displaying

    Hi Experts, There is an issue that when the user is trying to execute the report (maybe workbook) he is not able to see the keyfigures values.Keyfigures are not hidden and they are in display mode in designer.He is getting blank values But when I exe

  • Assigning the base class

    I have a bunch of DefaultMutableTreeNodes already created and I want to convert them all to myTreeNode objects which extends DefaultMutableTreeNode. Is there an easy way for assigning the super class of myClass which is DefaultMutableTreeNode. I know

  • Viewing lan sites hosted on macbook pro (apache) via wifi router

    Hi, thanks for stopping by. Hope you can help. I've my macbook pro (Lion) set up to serve several websites locally. In the httpd-vhosts.config I've got the addresses set up: <VirtualHost *:80> etc., ServerAlias site.localhostname.lan </VirtualHost> I