Cached Queries and Memory

I recently learned about the cachedWithin attribute of the
cfquery tag. I have found a few places I wish to use this
attribute.
I am looking at the Caching page of the ColdFusion
Administrator and see the "Maximum number of cached queries" is set
at 100.
My question is, Is there anyway for me to see which query
result sets are currently cached? I suspect we cycle through 100
cached queries fairly quickly. Probably on average it would take
less then 10 minutes. Therefore, even if I set the cachedWithin
attribute to the last hour unless the query is called in the last
10 minutes the cached results will not be used. I would like to
figure out when the cached result set is actually used.
In addition, I wonder if anyone has suggestions on how to
determine the ideal value of the "Maximum number of cached
queries". I realize the large the number the more memory which will
be required and also it depends on the size of the result sets. We
have 1024 mb of memory available. It appears our memory usage it
usually around 50 mb. My thought was to slowly increase the cache
size but if someone has a rule of thumb I would appreciate it.
I guess I will add yet another question. On the Java and JVW
Settings page there are 2 fields "Min JVM Heap Size" and "Max JVM
Heap Size". We have the max set at 1024 and the min is blank. I
think I read somewhere we should set the min and max to the same
number. Anyone have any comments?
Thanks, Franz

Regarding query caching, I have two suggestions.
1. Go with the default and cease all thought on the topic.
2. Any query that includes user input should not be
cached.

