Cost/benefits of release() on NamedCache

Based on the javadoc I'm a little concerned about the cost of calling release() on NamedCache every time the cache reference is looked up and used.
I'm running an app inside Weblogic 8.1 SP2 using the Coherence RAR. Every invocation of the cache will occur inside a transaction. I'm using the following as my basic pattern:
CacheAdapter adapter = getCacheAdapter();
try
NamedCache map = adapter.getNamedCache("CacheName", getClass().getClassLoader());
try
// Do cache stuff
finally
map.release();
finally
closeCacheAdapter(adapter);
Note that methods like this may be called hundreds of times inside a single transaction. Moreover, in some circumstances, 10k+ objects may be added to the cache (on system startup).
I guess my first question is, do I really need the map.release()? I'm always using the class loader of my cache wrapper, so I'd imagine that the container can't release that class loader in any case.
Second, how can I estimate how much time the release() call is going to cost me?
Any help would be appreciated. Thanks.
--Peter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Gene,
Thank you for your quick response. You've helped clarify the issue.
I would like to request a clarification in the javadoc in a future version. I can't seem to find anywhere in the doc where it says that you shouldn't call release() on a NamedCache returned by a CacheAdapter.
As far as the 10k+ goes, I'm not crazy about it either. But there is a legacy code base here, with legacy behavior. Essentially we're using the AppCycleListener interface to allow us to listen to startup events and preload the cache. This is effectively exclusive, but I believe that Weblogic treats it as if we're inside a transaction. I know that it did for our earlier revision, which used the server initializer interface.
Thanks again for the help.
--Peter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Delete cost run & reset release for current month

    For our client we have created a new plant while testing this plant user created a material and they have done a cost run in ck11n  with costing varient zv01 but in they released the cost with costing varient ppc1 with this system got inconsistency and not not allowing to release cost for any other material in the current month if we try to mark it for next month it is working fine.
    we deleted the cost run through ck44 & ckr1 then also we are faceing the same problem. Kindly give me the solution how can i reset the release and later i want to run the ck11n & ck24 for material in the current month  to do  the production cycle.  please consider this is as a urgent.
    Regards
    Chakravarthy

    Hi
    Whether you should do MR21 or not ??
    a. If the cost estimate you reversed belongs to Last month and you are going to post the GR in last month then you should do MR21
    b. if the cost estimate you reversed belongs to may and GR will also be posted in May - No need for Mr21... Because, even though you release cost on say, may 2nd, the cost always gets released from the Start of the Month
    br, Ajay M

  • Cost center based release strategy.

    Hi Gurus,
    Could anyone explain about cost center based release strategy?. Thanks.

    Hi,
    There are two options i have mentioned below.
    Option-1:
    You can create release characteristics with field KOSTL and add this characteristic with release class with other release characteristics. And you can design your release strategy based on requirement & then limit the cost center via authorization object K_REPO_CCA
    Option-2:
    Create Purchasing Group (OME4) as Department & assign the department to Cost center(KS02/KS01). Now create purchasing group as release characteristics with field EKGRP add this characteristic with release class with other release characteristics. And now you can design your release strategy based on requirement.
    Regards
    Siva

  • Costing Error while releasing the document to accounts in VF02

    Hi Experts,
    We have an issue with Costing while creating accounting document in VF02
    We have implimented new plant for the existing company code.  We had few sales orders open in existing plant.  There are few sales orders which were open in existing plant (plant 01). During go live of new plant (02) we have changed the plant in the existing sales order from plant 01 to  02 (new plant) and complete the billing. But while releasing to accounts it throws an error "Valuation withj material cost estimate error with product xxxxxx"
    This material has DO NOT COST checked in material master and the price maintained in the accounting views. As per our knowledge if the material has do not cost indicator checked it should  not be relevant for costing. And also we don't have BOM for this material.
    Before the new plant there are many sales orders were created for this material  in the existing plant and successfully released to accounts with the valuation Class 3000
    Our analysis.
    THe same material in the old plant has the valuation class 3000, but the valuation class defined in the material master of the new plant is 7010. Since we have changed the plant in the exsting sales order which was earlier created in plant 01 and in the plant 01 it has valuation class 3000, it this is the reason it is getting conflicted and throwing an error?
    Can you please advise?
    Thanks & Regards
    Veda

    Hi Ajay,
    In KEPC with the combination of sales organisation &, billing type  costing key is assigned for the valuation class 7010 (Finished goods) But costing key is not assigned to valuation class 3000 (raw material). and I saw the same setting in quality. Still we are able to create the acounting document. But in case of production it is asking for cost estimate with the costing keys for the valuation class 7010.. Is any other setting which is missing in Quality as we are able to create accounting documents though the costing key is defined for the valuation class 7010. 
    Can you please advise?
    Thanks & Regards
    Veda

  • Why does itunes in France have a complete lack of english language content on the TV programmes... prefering to release dubbed programmes and not the original english language content, surely it will cost nothing to release both?

    Why does itunes in France have a complete lack of english language content... prefering to release dubbed programmes and not the original english language content?
    It would be just as easy to release both a dubbed version and then a subtitled version.
    I am a native english speaker but live in France. My father has just moved over to live with me in France and speaks very little French.
    The price for a television series is very often more than a dvd box set but does not offer language options.
    My French is passable but I would still prefer to hear the programme in English.
    Using itunes uk is not an option as my cards are french or english with a french postal address.
    The content has been adapted for the french site all i want is to access the original.
    The series i have been trying to buy is HBOs 'boardwalk empire'.
    The stupid thing is to please my father i would buy up most the HBO, BBC and Channel 4 content a cost of a couple of thousand euros.

    Try giving Apple feedback: http://www.apple.com/feedback and also contact the Apple headquarters at http://www.apple.com/contact  We are all fellow users and not Apple employees and often raise questions like yours ourselves.  If enough make Apple aware of a market/need then something may be done about it.
    France has come a very long way with regard to other languages.  When I lived in France, mid-880s, there was an entire Ministry devoted to the purity of the French language...that was the time the PC came out.  A TV news person was cashiered for using the term 'computer' on-air instead of the French created word 'ordinateur'.  They took the language extremely seriously at that time.  At least today there is recognition and even use of English by the masses

  • Cost Center based Release Strategy for PR's

    System :4.6c
    At this time, we have PR release strategy with classification configured for over all release.
    Created a new characteristic for cost center , assigned the values for the cost center characteristic, with zeros at the beiginnig.
    Now when I create a PR with multiple line items and with multiple cost centers, the system is not deriving the release strategy defined. But if I create multiple line items with the same cost center, the system is able to find the right release strategy.
    Does it have to be the same cost center in all the line items to trigger the right release strategy?
    Thanks.

    Hi,
    Looking at your question it seems you are using overall release strategy. If the characteristic value is not same for all line items then during overall release strategy determination, the system uses "BLANK" value for this characteristic.
    In order for a release strategy to be found, when you have different
    cost center in different PR items you need to add a blank value to your allowed characteristic value for the cost center in your release strategy. Also use Account Assignment Category (KNTTP) as one of your characteristics and define K as an entry, so that release is triggered only when it determines cost center blank with account assignment K.
    But if for diff cost centers there is diff strategy then you better opt for Item level Release.
    Please give this a Try.
    Regards
    Chandra Shekhar

  • Sales order Costing mark and release

    Dear all,
    Kindly help on the following issue:-
    Can we mark and release Sale order costing like product costing(in CK24).
    best regards,
    Gaurav

    Hi,
    Sale order costing is determined by Requirement Class and Item category defined for MTO process in Product Costing.
    Sale Order costing keeps changing when you compare normal costing with CK11n or CK40n.
    Regards
    Balaji

  • BW Cost/Benefits

    Hi,
    I am looking for a document that highlights the cost savings to an organisation when they implement BW. If someone has something, could they please send it to me?
    Thanks
    Zev
    [email protected]

    HI Prasad,
    Major benefits of BW reports include:
    1) By offloading ad-hoc and long running queries from production R/3 system
    to BW system, overall system performance should improve on R/3.
    2) Another key performance benefit with BW is the database design.  It is
    designed specifically for query processing, not data updating and OLTP.
    Within BW, the data structures are designed differently and are much better
    suited for reporting than R/3 data structures. For example, BW utilizes star
    schema design which includes fact and dimension tables with bit-mapped
    indexes. Other important factors include the built-in support for
    aggregates, database partitioning, more efficient ABAP code by utilizing
    TRFC processing versus IDOC.
    3) Better front-end reporting within BW. Although the BW excel front-end has
    it's problems, it provides more flexibility and analysis capability than the
    R/3 reporting screens.
    4) BW has ability to pull data from other SAP or non-SAP sources into a
    consolidated cube.
    In summary, BW provides much better performance and stronger data analysis
    capabilities than R/3.
    For more info refer this link:
    http://www.sap-img.com/bw009.htm
    Hope this helps.
    Thanks,
    Rahul

  • No release of production order without standard cost estimate

    Hi All,
    I have an requirement, that is production order for a material should not be released or saved if standard cost estimate for that period is not released. Basically it should not allow to release or save the production for that material, is SCE is not run for that period. I tried various options, i also overheard its possible through user exit and many people have succeed in that.
    Has anybody overcome this problem, please do let me know. And which user exit??
    Thanks in advance
    With Best Regards
    GJ.

    Hi...
    I have faced the same problem in my previous project. What i have instructed to my client is to take control of Master data and put the status as "03" Blocked for movement till the statndard cost is released for this material.
    You can relase the status to "E2" in Cross Plant Status Field in Costing one view once the cost estimate is released for the material.
    I hope this works for you.
    Please let me know if you require any fruther information.
    Thank you,
    Regards,
    Santosh
    Rewards points if helpful.

  • Add estimated cost in PM Service order after release of order.

    I have released the PM service order. Now I need to add the estimated cost in service order. . Please tell me a way to do so. I have only released the order and no other transaction has been done.

    ANIMESH KUMAR,
    AS standard you cannot change the estimated cost value after release (REL).
    However, I have seen two work arounds:
    - Copy the field onto the Enhancement tab via user-exit IWO10018
    - A bespoke TCode/program to directly update the AUFK-USER4 field
    PeteA

  • Break up of raw material cost for released finished materials

    Hi All,
    I have searched various threads before posting this question.
    Is there any standard report available to view the breakup of raw material cost for a release finished material.
    I have cost component split report but it shows everything in raw materials.... is there any report to show a break up of this raw materials cost.
    If there is no standard report can you please how I should develop a customized report.
    Thanks,
    Srini

    Dear Srinivas,
    You will get the cost breakup in the following report:
    CK84_99 - Itemization
    CK86_99 - Costed Multilevel BOM
    CK80_99 - Cost Components
    You will get the same information in CK13N
    From the standard SAP,  no report will show breakup for all the materials in single report at a time.
    We have developed the report through ABAP functionality
    Regards,
    Pavan Kumar Arvapally

  • Issue - automatic release block in MRBR for planned costs (tol KW/PP)

    Tolerance key KW is defined for planned costs.  The tolerance is correctly selected in MIRO and invoices are blocked appropriately; there is no issue in MIRO.
    The block for planned costs is indicated as a price variance in MRBR and the condition is listed.  When MRBR is executed in 'Release Automatically' mode, system checks the tolerances defined under tolerance key PP rather than KW.  MRM_TOLERANCE_CHECK is called for tolerance key PP.
    Because the tolerance amount for tolerance key PP is checked rather than tolerance key KW (planned costs), invoices are released erroneously.  The tolerance for KW should be checked instead.
    Has anyone encountered this issue?  If so, what action did you take?
    Thank you in advance.

    Thank you for your input.  However, this does not solve the issue.  The tolerances should be checked appropriately in MRBR in the same way as in MIRO.  KW should be checked for planned costs and PP for the articles.

  • Can we use two costing variants for standards cost estimate release.

    Hi,
    We have 2 plants (plant 5100 and plant 5200) under company code 5000.
    We have run standard cost estimate(CK11N) for material 98001000027 at plant 5100 using costing variant ZG01 and at plant 5200 using costing variant ZG02. First, we released  standard cost estimate (CK24) for this materia at plant 5100 and set (in marking allowance) costing variant ZG01 and costing version 01. Next time when we are trying to release the standard cost estimate for the same material for plant 5200, it is automatically picking ZG01 as costing variant in marking allowance and it is not allowing to change the costing variant to ZG02 saying Company code 5000: Release already carried out, cancellation not possible, Message no. CK797.
    Is it possible to use two different costing variants for release of standard cost estimate for a material at two different plants at the same company code? If so how?
    Please suggest.
    Thanks,
    Bijay

    Hi,
    Thanks for your reply again.
    What is the benefit of assigning "Single Valuation Variant same to different Plants" ? In costing variant also we can assign maximum only one valuation variant and this valuation variant will default for all the plants, and hence I dont think it is necessary to assign same valuation variant to different plants.
    My  issue is :
    Example: ( Standard Cost Estimate for material 98001000027)
    Plant - 1
    Material Cost                                             Rs.100
    Labour Cost                                               Rs.50
    Overheads (10% of Labour Cost)                  Rs.5
    (say ,through costing sheet - 1)
    Total Standard Cost Estimate                      Rs.155
    Plant - 2
    Material Cost                                             Rs.150
    Labour Cost                                               Rs.100
    Overheads (20% of Labour Cost)                  Rs.20
    (say, through costing sheet - 2)
    Total Standard Cost Estimate                      Rs.270
    Now, Please explain why we cannot have two Standard Cost Estimates for a material at two different plants? If it is possible to have two standard cost estimates for a material at two different plants, how to take care of  overheads (rate of which varies) at two different plants (plant - 1 > 10% and plant- 2>20%) as we can assign maximum one costing sheet to a valuation variant variant?
    How to map the system so as to meet the above requirement?
    Thanks,
    Bijay

  • Assign right cost center to PR release strategy

    in purchase requisition order type, how to assign cost center for release strategy? i.e. for different release strategy, i want to assign different cost center.

    Create a new Charecterstic Using Table CEBAN and KOSTL. Here Select Multiple Entries and Maintain your Values (in Values Tab Maintain all the costcenters you are making use of).
    Assign it to class and Continue with your Normal Release Procedure.
    Revert any issues.
    Thanks,
    Shiva

  • Re_detemination of release staretgy after changes to cost center

    We have a problem in redetermining release stratergy
    AA -> released
    AB -> released
    AC -> not released
    AD -> not released
    When we change a item cost center, there release stratergy is not redetermined (cancelling all previous releases ).
    When there is a value (price)change, the release stratergy is  redetermined, but not for cost center.
    Both CC and total value are mainatained in class char.
    Any suggestions.
    Thanks.
    Edited by: MIKE JO on Sep 1, 2010 5:20 PM

    Hi,
    The release strategy does not get reset because there is no change in any of the values in CEKKO straucture. Please note that while creating po release strategy in all the char CEKKO structure will be reffered. For change in cost center u will hav to use user exit.
    Regards
    Naveen

