Tuning the memory structure

Hi folks,
I have lots of misses in library cache. Can someone tell me how I can identify or fix the problem?
SQL> SELECT Sum(pins) AS "Executions", Sum(reloads) AS "Cache Misses while Executing", Round(Sum(reloads) / Sum(pins) * 100, 2)
AS "Misses Ratio, %" FROM v$librarycache;
Executions Cache Misses while Executing Misses Ratio, %
1389008 17415 1.25
I used to run the above sql with the following result:
Executions Cache Misses while Executing Misses Ratio, %
26558 315 1.19
Thanks,
Amir

Hello Amir,
The stats that you have given in the thread are not so bad... that you need to worry. I would recommend you not to change much if your library cache hit ratio is around 99%. By adding more space to library cache you can increase the hit ratio and reduce the misses on library cache, but having too big library cache is also not recommended
To identify the problem I would problem that you use statspack report and find out the SQL that has low hit ratio. You might find out that application has a un-named block which is used repetitively or the similar type of SQL implemented in different ways e.g. not using bind variables
Using the statspack report you would be more equiped to reduce the misses or increase the hit ratio
I have personally learnt not to bother much about hit ratios or misses. They should be just okay, more important are blocking events, again statspack report is good one to show such database activities
Regards
Sudhanshu
Message was edited by:
Sudhanshu

