Tomcat cache setting

hi all.
am developing a application in jsp & java servlets. my query is i need to set cache for all jsp pages .. what should i do for this. is it possible to set cache setting on tomcat. or should i make the setting on jsp pages?
i came to know that
request.setHeader("Pragma", "no-cache");
request.setHeader("Cache-Control", "no-cache");
request.setDateHeader("Expires", 0);
these are the settings for caching. but its not working.. could anyone help me out of this

If you aren't using a framework like Spring or Struts (either of which will do it for you) you need each JSP to add the cache suppression headers. Usually my web projects use a custom tag library for the overall page structure, headers, footers, style sheet links etc. and put the cache suppression in the tag. But there are lots of other ways to avoid putting a scriptlet into each JSP, like using <@ include to pull in a common jsp fragment.

Similar Messages

  • Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).

    Hi,
    Our Environment is Essbase 11.1.2.2 and working on Essbase EAS and Shared Services components.One of our user tried to run the Cal Script of one Application and faced this error.
    Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).
    I have done some Google and found that we need to add something in Essbase.cfg file like below.
    1012704 Dynamic Calc processor cannot lock more than number ESM blocks during the calculation, please increase CalcLockBlock setting and then retry (a small data cache setting could also cause this problem, please check the data cache size setting).
    Possible Problems
    Analytic Services could not lock enough blocks to perform the calculation.
    Possible Solutions
    Increase the number of blocks that Analytic Services can allocate for a calculation:
    Set the maximum number of blocks that Analytic Services can allocate to at least 500. 
    If you do not have an $ARBORPATH/bin/essbase.cfg file on the server computer, create one using a text editor.
    In the essbase.cfg file on the server computer, set CALCLOCKBLOCKHIGH to 500.
    Stop and restart Analytic Server.
    Add the SET LOCKBLOCK HIGH command to the beginning of the calculation script.
    Set the data cache large enough to hold all the blocks specified in the CALCLOCKBLOCKHIGH setting. 
    Determine the block size.
    Set the data catche size.
    Actually in our Server Config file(essbase.cfg) we dont have below data  added.
    CalcLockBlockHigh 2000
    CalcLockBlockDefault 200
    CalcLockBlocklow 50
    So my doubt is if we edit the Essbase.cfg file and add the above settings and restart the services will it work?  and if so why should we change the Server config file if the problem is with one application Cal Script. Please guide me how to proceed.
    Regards,
    Naveen

    Your calculation needs to hold more blocks in memory than your current set up allows.
    From the docs (quoting so I don't have to write it, not to be a smarta***:
    CALCLOCKBLOCK specifies the number of blocks that can be fixed at each level of the SET LOCKBLOCK HIGH | DEFAULT | LOW calculation script command.
    When a block is calculated, Essbase fixes (gets addressability to) the block along with the blocks containing its children. Essbase calculates the block and then releases it along with the blocks containing its children. By default, Essbase allows up to 100 blocks to be fixed concurrently when calculating a block. This is sufficient for most database calculations. However, you may want to set a number higher than 100 if you are consolidating very large numbers of children in a formula calculation. This ensures that Essbase can fix all the required blocks when calculating a data block and that performance will not be impaired.
    Example
    If the essbase.cfg file contains the following settings:
    CALCLOCKBLOCKHIGH 500  CALCLOCKBLOCKDEFAULT 200  CALCLOCKBLOCKLOW 50 
    then you can use the following SET LOCKBLOCK setting commands in a calculation script:
    SET LOCKBLOCK HIGH; 
    means that Essbase can fix up to 500 data blocks when calculating one block.
    Support doc is saying to change your config file so those settings can be made available for any calc script to use.
    On a side note, if this was working previously and now isn't then it is worth investigating if this is simply due to standard growth or a recent change that has made an unexpected significant impact.

  • Dynamic Calc Issue - CalcLockBlock or Data Cache Setting

    We recently started seeing an issue with a Dynamic scenario member in our UAT and DEV environments. When we tried to reference the scenario member in Financial Reports, we get the following error:
    Error executing query: The data form grid is invalid. Verify that all members selected are in Essbase. Check log for details.com.hyperion.planning.HspException
    In SmartView, if I try to reference that scenario member, I get the following:
    The dynamic calc processor cannot allocare more than [10] blocks from the heap. Either the CalcLockBlock setting is too low or the data cahce size setting is too low.
    The Dynamic calcs worked fine in both environments up until recently, and no changes were made to Essbase, so I am not sure why them stopped working.
    I tried to set the CalcLockBlock settings in the Essbase.cfg file, and increases the data cache size. When I increases the CalcLockBlock settings, I would get the same error.
    When I increased the data cache size, it would just sit there and load and load in Financial Reporting and wouldn't show the report. In SmartView, it would give me an error that it had timed out and to try to increase the NetRetry and NetDelay values.

    Thanks for the responses guys.
    NN:
    I tried to double the Index Cache Setting and the Data Cache setting, but it appears when I do that, it crashes my Essbase app. I also tried adding the DYNCALCCACHEMAXSIZE and QRYGOVEXECTIME to essbase.cfg (without the Cache settings since it is crashing), and still no luck.
    John:
    I had already had those values set on my client machine, I tried to set them on the server as well, but no luck.
    The exact error message I get after increasing the Cache settings is"Essbase Error (1042017) Network error: The client or server timed out waiting to receive data using TCP/IP. Check network connections. Increase the olap.server.netConnectTry and/or olap.server.netDealy values in teh essbase. proprieties. Restart the server and try again"
    From the app's essbase log:
    [Wed Jun 06 10:07:44 2012]Local/PropBud/Staffing/admin@Native Directory/4340/Error(1023040)
    msg from remote site [[Wed Jun 06 10:07:44 2012]CCM6000SR-HUESS/PropBud/NOIStmt/admin/Error(1042017) Network error: The client or server timed out waiting to receive data using TCP/IP. Check network connections. Increase the NetRetryCount and/or NetDelay values in the ESSBASE.CFG file. Update this file on both client and server. Restart the client and try again.]
    [Wed Jun 06 10:07:44 2012]Local/PropBud/Staffing/admin@Native Directory/4340/Error(1200467)
    Error executing formula for [Resident Days for CCPRD NOI]: status code [1042017] in function [@_XREF]
    [Wed Jun 06 10:07:44 2012]Local/PropBud/Staffing/admin@Native Directory/4340/Warning(1080014)
    Transaction [ 0x10013( 0x4fcf63b8.0xcaa30 ) ] aborted due to status [1042017].
    [Wed Jun 06 10:07:44 2012]Local/PropBud/NOIStmt/admin@Native Directory/4340/Info(1013091)
    Received Command [Process local xref/xwrite request] from user [admin@Native Directory]
    [Wed Jun 06 10:07:44 2012]Local/PropBud/NOIStmt/admin@Native Directory/4340/Info(1008108)
    Essbase Internal Logic Error [1060]
    [Wed Jun 06 10:07:44 2012]Local/PropBud/NOIStmt/admin@Native Directory/4340/Info(1008106)
    Exception error log [E:\Oracle\Middleware\user_projects\epmsystem2\diagnostics\logs\essbase\essbase_0\app\PropBud\NOIStmt\log00014.xcp] is being created...
    [Wed Jun 06 10:07:46 2012]Local/PropBud/NOIStmt/admin@Native Directory/4340/Info(1008107)
    Exception error log completed E:\Oracle\Middleware\user_projects\epmsystem2\diagnostics\logs\essbase\essbase_0\app\PropBud\NOIStmt\log00014.xcp please contact technical support and provide them with this file
    [Wed Jun 06 10:07:46 2012]Local/PropBud///4340/Info(1002089)
    RECEIVED ABNORMAL SHUTDOWN COMMAND - APPLICATION TERMINATING

  • Essbase data cache setting not registering

    Hi,
    We have 64-bit essbase. I changed the data and Index cache setting (storage type Buffered IO) in essbase.
    After restarting the database, I see the value getting updated in the "Index cache current value" but the value in the "Data cache current value" is zero.
    These are planning essbase databases. The behavior is same for the native essbase dbs.
    I have also tried restarting the essbase service. The essbase version 11.1.1.3
    Please help.
    Regards,
    Avi

    Indes and data caches work differently and it is probably good to talk about that. When an Essbase database starts, it will grab all of the memory you have defined for the index cache and nothing else can get at it. Data cachs is grabbed as it is needed until it reaches the maximum. It was truly problematic in the old days when we had much less memory to work with. If you started too many applications, you took all available memory right away. Man I feel old talking about it :)

  • Essbase BSO data cache setting

    can you guys post your BSO cube compressed data size(.pag files) and data cache setting? I am trying to get a better understanding about these two areas interms of optimization. I am also curious to know the maximum data cache setting ever used on BSO cube....(1 GB is what I know as of now)
    I think the settings depends on million things (available RAM on server, performance check, etc etc) but just a quick check.
    Thanks,
    KK

    Indes and data caches work differently and it is probably good to talk about that. When an Essbase database starts, it will grab all of the memory you have defined for the index cache and nothing else can get at it. Data cachs is grabbed as it is needed until it reaches the maximum. It was truly problematic in the old days when we had much less memory to work with. If you started too many applications, you took all available memory right away. Man I feel old talking about it :)

  • Essbase cubes - best cache setting

    We implemented Essbase about 2 years ago. We have never reset our cache settings. We are experiencing slowness in our cubes. Could this be caused by our cache settings? Do we need to reset our cache setting every so often. Thanks.
    Below are our current cache settings.
    Index Cache Setting 50242
    Index Cache Current Value 50242
    Data File Cache Setting 327680
    Data File Cache Current Value 0
    Data Cache Setting 300720
    Data Cache Current Value 87232
    Index Page Setting 8
    Index Page Current Value 8

    We struggled with cache settings for a while until we found a sweet spot, and we make periodic adjustments. Make sure you follow the published guidelines it will save you a lot of pain. It looks like you have plenty of room on most of the cache settings and only max out the Index Cache. Below is an excerpt from the dbag...
    Index Cache Recommended Value
    Combined size of all essn.ind files, if possible; as large as possible otherwise.  Do not set this cache size higher than the total index size, as no performance improvement results.

  • Data refresh problem - QaaWS and Tomcat cache

    Hi Experts,
    I have a problem with data refreshing in Xcelsius 2008 dashboard when I use QaaWS.
    System is: BO XI 3.1 on the Win2008 server.
    When data are changing in the database InfoView documents show it immediately, but into the Xcelsius dashboards new data not coming.
    In the dashboards I use auto refresh, and Refresh button too... It doesn't help.
    New data are appearing just after restarting of Tomcat.
    Maybe Tomcat is caching data...?
    Do somebody have similar issue? Could you suggest me something to do?
    Thx,
    János

    Hi Janos,
    Tomcat has cache which the default time is 60 seconds.
    You can change the cache time when you create QaaWS wsdl.
    If you do NOT want the cache, you can
    1. locate to: ${BOE Install Path}\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes
    2. Open dsws.properties
    3. Find the property qaaws.cache_dpresult.optim= and set it to false.
    4. Re-start tomcat.
    Hope this can help!

  • Tomcat cache delete automation

    Hi
      Is there any way to automate the Cache delete under tomcat folder (i.e deleting all the contents under Tomcat>work>localhost )?
    I am looking the following steps in the automated script
    1. Shutdown Tomcat
    2. Delete Cache under Tomcat localhost folder
    3. Restart Tomcat
    Thanks
    Venkat

    you can write batch script and schedule via task manager.
    Include Stop Tomcat and Start Tomcat to below script.
    Example:
    @echo off
    set folder="D:\Program Files\Tomcat55\work\Catalina"
    cd /d %folder%
    for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
    exit

  • Image from BLOB now showed when page cache set

    Hello,
    I have a page that display images from BLOB,
    After setting page cache to 1hour, page load faster but images not showed.
    Please help me on this.
    Thank you.

    Hi Halit,
    For me i dont thing, this problem occurred. As i checked by setting the page cache to 1 hour. After that images loaded normally as usual.
    I tried with my mozilla browser. In which browser you tried, may be your browser fault.
    Kindly check it.
    Brgds,
    Mini
    Mark Answers Promptly

  • Db cache setting

    Hi All,
    Currently i am having the following settings in my DW environment. Could you please advise on what is the best setting from performance point of view.
    db_block_size = 8192
    db_cache_size =0
    db_2k_cache_size =0
    db_4k_cache_size=0
    db_8k_cache_size=0
    db_16k_cache_size=0
    db_32k_cache_size =1056964608
    Can you please advise on the impact of these settings, especially when db_cache_size=0 and db_32k_cache_size is 1gb
    Appreciate your help.
    Regards

    user626688 wrote:
    Hi All,
    Currently i am having the following settings in my DW environment. Could you please advise on what is the best setting from performance point of view.
    db_block_size = 8192
    db_cache_size =0
    db_2k_cache_size =0
    db_4k_cache_size=0
    db_8k_cache_size=0
    db_16k_cache_size=0
    db_32k_cache_size =1056964608
    Can you please advise on the impact of these settings, especially when db_cache_size=0 and db_32k_cache_size is 1gb
    You must know that the db_cache_size is the default cache and is applicable to all the objects with the default block size whereas the db_nk_cache_size would be appliable to the objects of that block size only. So since you have put the default cache to zero and have set the 32k cache size, does that mean that you have a block size set to 32k? If yes, why so? Second, the memory sizing of the parameter does not decide the performance of the database/queries most likely. There are many other factors which may come in to decide it. So in the answer of the question, there can't be a best setting in the sizing of a parameter.
    Aman....

  • Tilelist buffering / caching / setting up next tile not on stage?

    I've created a tilelist and attached a listener to the Event.ADDED and Event.REMOVED to it, so that I can be notified when a row within it gets added and removed, for visual effect.  The problem is that the tilelist seems to buffer rows / columns in view + 1.  This breaks the entire system.  I've a sample fla file which has the following code in,
    import example.testrow;
    function setup():void {
         for(var i:uint = 0; i < 6; i++) {
              var row:testrow = new testrow();
              setColour(row, colours[i % 3]);
              row.listIndex = i;
              myList.addEventListener(Event.ADDED, onAddRemove);
              myList.addEventListener(Event.REMOVED, onAddRemove);
              myList.addItem({source: row});
    function onAddRemove(event:Event):void {
         if(event.target is testrow) {
              trace(event.target.listIndex + ' ' + event.type);
    function setColour(row:MovieClip, colour:uint):void {
         var tempCT:ColorTransform = row.transform.colorTransform;
         tempCT.color = colour;
         row.transform.colorTransform = tempCT;
    myList.setStyle('skin', new Shape());
    myList.setRendererStyle('imagePadding', 0);
    var colours:Array = [0xFF0000, 0x00FF00, 0x0000FF];
    setup();
    This adds 6 new 'testrows' (simple movieclip containing a rectangle shape), then sets up the listeners as I've described, while also adding a 'listIndex' property to each row and changing their colour,  and also clearing all style from the TileList, so you can see clearly what's in it.  The TileList is set up very simply, with a rowCount of 3 and is vertical.
    Below can be seen by using the thumb scroller of the scrollbar, but is much clearer when using the up & down buttons.
    The problem can be seen straight away, because while only 3 should be shown, I get a trace statement from 0 to 3, ie 4 rows.  If at any stage you scroll down, it'll always be one step ahead of you, no matter how hard you try!
    I can't imagine this is the proper way it is supposed to work, with this sort of ambiguous, inconsistent lookahead.  I mean, the way it works differs completely from being at the start of the list to being at the end.  If you scroll from 0 position, to position 1, you'll get the notification '0 removed' and '4 added', 0 should have been removed, but again 4 shouldn't be added yet, it's not displayed.  If you go to the end of the list and go from position 5, to position 4, you'll see that the behaviour is totally different, No notifications at all.  This shows that flash is keeping the next item cached, or whatever, as if it's on stage, without being on stage any time it can do.
    This is very frustrating as I have been wanting a nice way to track what gets is on and off a tilelist and every other way has been just as frustrating, whereas I thought this would do it.  I initially thought it was just oddities with the sizing of the tilelist and the rows, but that's clearly not the case.  Is there *any* way to stop, or change this behaviour and have the tilelist add *only* the rows that are shown in the tilelist, rather than those rows, plus the next one?  It really doesn't seem like the best of behaviours.
    http://seadersforums.appspot.com/static/tilelist_buffer.fla

    1024x768 is 4x3.  2048x1536 is 4x3.  Both of these are current display dimensions for iPads 1-3.
    HD video (1920x1080 or 1280x720) is a 16x9 aspect ratio.
    Try putting a rectangle in a square. Unless you scale the retangle up and lose image on the sides you will not be able to properly fill the entire 4x3 display area. The easy compromise is letterboxing to ensure all of the rectangle is display in the square. The iPad is doing this with very little effort on your part.
    In FC you can create a new sequence and go into the settings and customize it to 1024x768, 2048x1536 or
    just about any other dimension. Even If you create a custom sequence at 1024 or 2048 in FC you will see the same results that the iPad is giving you with much less effort, render and conversion time (presuming your keynote workspace cannot change in dimensions or aspect ratio and you are unwilling to crop your 16x9 aspect ratio video to fill the space.) 

  • What cache setting should I use?

    I recently downloaded a health check and was advised to optimize the firefox cache. What's the best setting for performance?

    I would stick with the default settings which is 50MB. If you use sites which use large files such as YouTube you could increase it. There is no optimum setting.
    Firefox 4 will use a different method to determine the size of the cache.

  • Spatial Data Cache Setting

    Hi all,
    If I disable the cache, I mean if I set max_cache_size to 0 on mapviewerConfig, Will it affect mapviewer performance or speed?
    I have developed sample application to move a point data on web using mapviewer. After updating SDO_GEOMETRY column on database, I will refresh the map. The map will show moved point data only if I set max_cache_size to 0 on mapviewerConfig. Is there any mapviewer API is available to clear spatial data cache?
    Thanks,
    Sujnan

    This is likely a bug. It assumes a 2gb limit.

  • Tomcat Cache Issue

    Hi,
    Not sure if this is the right place to post this, so please advise if not.
    I am developing a JSF based site using Tomcat 6.0.16. The problem is that when I am editing pages coded in JSF, the updates to the pages are not immediately apparant. The problem is that I am getting errors when I am calling pages. These errors are in fact "historical" meaning that I have fixed the code but I still get the errors. The pages update to the correct after some time but only if I amend something in page, forcing the servlet files to be regenerated. I hae tried deleting the cache under CATALINA/work/Catalina/mywebapp but this doesn't always seem to work.
    Is there anything I can do to ensure that the latest page is being called?
    Thanks,
    Tim

    restarting tomcat doesn't seem to work weirdly - and redeploying? well the pages are being edited directly in the web directory so am not deploying/redeploying. Is it a server config issue perhaps?

  • Iview Cache setting

    So I'm thinking about improving my iview performance by making a setting change on the iview.
    from: cache - NONE
    to: cache - SHARED
    But the cache validity period. Does it even matter here?
    Mike

    Hi Mike,
    As the iview performance is improved by Caching, the cache level palys a prominent role.
    The cache levels are of four options in all. namely Shared, User, Roles, Session and No Level(none).
    Cache validity is respected, regardless of any particular cache level, except for None. For example, if the cache level is Session, and the cache validity is set to two hours, the iView content is retrieved from the source the first time a user logs on, and then comes from the cache for the next two hours only, even if the session lasts four hours.
    So the cache validity period does matter if we are using the calche level option and for No cahche level it does not depend on the performance of the iveiw.
    For more info pls check the below link.
    http://help.sap.com/saphelp_nw04/helpdata/en/5f/2720a513ea4ce9a5a4e5d285a1c09c/content.htm
    Hope this helps you.
    Good Luck!
    Regards,
    Shaila

Maybe you are looking for