Clearing up the cache for OracleConnectionCacheImpl

Hi,
I am using the OracleConnectionCacheImpl pool with the following settings:
cached = new OracleConnectionCacheImpl(getConnectionPoolDataSource(dataSourceBindName));
cached.setDescription(dataSourceBindName.toString());
cached.setCacheInactivityTimeout(1);
cached.setConnectionCleanupInterval(1);
I was not sure from the documentation if 1 is in millisecs, secs, mins, hours... so assumed it was minutes. Essentially I was the cache cleaned out of connections which have been inactive for a defined period of time.
Currently using the settings above in a test app I check out 5 connections from the pool and check them back in (close the logical Connection) shortly after. I then loop and every 25 seconds print out the size of the cache from getCacheSize(). As expected at first this is 5. After 1 minute I expected this to change to 0. it did not. In fact nothing changed for 15 minutes and at that point the cache size changed to -1.
Can anyone help explain how I can get the cache to reduce in size (close the inactive physical connections sooner) or if not why the cache size becomes -1 and not 0. After the cache size becomes -1 it does not change even when I check out new connections from the pool.
Thanks for any help,
James

hi,
I just had the same problem. But clearing every type of caches on the client side did not help. Anyway I don't think this could help, because the localization is not done on the client side.
At the end the following steps helped:
- remove all the the properties from the bundle file
- save the bundles
- open the website showing the properties (now the keys are shown instead of the translations)
- add the properties again to the bundle file
- save the bundles
Afterwards the missing properties are shown correctly.
Best regards
Gerhard