Maybe you are looking for

  • My country is not listed in the itunes Country List.

    My country 'Nepal' is not listed in the Itunes country list. I cannot register for the Itunes which can help me download applications for my Ipod Touch 4G which I bought recently. its not downloading any applications as itunes cannot register me with

  • JMS message is not picked up by the listener

    We have created a queue in a cluster. We have an application that listens to a queue. Messages from another application will post message into this queue which is inturn picked up by the listener process.           We posted a message to the queue lo

  • Trying to extend the WLAN range by adding an additional Airport Extreme second gen with Ethernet as backchannel.

    Hi, I'm trying to extend the coverage of my home WLAN by adding an additional airport express. I want to use Ethernet as the back channel but whatever I do this ends up in a situation where the WLAN dies completely. I have been able to extend the ran

  • Cannot submit AIR build using Application Loader to itunes connect ERROR ITMS-90125

    I'm using IntelliJ and windows 8 I have tried AIR 1.5, 1.6, 1.7. using -useLegacyAOT=yes Below is the error when I try to submit my app to Itunes Connect using Application Loader ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC

  • BR smartlist

    Hi Im using the BR from this thread. Account data type Text "Pln Assumpt" is associated with a smartlist . IN this BR is it possible to set "Pln Assumpt" to none or default smartlist value in BR............none doesnt have an ID ........& i tried usi