Similar Messages

  • SQL Result Cache  vs In-Memory Database Cache

    Hi,
    can anyone help me to understand the relations and differences between the 11 g new features of SQL Result Cache vs In-Memory Database Cache ?
    Thanks

    I highly recommend you read the 11g New Features Guide. Here is a sample from it:
    h4. 1.11.2.9 Query Result Cache
    A separate shared memory pool is now used for storing and retrieving
    cached results. Query retrieval from the query result cache is faster
    than rerunning the query. Frequently executed queries will see
    performance improvements when using the query result cache.
    The new query result cache enables explicit caching of results in
    database memory. Subsequent queries using the cached results will
    experience significant performance improvements.
    See Also:
    [Oracle Database Performance Tuning Guide|http://download.oracle.com/docs/cd/B28359_01/server.111/b28274/memory.htm#PFGRF10121] for details
    [Results Cache Concepts|http://download.oracle.com/docs/cd/B28359_01/server.111/b28274/memory.htm#PFGRF10121|Results Cache Concepts]
    HTH!

  • Do I have enough space and memory on my 6 year old Macintosh to play The Sims 3?

    I've heard that The Sims 3 requires more GB and a stronger, more upgraded RAM. Knowing my computers system memory shown above, if I install The Sims 3, will it run smoothly? If not, what should I do to clean up my computer in order for the game to play smoothly without big problems?
    Here is all the information on my macintosh computer:
    Model Name:          iMac
      Model Identifier:          iMac5,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2.16 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache:          4 MB
      Memory:          1 GB
      Bus Speed:          667 MHz
      Boot ROM Version:          IM51.0090.B03
      SMC Version (system):          1.9f4
      Serial Number (system):          QP64814UVUW
      Hardware UUID:          00000000-0000-1000-8000-0017F2C4139D

    Hi Phoebe!
    Installing more RAM is the easy part, that can only speed up her Macbook. As for upgrading the OS from Leopard would depend on the exact specifications of the Macbook and whether it can actually handle Snow Leopard 10.6, and this is independant of the RAM question.
    One thing to consider is: can the present Macbook do what she needs? If the answer is yes, then leave it as it is - except for more RAM. Is the hard drive big enough to contain whatever applications and files she needs?
    Start by checking if it can run Snow Leopard:
    Requirements for OS X 10.6 'Snow Leopard'
    http://support.apple.com/kb/SP575
    If yes, investigate whether the applications she currently has will run on Snow Leopard and, conversely, if any new applications she might need can run on Leopard or if they require OS 10.6 or above.
    OS 10.6 Snow Leopard is once again available from the Apple Store:
    http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    Once it is running Snow Leopard You can also purchase the code to use to download Lion from the same number (Lion requires an Intel-based Mac with a Core 2 Duo, i3, i5, i7 or Xeon processor and 2GB of RAM, running the latest version of Snow Leopard), or you can purchase Mountain Lion from the App Store - if you can run that:
    http://www.apple.com/osx/specs/

  • Please recommend solutions for  Cache Connect and ?

    ---> Solution I
    2 servers create Cache Connect to RDBMS
    ---> Solution II
    1 server create Cache Connect to RDBMS and create active standby pair with another server

    Hi,
    If you only need READONLY caching in TimesTen and all updates will be made in Oracle then you have two main options:
    Multiple READONLY Caches
    For this you have one or more separate TimesTen caches each with a READONLY cache group defined against the oracle DBMS. Each cache can cache different tables/data or they can can cache the same tables/data as required.
    This architecture is very flexible (adding or removing TimesTen servers is very simple) and very scalable. It also provides very good HA; if one cache is down applications can just access a different cache.
    However, due to the asynchronous, time based nature of the refresh from Oracle to Timesten at any moment in times the data in all the caches may not be 100% consistent with each other or Oracle.
    By this I mean the following:
    - Assume that you have 2 (or more) READONLY caches caching the same data from Oracle, with an AUTOREFRESH interval of T1
    - At some time, T2, you update, in Oracle, one of the rows cached by the caches.
    - At some later time, T3, you query the updated row via both caches
    If (T3 - T2) < T1 then the values returned by your query may differ between the caches (depending on where exactly they are in the autorefresh interval when the update is done).
    Active/Standby pair using 2-SAFE replication with READONLY cache group and optional read-only subscribers
    With this architecture you define a TimesTen Active/Standby replicated pair using 2-safe replication and containing the READONLY cache group. 'Scale out' is accomplished in one of three ways:
    1. Adding further A/S pairs with a READONLY cache group
    2. Adding read-only subscriber datastores to the original A/S pair
    3. A mixture of (1) and (2)
    The main advantages of this architecture are as follows:
    1. When 2-Safe is used within the A/S pair, queries to either cache will always return consistent results (i.e. the consistency issue that I described for the first scenario does not exist in this configuration). However, threr can still be inconsitencies in results between the A/S pair and any readonly subscribers (since the replication to them is asynchronous) but given the high performance of TimesTen replication the latency between a change appearing at the A/S pair and the readonly subscribers will typically be a few ms rather than potentially several seconds for the multiple-cache scenario.
    2. The loading on the central Oracle DBMS arising from AuTOREFRESH processing is reduced compared to the multiple-cache scenario. The difference in loading between this solution and the multiple cache solution will be larger as more TT servers are deployed.
    It should be noted that the operational management of this solution is a little more complex than for the first scenario since the A/S pair must be monitored and a 'failover' trigerred if there is some fauilure within the pair.
    Hope that helps a little.
    Chris

  • Resource estimation/Sizing (i.e CPU and Memory) for Oracle database servers

    Hi,
    I have came across one of the requirement of Oracle database server sizing in terms of CPU and Memory requirement. Has anybody metalink notes or white paper to have basic estimation or calculation for resources (i.e CPU and RAM) on based of database size, number of concurrent connections/sessions and/or number of transactions.
    I have searched lot on metalink but failed to have such, will be great help if anybody has idea on this. I'm damn sure it has to be, because to start with implementation of IT infrastructure one has to do estimation of resources aligned with IT budget.
    Thanks in advance.
    Mehul.

    You could start the other way around, if you already have a server is it sufficient for the database you want to run on it? Is there sufficient memory? Is it solely a database server (not shared)? How fast are the disks - SAN/RAID/local disk? Does it have the networking capacity (100mbps, gigabit)? How many CPUs, will there be intensive SQL? How does Oracle licensing fit into it? What type of application that will run on the database - OLTP or OLAP?
    If you don't know if there is sufficient memory/CPU then profile the application based on what everyone expects, again, start with OLTP or OLAP and work your way down to the types of queries/jobs that will be run, number of concurrent users and what performance you expect/require. For an OLAP application you may want the fastest disks possible, multiple CPUs and a large SGA and PGA (2-4GB PGA?), pay a little extra for parallel server and partitioning in license fees.
    This is just the start of an investigation, then you can work out what fits into your budget.
    Edited by: Stellios on Sep 26, 2008 4:53 PM

  • How to find out CPU and memory usage for an instance?

    Hi DBA Gurus,
    How to find out CPU usage and memory usage for an instance?
    Any information is appreciated!
    Thank you!
    Robert

    you can calculate cpu usage by adding fallowing three factors which you can get from v$sysstat
    1. Parse CPU time : This represents the percentage of CPU time spent parsing SQL statements. Parse time CPU can be a strong indication that an application has not been well tuned. High parse time CPU usually indicates that the application may be spending too much time opening and closing cursors or is not using bind variables.
    2. Recursive CPU time : Sometimes, to execute a SQL statement issued by a user, the Oracle Server must issue additional statements. Such statements are called recursive calls or recursive SQL statements. For example, if you insert a row into a table that does not have enough space to hold that row, the Oracle Server makes recursive calls to allocate the space dynamically if dictionary managed tablespaces are being used.
    Recursive calls are also generated due to the inavailability of dictionary info in the dictionary cache, firing of database triggers, execution of DDL, execution of SQL within PL/SQL blocks, functions or stored procedures and enforcement of referential integrity constraints
    3. Other CPU time : This represents the percentage of time spent looking for buffers, fetching rows or index keys, etc. Generally, \"Other\" CPU should represent the highest percentage of CPU time out of the total CPU time used.
    total memory used you can calculate adding
    total_agrigate_area+sga
    memory usage on os level you can know by fallowing commands
    vmstat 5 20 depending upon os

  • Please any one tell me what is cache purging and seeding

    hi all
    what is cache purging and what is cache seeding i am getting full confuse
    using obits we can seed the cache ,means we are going to store the report result in cache memory or what
    please any one make me bit clear on purging and seeding
    thanks

    using obits we can seed the cache ,means we are going to store the report result in cache memory or what"Obits"?
    Are you sure you've posted to the correct forum? (You've never posted here before.)

  • OLAP-Cache filling and report retrieval from cache

    Dear All,
    I am expecting good information from you guys in regards to process of OLAP-Cache filling and retrieval process.
    Let's say, we have few selectios as below to fill cache.
    selection 1:
    Calmonth : 201006
    Plant : A1 to A3.
    OLAP cache is filled with the above selection1.
    Selection 2:
    Calmonth : 201006
    Plant : A4 to A5
    OLAP cache is filled with the above selection2.
    When I am exeuting a query with the selections as below, how the data will be retrived? Is it from Cache memory or DB?
    Selection: Calmonth 201006 and Plant A3 to A4.
    Would be really Appreciate If I get some valuable information.
    Regards,
    KS

    Thanks for valuable information.
    I have used the mode as "Persistent Cache per Application Server" and " Transparent Table (BLOB)"
    What I am realizing here is, If the query selection is different from the cache selection, it is reading it from DB though the requested data is availabe in cache as per the below eg.
    Cache Memory:
    Selection1: Calmonth : 201006 and Plant : A1 to A2
    Selection2: Calmonth : 201006 and Plant : A3 to A4.
    Query Selection:
    Calmonth : 201006 and Plant : A2 to A3.
    Regards,
    Kanagaraj.S

  • Cache destroy and removing objects based on filter

    Hi,
    I have lined up a few questions to understand the ways we can destroy/remove cache entries or cache itself on a collective basis and not just the cache.remove(key).
    1. How do I remove a group of keys from the cache? Say either I know the keySet or a keySet obtained based on a filter. I can see the Java doc says namedCache also implements queryMap and that supports keySet(Filter) but unlike Map.keySet(), the set returned by this method may not be backed by the map, so changed to the set may not be reflected in the map.
    http://download.oracle.com/otn_hosted_doc/coherence/353/com/tangosol/util/QueryMap.html#keySet(com.tangosol.util.Filter)
    Now that also means cache.keySet().removeAll() may not work. Can we confirm that, as another article http://wiki.tangosol.com/display/COH35UG/Data+Affinity shows an example way to use entryset or keyset and shows this line:
    cacheLineItems.keySet().removeAll(setLineItemKeys).
    2. Is namedcache.destroy() a blocking or non-blocking? Coz in one of our tests, we created a for loop of the following code:
         a. create cache.
         b. use cache.
         c. destroy cache.
    And we expected at any point of time to have only one cache to be active on the cluster, however with the 500M as the high unit, we never saw evictions and indeed saw out of memory error. We had like 100 iterations. We expected destroy cache to basically delete the cache, thereby freeing the memory on the JVM. We only had one proxy and one storage in our test.
    3. Is namedcache.clear() a blocking or non-blocking call? Although this does not necessarily removes the cache, it only unmaps all the entries in the cache.

    Hi,
    You can remove multiple cache entries based on a filter like this...
    Filter filter = ...
    cache.invokeAll(filter, new ConditionalRemove(AlwaysFilter.INSTANCE));...or on a collection of keys like this...
    Collection keys = ...
    cache.invokeAll(keys, new ConditionalRemove(AlwaysFilter.INSTANCE));Regarding non-blocking calls, presumably for clear() I would think that the call will not return until the cache is cleared (i.e. empty) otherwise you would get all sorts of potential problems. For cache.destroy() I am not sure what state the cache will be in when the call returns. I suspect if you call this from a client it only destroys the cache locally on that client and not throughout the rest of the cluste though - but I am sure someone could confirm this.
    JK

  • Cache purge and report refresh.

    Hi
    I have a question when i am trying to do the below.
    I am purging the cache and at same time doing the report refresh. Will my report query hit the database or Cache.
    Please suggest.
    Thanks.

    Hi Veer,
    My requirment is not to get the query hit the database.
    I am doing cache purge and report refresh from DAC.
    Cache purge is purging all the queries of yesterdays. And going for report refresh to see todays fresh data after ETL load.
    Since these two tasks(purge,refresh) happen in parallel in DAC. I want to confirm whether fresh data is getting into reports are stale data is populating again.
    So i asked when purge and refresh happen parellely query is hitting cache or database?
    --Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • BW cache settings and WebI

    Hello,
    we're trying to tune the BW cache for WebI queries, we'd like to change the default cache settings for a number of queries, including ones used for BO universes.
    I'd like to know if this changes will be picked and used by WebI or if it is not sensitive to such changes (Cache Mode and Persistence Mode).
    Thanks in advance for your help.

    Hello Pablo,
    I haven't tried yet but the OLAP cache should be used by WebI when it accesses the queries. You can ensure it does in transaction RSRCACHE by looking at the last access of a cached query. Could also look at the BI stats (if you have installed them and turned then on of course).
    Regarding the cache settings, I would personally recommend using the persistent cache (across App Servers if you have more than one app server) into a Cluster table (or Transparent table if the data set is quite large). Can find more details here: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d9/31363dc992752de10000000a114084/frameset.htm
    You could also look into MDX cache instead of OLAP cache, but I haven't played with it yet so I'm not sure it would help with WebI. Anyone else did?
    Hope it helps...

  • Accidentally changed cache location and the app crashes and never opens

    I recently changed the cache location to an external usb and whenever I try to open the app t crashes and gives me an error pop up. I cant change the cache location back to default since I can never open the app, feels like a catch22 situation. A simple reinstallation didn't seem to work. Any suggestions?

    Hello: Wait you changed the cache location folder for the spotify desktop spotify app, or changed the location for a system wide cache location? If you did a system wide cache move your probable going to run into all kinds of isssues. Would not it be a smart idea to plug in the USB device that was used in the change of cache location, and then try to launch spotify and see if it loads correct and finds the hacked moved new cache location? What about trying to retrace your steps in how you changed the default cache location, and just reverse the process to move the cache location back to it's default location, using the terminal system folder linking process, and then try to see if spotify will launch properly? I mean your on a Mac is your HD that small? I thought that was one of Apples selling points, larger memory run abilities, and larger HD space for their systems? Does not Mac have something called Time Machine, have your tried that route to fix the lost Cache location folder? 

  • Slow slow slow...even with low CPU and memory usage.

    Sometimes my Mac gets really slow, especially with applications, and even more especially when opening applications. What I don't understand is that when I check Activity Monitor during slow times, it shows plenty of CPU and memory still free, far from being maxed out. I try to keep a good chunk of my hard drive available for virtual memory too, so I'm unsure where its getting bogged down.
    Any ideas?

    You may just need a little maintenance:
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility. For situations DU cannot handle the best third-party utilities are: Disk Warrior; DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. TechTool Pro provides additional repair options including file repair and recovery, system diagnostics, and disk defragmentation. TechTool Pro 4.5.1 or higher are Intel Mac compatible; Drive Genius is similar to TechTool Pro in terms of the various repair services provided. Versions 1.5.1 or later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep. Dependence upon third-party utilities to run the periodic maintenance scripts had been significantly reduced in Tiger and Leopard. These utilities have limited or no functionality with Snow Leopard and should not be installed.
    OS X automatically defrags files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old logfiles and archives, clearing caches, etc. Other utilities are also available such as Onyx, Leopard or Snow Leopard Cache Cleaner, CockTail, and Xupport, for example.
    For emergency repairs install the freeware utility Applejack (not compatible with Snow Leopard.) If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the commandline. Note that AppleJack 1.5 is required for Leopard. AppleJack is not compatible with Snow Leopard.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Synk (Backup, Standard, or Pro)
    4. Deja Vu (Shareware)
    5. Carbon Copy Cloner (Donationware)
    6. SuperDuper! (Commercial)
    7. Intego Personal Backup (Commercial)
    8. Data Backup (Commercial)
    9. SilverKeeper 2.0 (Freeware)
    10. MimMac (Commercial)
    11. Tri-Backup (Commercial)
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at www.versiontracker.com and www.macupdate.com.

  • Get CPU and memory usage

    Hi!
    I would like to know if there is any way of getting system CPU and memory usage using Java code.

    I want to get the system CPU and memory usage using the performance monitor dll, the perfctrs.dll, but access this data using Java language.Then you should create wrapper dll between your java code and perfctrs.dll and convert data from format of dll to format of your java code.
    So, that is next question - how to create wrapper dll, how to deal with or how perfctrs.dll works?

  • What is the difference between Azure RemoteApp Basic vs Standard Plans in terms of compute cores and memory?

    So our customer has asked us to compare compare Amazon Workspace and Azure RemoteApp offerings for them to choose from. While looking at Amazon Workspace, it clealy defines bundles with specific CPU cores, memory and user storage. However, Azure RemoteApp
    only specifies user storage and vaguely compares its basic vs. standard plans in terms of "task worker" vs. "information worker"
    I tried looking up its documentation but couldn't find specific CPU cores that are dedicated per user in basic vs. standard plans. I have following questions:
    Can anyone point me in the right direction or help understand how many CPU cores and memory are dedicated (or shared) per user in each plan?
    Our customer would most likely need a "custom" image for their custom apps. Is it possible for us to choose specific CPU cores and memory for the users to be able to run their apps in azure remoteapp?
    In case i am misunderstanding the basic difference between AWS workspace and Azure RemoteApp, i'd appreciate some help in understanding it as well.
    Thanks!

    Hi,
    With Azure RemoteApp users see just the applications themselves, and the applications appear to be running on their local machine similar to other programs.  With Workspaces users connect to a full desktop and launch applications within that.
    1. Azure RemoteApp currently uses size A3 Virtual Machines, which have 4 vCPUs and 7GB RAM.  Under Basic each VM can have a maximum of 16 users using it whereas under Standard each VM is limited to 10 users.  The amount of CPU available
    to a user depends on what the current demands are on the CPU at that moment from other users and system processes that may be on the server.
    For example, say a user is logged on to a VM with 3 other users and the other users are idle (not consuming any CPU).  At that moment the user could use all 4 vCPUs if a program they are running needed to.  If a few moments later
    the other 3 users all needed lots of CPU as well, then the first user would only have approximately 1 vCPU for their use.  The process is dynamic and seeks to give each user their fair share of available CPU when there are multiple users demanding CPU.
    Under the Standard plan a user will receive approximately a minimum of .4 vCPU assuming that the VM has the maximum number of users logged on and that all users are using as much CPU as possible at a given moment.  Under the Basic plan the approximate
    minimum would be .25 vCPU.
    2. You cannot choose the specific number of cores and memory.  What you can do is choose the Azure RemoteApp billing plan, which affects the user density of each VM as described above.  If you need a lower density than Standard you
    may contact support.
    -TP

Maybe you are looking for

  • Problem with Oracle 8.1.7 and JDBC

    Im connecting to Oracle 8.1.7 (running on a MS Windows Server) from a JBoss 2.4.10, running on a Linux box. The code that generates the problem looks like this : String query = "SELECT some_fields FROM some_table WHERE id = ?"; Prepared Statement ps

  • Sync errors with Windows 8 phones.

    Has anyone been having issues with syncing Windows 8 devices? We have about 50 HTC 8X phones and around 10% of them are having sporadic sync errors. We also have some of the Nokia WP8 devices that exhibit the same issues. While the WP8 device is prob

  • Lost Me as a Customer

    I know that no one who actually makes these decisions will probably read this, and that speaks to the heart of the entire issue that's driven me away from Verizon. To put it simply, you don't care about your customers. Please understand, I have shown

  • Using Functions in DocProperties

    Hi! Just one quick question: Is it possible to use functions (or other DocProperties) in DocProperties and how? I just found the possibility to define TEXT,DATE,INT or BOOLEAN but nothing else. Thanks in advance for replies bastian

  • GIF and FRAME Issues

    Hi, I'm currently using Safari 4 and ever since I upgraded I noticed that any page with a decent sized or a few smaller GIF animations brings Safari to a dead stop. I mean I can wait up to 30 seconds while it sits there and loads the stupid animation