Similar Messages

  • Seeding the cache for all users

    We are facing some performance issues (even after using aggregate tables) and are looking into seeding the cache for all users so that the dashboard pops up immediately.
    So far I couldn't make it work. As Administrator I created an iBot to run a report for 1 month (dashboard has a dashboard prompt on the period) with Data Visibility set to 'Personalized (individual data visibility)' as I understood from the manual this is the way to seed the cache for all users. Now when I log on with my personal userid and set the prompt value to that specific period it is not using the cache.
    Obviously destination was set to 'Oracle BI Server Cache' and cache has been turned on.
    Does anyone have any suggestions ?

    We are facing some performance issues (even after using aggregate tables) and are looking into seeding the cache for all users so that the dashboard pops up immediately.
    So far I couldn't make it work. As Administrator I created an iBot to run a report for 1 month (dashboard has a dashboard prompt on the period) with Data Visibility set to 'Personalized (individual data visibility)' as I understood from the manual this is the way to seed the cache for all users. Now when I log on with my personal userid and set the prompt value to that specific period it is not using the cache.
    Obviously destination was set to 'Oracle BI Server Cache' and cache has been turned on.
    Does anyone have any suggestions ?

  • What is the cache for?

    I know it's a dumb question, but before I clear/empty it, need to know what it does, is for. Thx.

    The cache is used to store data off-line, so it is available without having to be downloaded another time. Firefox will contact the server to see if that data is still current. This applies to images and JavaScript and CSS files (additional content). If you clear the cache then everything needs to be downloaded with a next visit to website where Firefox had previously stored data from.

  • Clear cache does not clear all the cache

    Hi,
    After clearing the cache, the browser assumes some of the files are still cached so it won't try to get the file from the server. This causes the website to hang as it does not timeout.
    It does not always happen, for example in my machine is OK, but a colleague's machine has it consistently and other people too.
    The only way that they could make it work is going to about:support and doing a reset.
    The Troubleshooting Information I've added is from the problematic machine.
    regards,
    Daniel.

    They use the built-in means to clear the cache.
    Tried deleting the cache folder but it did not help.
    Tried also deleting the profile folder contents and it did work. I guess that is similar to reset functionality.
    Still, if clearing the cache folder worked would be a a workaround for us, as developers but not something we could ask from our customers.
    You can try it with this URL:
    https://hornbill.socialworkforce.com/socialworkforce/user/lib/hux/server/comboloader/comboloader.php?ver=1.1.0&../../ext/yui3/../../../esp_hux/components/Xmlmc/Xmlmc-min.js
    Again, they are able to load it for the first time, but if they clear the cache, they cannot get the response from that url, in fact there is not even a request from the browser.

  • JPA -- How can I turn off the caching for an entity?

    Hi,
    I have a problem that I will illustrate with a simplified example. I have created an entity:
    @Entity(name="Customer")
    @Table(name="CUSTOMERS")
    public class Customer implements Serializable {
    }I have also set the collowing properties in persistence.xml:
    <property name="toplink.cache.type.default" value="NONE"/>
    <property name="toplink.cache.size.default" value="0"/>
    <property name="toplink.cache.type.Customer" value="NONE"/>
    <property name="toplink.cache.size.Customer" value="0"/>
    <property name="toplink.cache.shared.Customer" value="false"/>And then I run the following code:
    Customer cust = em.find(Customer.class, 1L);
    System.out.println(cust);
    cust = em.find(Customer.class, 1L);
    System.out.println(cust);The problem: the second call to em.find does NOT generate a query to the database. Here's a fragment from the console log:
    [TopLink Fine]: 2007.05.11 02:55:05.656--ServerSession(2030438)--Connection(5858953)--Thread(Thread[Main Thread,5,main])--SELECT ID, SEX, NAME, MANAGER FROM CUSTOMERS WHERE (ID = ?)
         bind => [1]
    Customer: id=1, name=Customer #1, sex=MALE
    Customer: id=1, name=Customer #1, sex=MALECan anyone help me? Why isn't the caching turned off? I tried various combinations of properties. Nothing worked. I was expecting to see two queries to the database. I can see only one.
    I tried with TopLink Essentials Version 2 Build 39 and Version 2 Build 41.
    Best regards,
    Bisser

    The cache is likely turned off, but you can't tell because you are using the same transactional EntityManager instance for the two queries. The EntityManager requires its own cache for object identity and transactional purposes, as once you read an object in through the EM, the spec requires that all subsequent reads return the same instance. Only the EntityManager refresh will cause a refresh, that or setting your queries to use the toplink.refresh and toplink.cache-usage query hints.
    I would strongly recommend you use a query cache for performance, but there are of course reasons why one might not be the best option.
    http://weblogs.java.net/blog/guruwons/archive/2006/09/understanding_t.html
    is a good blog on understanding the caching used In TopLin Essentials.
    Best Regards,
    Chris

  • Clearing out the Cache

    I have been working on a huge project where I needed to export everything to the client from XDCam EX1 to a Standard Def 16x9 timecoded stock demo reel. Now my computer is saying it is running low on space on the C: drive when the project is not on the C: drive. I found GIGS of data hidden in a Cache directory and I'm trying to find out how to delete the cache files without just going in and deleteing the directory. Is there a setting in Adobe to clear out the old cache files?

    File/preferences/media - clean

  • Online did not match the Cache for employee

    I had an employee whom uses cache on his laptop in the office and cleaned out a lot of trash over the past few weeks. Today he came to me and said his mailbox was full but really did not have much in his cache box. So I changed him to online and found that all of the trash was still there.
    Is there a setting or maintenance mode I need to make sure is set to keep this from happening again?
    Just wondering,
    Ken

    Hi,
    He will need to do a send/receive on the cached GroupWise client to sync everything up with the online version.
    If you work off a cached GroupWise client disconnected from the network and delete items, then it won't actually delete items from your online mailbox until you do a send/receive. That's the beauty of a cached mailbox - you can work off the network then simply do a sync when when you have a connection.
    The reason is that the trash works a bit funny is that after the initial "prime" it keeps things in sync by shuffling items around and downloading/uploading just the missing emails (efficient use of bandwidth) from the different versions.
    When you use a cached mailbox you effectivly run a small PO on the client machine that needs to be synced and it does this by not resyncing the entire mailbox (which could be huge) but rather shuffling items around to sync the cached version with the live PO.
    Often this can mean strange thing appearing in the trash but it's worth once you undestand how it works!
    It's even more fun if you use two laptops with a cached mailbox on both!
    It's possible to have emails deleted from laptop1 then synced with the online mailbox only to find that when you use laptop2 after a week and sync it you find all the emails you deleted from laptop1 (and were removed from online when synced) showing in the trash can for the laptop2 cached mailbox. They were still on laptop2 (downloaded from a previous sync) and it's matched them up by moving them to the trash (most efficient method). You can then just empty the trash from the cached version on laptop2 and things are back in sync.
    Hope this helps.

  • Can I clear all the history for a selected site like CNN, not just one "reference" at a time for CNN

    I want to be able to clear certain parts of history. Not all of it for a time, and not just one "entry" at a time. For example: I have lots of entries in history for CNN or ESPN website. Can i remove all of the CNN entries at one time? Clearing it in that kind of grouping. I hope this is clear I am not so good with computer lingo. Thanks

    You can also use a colon (:) that is present to specify the protocol in the search bar.
    In the site bar you can sort by visited date and in the library you can click a column header (e.g. location) to the the history items.
    Note that you can copy (drag/drop) history items to a bookmarks folder to save (preserve) them as bookmarks.
    You would need to use a place: query and create a so called smart folder to have more control.
    *https://developer.mozilla.org/en/Places_query_URIs

  • Clearing Safari's cache - for website changes

    I'm modifying a website content. For example, I've just uploaded an image to replace an existing one. The new image is not displayed in Safari, even after:
    - Empty Caches
    - Restarting Safari
    Am I missing something? If I'm doing what I should be already, does it mean the ISP is caching this page beyond my control?

    This was an odd transient problem. Now every image is available after a page refresh.

  • Clearing out the CACHE in a pdf ...

    I used LiveCycle to create a pdf for use with our helpdesk. The document went through 7 revisions and is finally ready for release. However, during the course of creating and testing the document I had entered dummy information in the fields. Now when I open the finalized document with Acrobat, the dummy information starts popping up after you start entering letters. Like an internet browser will do when you start typing in a web address, it is trying to guess what you want to type in based on your previous history. I need to delete this information before I send out the finished document. How can I clear this information from my pdf?
    Thanx
    T

    File/preferences/media - clean

  • The Google sign-in page appears garbled and will not display. I have tried clearing cookies, the cache, uninstalling and reinstalling flash...

    and uninstalling and reinstalling firefox, all to no avail. I have included a screenshot of the issue. Thank you for your help!
    http://i.imgur.com/TLM2p.jpg

    You can check the network.http.* prefs on the about:config page and reset all bold user set network.http prefs to the default value via the right-click context menu -> Reset.
    Check at least:
    * network.http.accept-encoding: gzip,deflate
    If you do not keep changes after a restart then see:
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.org/kb/Preferences+are+not+saved

  • CS5 Error: Updating the cache for items within the folder recursively

    I have another odd issue and have no clue to what would resolve this.
    I'm on Mac OS X 10.6.8. Bridge CS5
    I've been getting the same message when creating a new folder. However when I create a new folder in my Finder window, it creates the folder immediately and reflects as such in bridge.
    I can cope with creating folders this way. But it becomes a pest when I forget to do it.
    One thing is, the only time this happens is when using our server. But this has not always been the case.
    This thread below also has the same issue and wasn't resolved:
         http://forums.adobe.com/thread/994281?start=0&tstart=0

    BEA Marcom wrote:
    One thing is, the only time this happens is when using our server. But this has not always been the case.
    I suspect it has to do with server issue.  Some have found they had a 10 sec or more delay and that if the server is pointed to Favorites Bridge wants to cache all the files on the server.  May be something like that.   

  • Resetting the Cache for a printer.

    Hi all.
    On the Spool Administration: Initial Screen screen, under the Devices\servers tab click the Output devices button.
    On the Spool Administration: List of Output Devices screen, double click on the printer you need to reset.
    On the Spool Administration: Output Device (Display) screen, click on the pencil picture-icon to switch from display mode to change mode.
    On the Administration: Output Device (Change) screen, on the top-most menu bar click Edit &#8594; Reactivate.
    It wont allowing me to reactivate,ie. not in change mode.
    How to get in change mode.
    Please help out.
    Regards!!
    Syed..

    Hi Syed,
    Seems like you don't have enough authorizations to do it... i just tried in my test system without problems....  use an account with SAP_ALL and try it again.
    Regards
    Juan

  • Is it possible to store an InputStream inside the cache for later use?

    Instead of "reading" from the text file from time to time, could I save the InputStream got from it so I could use it whenever needed?
    thanks

    Yes. First, read all your data and output it into a java.io.ByteArrayOutputStream.
    Once you're done, get the data from the ByteArrayOutputStream by calling toByteArray(), which'll return a byte[]. Store that.
    Afterwards, you can create a new InputStream by using: InputStream is = new ByteArrayInputStream( [your stored data] );.

  • Clear Cache for Certain Items on Tab Click

    I found this in the forms:
    If you want to clear the cache of the page submitted when the tab is clicked, that should be the job of that page. You can create an after-submit process (before computations and validations) with:
    apex_application.clear_page_cache(:APP_PAGE_ID);
    However, I need to clear certain items not everything on the page. I tried substituting apex_application.clear_item_cache(:APP_ITEM); but that doesn't work. What is the process that clears the apex_application item cache?

    Is the page you're clicking away from executing a submit when you click away? If so, I would try either of these in a page branch.
    Assume you are on page 1 and clicking to page 2. On Page 2, let's say you want to keep the cache on items P2_A, P2_B but clear the cache for P2_C.
    In your page branch (defined on page 1) that fires to take you to page 2, try either of these:
    Clear cache on page: 2
    Set these items: P2_A, P2_B
    With these values: &P2_A., &P2_B.
    That should clear all of 2 but reset A and B back to their current values from the cache before it's cleared.
    Or, try this:
    Clear cache on page: (don't put anything here)
    Set these items: P2_C
    With these values: (don't put anything here)
    That should (I think) only clear P2_C

Maybe you are looking for

  • Closed lid operations?

    I don't have a dock, but I do have an exterior display, a bluetooth mouse and keyboard. Is there a way to keep working with the lid closed? or do I have to keep it cracked so it doesn't sleep?

  • Battery drain question

    Hi All, I have a question about my battery drain. I just want to check and see if it is rather normal. Last evening I unplugged my iPad after its first full charge (wore the battery down to like 6% the previous night). Took it with me on a car ride,

  • Oracle Auditing:  capturing changed password terminal id

    ORACLE 10.2.0.4 I wrote the following code to display email notifications for any user account that had an invalid login attempt. select USERNAME, timestamp, terminal from dba_audit_session where returncode = 1017 and timestamp > sysdate - 62/(24*60)

  • It crashed hard and I can't restore it

    Hi! I tried to 'upgrade' in place with the installation disk. It says it can't because the installed version is newer than the disk. The disk is Windows 7 Pro, the box is Windows 7 Pro SP1. How can I recover this? Would an upgrade to Windows 10 Techn

  • My safari Crashes almost every time I download a site

    Hi, I have had my iphone for about 3 months now. the web browser only crashed about once a week. I was alright with that. Now it is increasing about every day. the browser now crashes every time I even load any page (including apple and google) It is