Similar Messages

  • Tuning the 975x memory: surprising results

    Since I begin to overclock my system, I leave the memory latencies relaxed at 5-5-5-15, because I didn't wanted memory problems. But some days ago I tried some new setting:
    Original settings:  333 x 2 x 1.25 (835 Mhz)  -  5-5-5-15
    New settings: 333 x 2 x 1 (666 Mhz)  -  4-4-4-12
    I knew that, at the same 5-5-5-15 latencies the difference in bandwidth between 666 and 835 mhz were about 5%, so I was very surprised when with the new settings the memory bandwidth improved, despite the lower frecuency. Then I tried (obviously) this new settings:
    New settings 2: 333 x 2 x 1.25 (835 Mhz)  -  4-4-4-12
    And the surprise was even bigger: it was a little better than the original settings, but the overall perfomance was lower than at 666 mhz with 4-4-4-12.
    I didn't do an extensive perfomance testing, but I've tried SuperPI and Sisoft Sandra's processor benchmark, and the numbers were about the same with all configurations, but the memory bandwidth, according Sandra, was better with 666 mhz - 4-4-4-12, and about 6500 MB (with 835 mhz - 5-5-5-15 was 6300 MB). I've tried many times and also tried Everest test, and the pattern was the same.
    Anyone has a theory to explain this ??
    Note: the maximun memory bandwidth I've got was 6700 (with bios 7.5 or newer), when my system had only 2 GB (5-5-5-15). When I've installed the other 2 GB, then dropped to 6300, so I regained some bandwidth now...
    Note 2: 4-4-4-12 are latencies supported by the memory

    Quote from: Heidi on 21-December-07, 12:02:33
    Last report on this is...all problems solved...still running as reported, 9*333 with 1.25 RAM multi @ standard voltage with no locks or any other BS! Rock stable, temperatures on idle (30 degrees ambient) 42-38-36-40, max out with all 4 core employed, 57-49-47-52, run all night long with no one BSOD or anything! Tested with Vista X86, Vista X64, Ubuntu 7.10 in both flavors, Sabayon 64...even I give it a go under OS2 Warp 5...very surprising result! Tested with various benches, but I'll just point out my Everest which claims that this is nearly the fastest of all on their list! I am very pleased with final findings and all it's missing would be employing Core center where I could chose few profiles accordingly! Then this machine would be surprise of all time! If this works out as promised there would be no end of my pleasure using it! Excellent finale! Advice to anyone, if doesn't OC, check the CPU as having Core2 doesn't mean it will reach sky high! I had lot's of issues and nearly all of them was solved simply by replacing the Allendale in one shot! Great board, as I said once earlier, and pity thee is EOL on this mobo!
    Thanks MSI!
    p.s.
    does anyone knows of any utility which can change clock and keep few profiles in it...thanks again!
    I think you should re-apply the thermal paste on your processor, because the temperature difference between cores is too great. Anyway they are pretty low, what cpu cooler are you using ??

  • Tuning Memory Structures

    Guys,
    My application runs on oracle Database, in order to improve the performance by reducing I/0 we haev spread
    the datafiles and redolog files across 4 different drives.
    Now when I try to tune application based on increasing the SGA, buffer cache (to improve buffer cache size hit
    ratio), shared pool does it use up the space on the default drive where it is installed which is C drive
    For example Oracle is installed on C
    I want to increase the SGA size from 600MB to 1GB so does it use the space on the C drive to incorporate the change
    Thanks

    SGA does not map to a file on a harddisk, but is allocated in the memory (should be RAM) of you your computer. It may indirectly you diskspace, if you don't have enough physical memory and paging happens. It makes no sense to increase your SGA, if it does not fit into pyhsical memory.

  • Fine Tuning The Enterprise Portal

    Hello world
    Currently i am searching about the best ways to fine tune our E Portal the below Info are the results of my search so far.
    Hope They Help You and please share any knowledge you have around this area.
    Tuning The E-Portal
    1-Tunable Parameters of SAP Web Application Server (JAVA)
    :Reducing the Network Traffic -From the Config Tool window,
    select: <instance> + services + http, and change the
    value of the following properties:
    -NeverCompressed: delete this values --> *.css, *.pdf, *.js, image,
    application/pdf, text/JavaScript
    -CacheControl: 604800
    Servlet_js p
    -EnableChunkedResponse: True
    -MinimumGZipLength:  1024
    2-SAP Web Application Server (Java) Monitoring Server
    Adjusting Log Severity Levels
    - re adjust the severty from ALL to ERROR
    3-Disabling the Distributed Statistics Service
    1.Run\usr\sap\<system_number>\JC<instance_id>\j2ee\configtool
    \offlinecfgeditor.bat
    2. Select Configurations -> cluster_data -> server -> cfg -> services->
    Propertysheet dsr-runtime -> <edit-button> -> startup-mode ->
    3. Select Custom and enter manual, and then select Apply custom .
    4. Restart the cluster.
    4- PRT Configuration
    \usr\sap\<system_id>\JC<instance_number>\j2ee\cluster\server<number>\apps\sap.com\irj
    \servlet_jsp\irj\root\WEB-INF\portal\system\properties
    SET
    -async.response.pool.size=100
    -PRT monitor  monitor.off=false
    -Log on to the portal as an administrator, and navigate to:
    System Administration -> Monitoring -> Portal
    -> Components Overview System Administration ->Monitoring ?? Portal ?? Threads Overview
      to help you identify bottlenecks in performance.
    5-Tuning the Application Server
    - Configuring JVM parameters on AS Java
    Set <-XX:SoftRefLRUPolicyMSPerMB=1000> (from default 1)
    - Avoiding session leaks - Tracing Single User Sessions
    - Tuning HTTP Provider Service
    -Enabling production mode
    6-Java Memory Analyzer Tool
    -Install Java Memory Analyzer Tool MAT
    - run performance reports using Solution Manger  // this only work if you have running solution manger on your system
    If You Have Any Tips Please Share
    Regards,
    Ahmed Salam

    Dear Ashish,
    From the Config Tool window --> Servlet_js p Tap
    -EnableChunkedResponse: True
    -MinimumGZipLength:  1024
    Read carfuly and you will find the answers
    Hope it helped
    Regards,
    Ahmed Salam.

  • Does anyone know the pricing structure for Digital Marketing Suite?

    Does anyone know the pricing structure for Digital Marketing Suite? I asked for info but no one ever got back to me. I don't want to waste anyones time if it's too expensive so I'd like to know up front what the fees/package rates are.
    Thanks.
    Peter Marino
    Owner of an
    SEO Comapny in NYC

    This is the top story at this writing at AppleInsider:
    Like the updated mid-2014 13-inch MacBook Pro with Retina display, Apple's latest 15-inch notebook brings slightly speedier Intel processors. But with memory, graphics and design all carried over from last year, the most substantial change is a $100 price cut.
    http://appleinsider.com/articles/14/09/07/review-apples-mid-2014-15-inch-macbook -pro-with-retina-display

  • How to modify the memory quota of jvm???

    hello
    how can i modify the memory size of jvm within the weblogic platform?

    The following link http://e-docs.bea.com/wls/docs81/perform/JVMTuning.html#1109778 gives all the information required for setting JVM heap size. This is a nice link for tuning up your JVM settings too.
    Hope this helps.
    -Vishwas

  • Changing the XML Structure in "Submit as XML"

    Dear all,
    We have two PDF Templates which are submitted via a WebService using Submit as XML. For both templates we need the same structured XML output.
    Form 1 has the hierarchy like this (all subforms):
    Company
    Subsdiary
    Responsibles
    Footer
    so the xml looks like
    <creditrequest>
    <company>...</company>
    <subsdiary>...</subsdiary>
    <responsible>...</responsible>
    <footer>...</footer>
    </creditrequest>
    Form 2 has the hiearchy like this (all subforms):
    Responsibles
    Subsidiary
    Company
    Footer
    and the xml looks like
    <creditrequest>
    <responsible>...</responsible>
    <subsdiary>...</subsdiary>
    <company>...</company>
    <footer>...</footer>
    </creditrequest>
    So my question is how can influence the XML output order without changing the PDF hiearchy. This way I can change the XML output for Form 1 or Form 2 and both files would have the same XML structure to submit.
    I have checked the presubmit event and the javascript API to change XML string programmaticly but I couldn't find any possiblity to read/write the XML to submit.
    Thanks,
    Koray

    You can use JDOM and DOM. They are classes that load the XML File on memory and then you can modify it. I strongly recommend JDOM.

  • Calculating the memory and performance of a oracle query

    Hi,
    I am now developing application in java with oracle as a back-end. In my application i require lot of queries to be executed. Hence, the system is getting is slow due to queries.
    So, i planned to develop one Stand-alone application in java, that should show the statistics like, memory and performance. for ex:- if i enter one SQL query in the text box, my standalone application should display, the processing time it requires to fetch the values and the memory is used for that query.
    Can anybody give ideas, suggestion, etc etc...
    Thanks in Advance
    Regards,
    Rajkumar

    This is now Oracle question, not JDBC question. :)
    Followings are sample for explain plan/autotrace/SQL*Trace.
    (You really need to read stuffs like Oracle SQL Tuning books...)
    SQL> create table a as select object_id, object_name from all_objects
    2 where rownum <= 100;
    Table created.
    SQL> create index a_idx on a(object_id);
    Index created.
    SQL> exec dbms_stats.gather_table_stats(user,'A');
    SQL>  explain plan for select from a where object_id = 1;*
    Explained.
    SQL> select from table(dbms_xplan.display());*
    PLAN_TABLE_OUTPUT
    Plan hash value: 3632291705
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    PLAN_TABLE_OUTPUT
    | 0 | SELECT STATEMENT | | 1 | 11 | 2 (0)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| A | 1 | 11 | 2 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | A_IDX | 1 | | 1 (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
    2 - access("OBJECT_ID"=1)
    SQL> set autot on
    SQL> select * from a where object_id = 1;
    no rows selected
    Execution Plan
    Plan hash value: 3632291705
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 11 | 2 (0)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| A | 1 | 11 | 2 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | A_IDX | 1 | | 1 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - access("OBJECT_ID"=1)
    Statistics
    1 recursive calls
    0 db block gets
    1 consistent gets
    0 physical reads
    0 redo size
    395 bytes sent via SQL*Net to client
    481 bytes received via SQL*Net from client
    1 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed
    SQL> exec dbms_monitor.session_trace_enable(null,null,true,true);
    -- SQL> alter session set events '10046 trace name context forever, level 12';
    -- SQL> alter session set sql_trace = true;
    PL/SQL procedure successfully completed.
    SQL> select * from a where object_id = 1;
    no rows selected
    * SQL> exec dbms_monitor.session_trace_disable(null, null);*
    -- SQL> alter session set events '10046 trace name context off';
    -- SQL> alter session set sql_trace = false;
    PL/SQL procedure successfully completed.
    SQL> show parameter user_dump_dest
    */home/oracle/admin/WASDB/udump*
    SQL>host
    JOSS:oracle:/home/oracle:!> cd /home/oracle/admin/WASDB/udump
    JOSS:oracle:/home/oracle/admin/WASDB/udump:!> ls -lrt
    -rw-r----- 1 oracle dba 2481 Oct 11 16:38 wasdb_ora_21745.trc
    JOSS:oracle:/home/oracle/admin/WASDB/udump:!> tkprof wasdb_ora_21745.trc trc.out
    TKPROF: Release 10.2.0.3.0 - Production on Thu Oct 11 16:40:44 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    JOSS:oracle:/home/oracle/admin/WASDB/udump:!> vi trc.out
    select *
    from
    a where object_id = 1
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 1 0 0
    total 3 0.00 0.00 0 1 0 0
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 55
    Rows Row Source Operation
    0 TABLE ACCESS BY INDEX ROWID A (cr=1 pr=0 pw=0 time=45 us)
    0 INDEX RANGE SCAN A_IDX (cr=1 pr=0 pw=0 time=39 us)(object id 65441)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 25.01 25.01
    Hope this helps

  • How to optimize the memory for a large labview array?

    I am running LabView on Windows XP with 4 Gb of RAM. The array is 51X256X256 complex numbers, but I want 300x256x256. The program runs out of memory when I use more than 51-53 arrays of 256X256. I do not know how to use the in place element structure to modify the vi below. The unbundled/ bundle structures do not present symmetry. Anyone can help me with this?  Thanks!
    Mariana
    Attachments:
    array3Dc.JPG ‏22 KB
    array3Dc_front.JPG ‏58 KB

    Norbert,
      The full data3Dc array takes about 15.5 MB and the data3Dc comp.vi takes 31 MB. The empty data3Dc comp.vi array takes only 18.2 kB. This array is a variable that modifies at each scanned wavelength. I have a scanning wavelengths software package. For one wavelength I record a hologram followed by the reconstruction of the object field (1x256x256). 3D optical fields are added all together to create a big 3D optical field (Nx256x256). The code data3Dc comp_1.vi is not the only one in the memory. This VI is a subvi for other codes. A few other examples are FFT, IFFT, filtering, phase matching, cross-section, calibration….I did not care about memory optimization until now. So, I want to scan more than 50 wavelengths. By now (N=50) I have to restart the LabView after each scanning, do the reconstruction of the fields, start the LabView again to see the results. I think the problem is caused by this VI that is a subvi for other codes. I already extended the memory to 3GB in boot.ini, but the thing is that I want also a small scanning time. It doesn’t work. Extending the memory to 3GB makes the OS slower than before. My question is how to modify this array (data3Dc) or the VI (data3Dc comp.vi) to access lesser memory. I have tried to attach the full VI but it tells me that it is too big. I attached the empty one.
      Thanks,
    Mariana
    Attachments:
    data3Dc comp.vi ‏19 KB

  • How to liberate the memory fast !!!!!!!!!!!!!!!!!!!!!!

    Hello, and thanks for read this lines.
    Well my problem is that my objects are or to null or I reuse more of them, but when I'm testing my midlet on my device (nokia 7650), the heap memory along the time is big.
    And when i`m using my app (5 minutes) it stops.
    How can I solve this problem??
    I must to storage the objects that I reuse on rms????
    Can I force to liberate the memory??
    My objects have images and if the user dont call another method the image is the same, but if the user change the screen, I reuse the object (previously I put the image to null) and load another image.
    The problem is that when I'm using this (5 minutes) the images aren't liberate of the heap memory and (pooofff), it stops.
    Thanks for all.
    Regards

    some times this happens with "while(ok){}" loop structures where the image is being called/loaded and the code just goes crazy in the wtk 2.0 memory monitor after a while and memory runs out. This is becuase the "ok" conditon is never met to solve this use a "switch" or an "if else" statement.
    This happened when I used too many images in my menus. The examples of the menu implementations are available in the j2me tech tips section of this site.
    I hope this helps. Some more details of the problem and the code would help however.

  • Message: "The database structure has been modified" every time I log to SAP

    Hello,
    "The database structure has been modified. In order to resume this process, all open windows will be closed". Every time I log to one of my companies in SAP Business One this message appears.
    I haven't installed any new addons and made no changes in database structure (and any other user hasn't done any changes), but this message appears always when I log to company for the first time (when I try to log on another user or log to another company there is no message). Can anyone help me with this problem?
    Best regards
    Ela Świderska

    Hi Ela Świderska,
    You may check this thread first:
    UDFs disappeared
    Thanks,
    Gordon

  • Receive an Application Error (The memory could not be "read") when opening

    After I install Itunes the program works ok until I close it and try to reopen. When I do this I receive an Application Error that says:
    The instruction at "0x6686f183" referenced memory at "0x0fccc094". The memory could not be "read".
    Click OK to terminate the program
    Click CANCEL to debug the program
    Debugging does not work so the only solution is to uninstall Itunes and then reinstall. That again only works for one use of the program. As soon as I close it and re-open, I get the same error. Please HELP. I cannot waste any more time uninstalling and reinstalling.
    Sony   Windows XP  

    Try this: Turn off automatic Microsoft/Windows updates and reboot your computer. I saw this a couple of weeks ago on the forum.

  • What are the logical structure and physical structure in oracle

    what are the logical structure and physical structure in oracle and how can allocate a DB block size as default size is 8192?

    From the Concepts Guide
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/toc.htm
    The physical structures are:
    Datafiles
    Control Files
    Redo Log Files
    Archive Log Files
    Parameter Files
    Alert and Trace Log Files
    Backup Files
    The Logical Structures are:
    Tablespaces
    Oracle Data Blocks
    Extents
    Segments

  • The Database Structure Has Been Modified

    Good Day!
    Just want to ask what is the probable reason why upon using SAP, there is a system message " The database structure has been modified. In order to resume the process, all open windows will be closed. Continue?"  Even upon user log in , this system message appear affecting other user's data entry. Upon adding of the document (of other users when this system message appear), all the UDFs are missing, causing their data entry to be inaccurate since you cannot update row level once the document has been added.
    Hope to hear from you soon.
    Thanks
    Sandra

    Hello ...
    This error message appears every time that has altered the structure of the database, either by creating a new field of user or user table, so it is inevitable that appear the same.
    Now, it is necessary as a measure, to control who has access to make these changes, and that they are made without users.
    I hope it will help
    Best regards,

  • The database structure has been modified - how to check if it happend?

    Hello,
    I have a question. How to check if the database structure has been modified? I know that there is shown a messagebox after creating table and adding some fields, but sometimes this message appear after some seconds. The problem is that I want to create table and UDO for this table, and until database structure is not modified I got an error message. If I wait and DB strucuture modifies then UDO is creating correctly.
    My question is - does anyone know how to check if database structure has been modified?
    Regards,
    Hmg

    Hi Szymon,
    I guess you are stuck up in a kinda scenario, where in, you will be populating a form with values, before the structure modifies, if this is going to be your problem, I can help you out with a work around.
    In the beginning of the process, before the creation of the UDO or tables, set a boolean value to false, and once all UDO's and Tables are created, only then, should you make it true and only after the boolean becomes true, you should proceed with populating the values from the screen.
    I really ament sure what your problem is, but one of my guys faced this problem, I then, thought even you might have a similar problem.
    Satish.

Maybe you are looking for

  • Parameter validation failed. It is not possible to provide valid values for all parameters

    I'm trying to test passing in parameter values from the URL.    I have RS 2008 .   I created an ultrasimple report based on a stored procedure output.  There is no validation, No available values, No default values.   I'm trying to run the report lik

  • Naming photo files

    how can i assign a name to a individual photos within a selected group of files in a folder?

  • T60p Black screen on startup

    Hello, I was updating the driver for the video card (ATI Mobility FireGL V5250/Windows XP) when the screen went black and the computer froze. I had to restart but when I turned the computer on the screen went black and I heard 3 beeps (long - short -

  • Database Adapter Guide?

    I was looking though the Database Adapter samples and came across this statement in the readme file. Ways to avoid this problem are known as 'Polling Strategies', see the Database Adapter guide 'Choosing a Polling Strategy' to learn more. Where is th

  • Facebook won't stop syncing

    Hi I recently installed iLife 11 which seems to have better facebook intergration Only problem is, it will never stop syncing forcing me to have to force quit iPhoto I have noticed it is trying to sync my facebook albums that aren't in my library, is