FYI: Cause of multiple front caches in server environment

Hi All.
Long time lurker, first time poster here. With this post I would just like to contribute with some information about a problem we recently solved at my work place.
We have Coherence deployed in an app server environment. We discovered that our distributed schemes ended up having two front-caches by looking in the JMX. We got several instances of the same
type of CacheMBean with different 'loader' arguments, like this:
Coherence:type=Cache,service=DistributedCache,name=SomeCache,nodeId=3,tier=front,loader=x
Coherence:type=Cache,service=DistributedCache,name=SomeCache,nodeId=3,tier=front,loader=y
By trial and error we finally concluded that the cause of this was that, unless told otherwise, Coherence utilizes the context class loader (Thread#getContextClassLoader()) to fetch the front cache. In our case the context class loader
differed depending on the entry point of our application. Web calls had one context class loader, and EJB calls another. The undesired side effect was that we ended up with separate front caches for web and EJB calls. This is of course not ideal.
In order to fix this, one can specify which class loader to use when fetching the cache from CacheFactory: http://download.oracle.com/otn_hosted_doc/coherence/330/com/tangosol/net/CacheFactory.html#getCache(java.lang.String, java.lang.ClassLoader)
The documentation already makes clear that the class loader is used for serializing. It is apparently also used for more.
For us the fix was to specify getClass().getClassLoader(), which will vary only depending on the type of the calling instance, not vary depending on entry point. As a side note, this also worked well for us when mixing transactional and non-transactional interactions with the caches.
Best regards,
Alexander

933421 wrote:
Hi All.
Long time lurker, first time poster here. With this post I would just like to contribute with some information about a problem we recently solved at my work place.
We have Coherence deployed in an app server environment. We discovered that our distributed schemes ended up having two front-caches by looking in the JMX. We got several instances of the same
type of CacheMBean with different 'loader' arguments, like this:
Coherence:type=Cache,service=DistributedCache,name=SomeCache,nodeId=3,tier=front,loader=x
Coherence:type=Cache,service=DistributedCache,name=SomeCache,nodeId=3,tier=front,loader=y
By trial and error we finally concluded that the cause of this was that, unless told otherwise, Coherence utilizes the context class loader (Thread#getContextClassLoader()) to fetch the front cache. In our case the context class loader
differed depending on the entry point of our application. Web calls had one context class loader, and EJB calls another. The undesired side effect was that we ended up with separate front caches for web and EJB calls. This is of course not ideal.
In order to fix this, one can specify which class loader to use when fetching the cache from CacheFactory: http://download.oracle.com/otn_hosted_doc/coherence/330/com/tangosol/net/CacheFactory.html#getCache(java.lang.String, java.lang.ClassLoader)
The documentation already makes clear that the class loader is used for serializing. It is apparently also used for more.
For us the fix was to specify getClass().getClassLoader(), which will vary only depending on the type of the calling instance, not vary depending on entry point. As a side note, this also worked well for us when mixing transactional and non-transactional interactions with the caches.
Best regards,
AlexanderHi Alexander,
depending on which appserver you use, you would probably want to go with a classloader which is a common root of the EJBs and web-apps. Depending on where your data classes reside, and what appserver you use, this may be an ejb-tier-wide classloader, or the ear classloader.
Best regards,
Robert

Similar Messages

  • Using Weblogic as a front end web server

    Hi all, recently there has been a push for us to investigate moving our Iplanet
    web servers to Weblogic. So our architecture would be WLS web instances on the
    front and passing back to WLS app servers on the back end. We would need to run
    SSL and none SSL and handle certificates and multiple applications on each web
    server as well as serve up static content. Has anybody had any experience with
    going to this set up, and if so would you recomend it ? It looks way harder then
    setting up a Apache or Iplanet web server.

    "Mark Griffith" <[email protected]> wrote:
    You should check out 8.1, SSL configuration is simpler there.
    I would say in general that the main weakness of WLS as a web server
    is on
    the administration side of things.
    Cheers
    mbg
    "Eric Sundberg" <[email protected]> wrote in message
    news:3ebfce80$[email protected]..
    Hi all, recently there has been a push for us to investigate movingour
    Iplanet
    web servers to Weblogic. So our architecture would be WLS web instanceson the
    front and passing back to WLS app servers on the back end. We wouldneed
    to run
    SSL and none SSL and handle certificates and multiple applicationson each
    web
    server as well as serve up static content. Has anybody had any experiencewith
    going to this set up, and if so would you recomend it ? It looks wayharder then
    setting up a Apache or Iplanet web server.
    thanks for the heads up

  • Multiple databases on same server

    we're planning to consolidate our SAP R/3 databases on a 64bit based cluster running Windows 2003/SQL Server 2005.
    the "SAP with Microsoft SQL Server 2005: Best Practices for High Availability, Maximum Performance, and Scalability" document states "SAP products support multiple instances of SQL Server 2005 on the same server. However, running the database of the SAP production system together with other application databases on one server is not recommended." and "An alternative is to run two or three SAP databases on one SQL Server 2005 instance.".
    giving this, I'd like to know if it's not recommended even if the 'other application databases' are related to other instances of SAP R/3 product.
    it would be useful to know why one SQL Server instance with multiple SAP databases is better than multiple SQL Server instances with one SAP database for each.
    thank you.

    Dear Matro,
    Please review the following thread:
    Multiple database instances on single server on SQL2005
    I also note that you state your database server is clustered using MSCS.  If this is the case you should not use a "Named Instance".  If you download the latest Netweaver 2004s Installation guide (SR1) for Windows SQL you will note that on page 172 it specifically states that you must install a "default instance". 
    If you plan to consolidate several SAP database systems on one host and use a default instance you need to consider the fact that all databases running on this instance will share resources such a memory cache etc.
    Factors such as the size of the SAP systems, whether the systems are OLTP will influence your decision
    Please post if you have any additional questions.
    Thanks
    N.P.C

  • Fetching of multiple files from Application Server into SAP Program

    Hi All,
    I have a issue related <b>Fetching of multiple files from Application Server into SAP Program</b>.
    Actual issue is as below.
    In the <b>selection screen</b> of <b>my program</b> i will give <b>Application Server Path</b> as :
    <b>/PW/DATA/SAP/D1S/PP/DOWN/eppi0720*</b>
    Then the based on above input it should pick up all the files that are matching <b>eppi0720*</b> criteria.
    Suppose if i am having <b>5</b> files with above scenario, i have to fetch all those <b>5</b> files at a time and place in my SAP Program.
    All those 5 file's data should come into SAP at a time.
    Can anybody tell me how can we solve above issue.
    If any body has come across same issue please provide me with solution.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    If you want to get around the authorization check, you can do something like this.
    report zrich_0001 .
    parameters: p_path type epsf-epsdirnam
                      default '/usr/sap/TST/SYS/global'.
    parameters: p_file type epsf-epsfilnam default 'CO*'.
    start-of-selection.
    perform get_file_list.
    *       FORM get_file_list                                            *
    form get_file_list.
      types: name_of_dir(1024)        type c,
             name_of_file(260)        type c,
             name_of_path(1285)       type c.
      data: begin of file_list occurs 100,
              dirname     type name_of_dir,  " name of directory. (possibly
                                             " truncated.)
              name        type name_of_file, " name of entry. (possibly
                                             " truncated.)
              type(10)    type c,            " type of entry.
              len(8)      type p,            " length in bytes.
              owner(8)    type c,            " owner of the entry.
            mtime(6)    type p, " last modification date, seconds since 1970
              mode(9)     type c, " like "rwx-r-x--x": protection mode.
              useable(1)  type c,
              subrc(4)    type c,
              errno(3)    type c,
              errmsg(40)  type c,
              mod_date    type d,
              mod_time(8) type c,            " hh:mm:ss
              seen(1)     type c,
              changed(1)  type c,
            end of file_list.
      data: begin of file,
              dirname     type name_of_dir,  " name of directory. (possibly
                                             " truncated.)
              name        type name_of_file, " name of entry. (possibly
                                             " truncated.)
              type(10)    type c,            " type of entry.
              len(8)      type p,            " length in bytes.
              owner(8)    type c,            " owner of the entry.
            mtime(6)    type p, " last modification date, seconds since 1970
              mode(9)     type c, " like "rwx-r-x--x": protection mode.
              useable(1)  type c,
              subrc(4)    type c,
              errno(3)    type c,
              errmsg(40)  type c,
              mod_date    type d,
              mod_time(8) type c,            " hh:mm:ss
              seen(1)     type c,
              changed(1)  type c,
            end of file.
      call 'C_DIR_READ_FINISH'             " just to be sure
           id 'ERRNO'  field file_list-errno
           id 'ERRMSG' field file_list-errmsg.
      call 'C_DIR_READ_START' id 'DIR'    field p_path
                              id 'FILE'   field p_file
                              id 'ERRNO'  field file-errno
                              id 'ERRMSG' field file-errmsg.
      if sy-subrc <> 0.
        sy-subrc = 4.
        exit.
      endif.
    * Read the file list and add to internal table.
      do.
        clear file.
        call 'C_DIR_READ_NEXT'
          id 'TYPE'   field file-type
          id 'NAME'   field file-name
          id 'LEN'    field file-len
          id 'OWNER'  field file-owner
          id 'MTIME'  field file-mtime
          id 'MODE'   field file-mode
          id 'ERRNO'  field file-errno
          id 'ERRMSG' field file-errmsg.
        if sy-subrc =  1.
          exit.
        endif.
        append file to file_list.
      enddo.
    * Write out the file list
      loop at file_list.
        write:/ file_list-name.
      endloop.
    endform.
    Regards,
    Rich Heilman

  • Multiple instances on single server

    Hi all,
    I have a Solaris 10 server with 2x dual core CPU's.
    I am wondering if it was at all possible to install Business Intelligence Server on this single OS twice? And if it is, can I split the CPU between the different instances?
    The reason for this is that I would like both production and test/development installed onto the same OS to cut costs. But I don't want the test/development instance to use resources that would affect the performance of the production environment.
    Ideally I'd like the 2 instances, with the production instance using 3 cores, and the test/development instance using 1 core. If the RAM could also be split that'd be great.
    Thanks for your help in advance.
    Cheers

    Yes, you can have multiple instances of Presentation Services (PS) ([see my blog posting for details|http://rnm1978.wordpress.com/2009/08/25/multiple-rpds-on-one-server-part-1-the-bi-server/]) which would let you split envs, but you'd do that with a single instance of BI server. I don't know if it's possible to run multiple BI servers
    I don't think you should be trying to do this anyway, several reasons why not:
    1) It's not supported to run multiple PS on one server. That should be reason enough not to do this on prod.
    2) If it's not possible to run multiple BI Servers on one server then you'd end up running one BI Server with dev/test/prod RPDs - you'd never be able to bounce your BI Server for dev work without taking down prod
    3) Any time you needed downtime for dev, you'd affect prod
    4) Any patching you wanted to do on dev might affect prod
    5) Any experimental work you do that crashes dev would affect prod.
    If you only have the one box available to you for costs reasons then you should be looking into virtualisation of some kind, eg http://www.virtualbox.org

  • Front End Installation Server - Administrator rights on client PC's

    We are using a third party repackaging tool to deploy sapgui to our workstations.  This has proven to be problematic in the past and are now considering the SAP Front End Installation server approach.
    After reveiwing the installation guide we are wondering about how packages are deployed to workstations.  Our users do not have administrator priveleges on thier workstations, so is it still possible to deploy packages from the installation server (either where they "pull" it down, or it is pushed down to them).
    This factor is one reason we are still using the third party repackaging tool because packages can be deployed under a "system" account (via a cleint agent on each PC) - in lieu of each user having administrator privelges on their workstations.
    If the SAP Installation server requires users to have these elevated priveleges it won't be an option for us.  Does anyone else have any experience with the Installation server and users who do not have administrator priveleges?
    Any feedback, directions, or links to additional resources would be greatly appreciated and happily rewarded with positive feedback and reward points
    thanks,
    jeff henke

    Hi Jeff. Try to download the SAPGUI 710 instguid. Go to http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000614745& in left press on 
    "SAP GUI for Windows" -->  7.10, download this file. In this Guide you can read about :
    Local security handling (LSH) lets users on the network deploy SAP front-end components on
    their front ends using NetWeaver SAPSetup without requiring administrative privileges on
    each front end. Regards.

  • Front-end HTTP Server and Performance with .jspx pages?

    This is more of a general question that I'm looking for validation:
    If the majority of our website is implemented as .jspx pages, with very few straight HTML pages, is there benefit in deploying to an environment with a separate HTTP front-end web server and back-end Application server (java container)? For example, I'm deploying to Tomcat as both the HTTP server and Java Application server for the .jspx pages; is there a performance advantage in deploying to an Apache HTTP server with a connector to Tomcat if I'm primarily serving up .jspx pages? I'm not as familiar with Oracle AS architecture, so my question is primarily around Tomcat deployment.
    thanks

    This is more of a general question that I'm looking for validation:
    If the majority of our website is implemented as .jspx pages, with very few straight HTML pages, is there benefit in deploying to an environment with a separate HTTP front-end web server and back-end Application server (java container)? For example, I'm deploying to Tomcat as both the HTTP server and Java Application server for the .jspx pages; is there a performance advantage in deploying to an Apache HTTP server with a connector to Tomcat if I'm primarily serving up .jspx pages? I'm not as familiar with Oracle AS architecture, so my question is primarily around Tomcat deployment.
    thanks

  • GPs in multiple server environment

    Hi,
    Does anyone have experience using GP in a multiple WAS server environment.  Our scenario is one in which different servers have different user groups and are located in different regions.  We want to have a GP be able to transfer a process to another user group on another server and have the process flow continue there.
    Is there something available "out of the box" or is it necessary to develop custom code (in all likelihood based on web-services)?
    Thanks.
    Dick

    Hi Dick,
    This is an interesting problem that you have.
    There is no out of the box solution for this, but you may be able to architect this in a way that it would not require any custom code.
    If you created a GP process for every region, which in all make up the logical super GP process, you can transfer process state and perform instantiation from one to the other.
    For instance:
    Process 1 (Region US, Server 1) upon completion starts Process 2 (Region EMEA, Server 2).  The last step (Action) of Process 1 would be a Web Service Callable object which starts Process 2 and passes any PK's for state information. 
    If you are using CAF Entities for persistence, I recommend that you keep these all on the same server and the distributes GP processes can access as needed.
    Does this make sense?
    Best Regards,
    Austin.

  • Load multiple views in one server call

    Hello,
    We are developing SAPUI5 application with Master & Detail page pattern. On detail page, we have 7 tabs so to make it more manageable we have created 7 different views, one for each tab instead of writing all the code in one view.  And one extra view which hold the tab and 7 views.
    Now code is easy to maintain as we can go to specific view and do the changes instead of searching in one big view. But there is a new problem now, it take lot of time to load the detail section. It makes separate server call to load each view.  Earlier it was loading detail section with one server round trip but now it is making 8 server round trips ( one for every view ).
    So the question is, is there any way to load multiple views in single server trip?
    Regards,
    Vikram

    You can do so but then at the time of defining the viewset you need to ensure the rowspan and colspan correctly to fit the first and the second view. More over the configuration also needs to be maintained correctly.
    Regards,
    Harshit

  • Multiple logon for Microsoft Server 2008 R2

    I currently work for the U.S. Government as a System Administrator.  I'm in the middle of an inspection on my system and one of the inspector asked me about multiple logon for Microsoft Server 2008 R2.
    How many times are you allowed to logon to Microsoft Server 2008 R2 before it lock the system?  And also if I'm the system administrator what is the limit on logging to different systems with my account.
    These are questions that I do not have an answer to and I couldn't find any assistance on the Tech Support website.
    Thank you for your assistance.
    Andre'

    Hi,
    If you mean how many users can log on the same computer, this is limited by the resource:
    If You  refer system administrator as domain administrator, domain administrators have full administration rights to their domain.
    Alex Zhao
    TechNet Community Support

  • Configuring multiple instances of weblogic server 7.0 on single machine

    Hi,
    I am trying to configure multiple instances of weblogic server 7.0 on single machine
    ( sun Solaris 7). I tried to create everytime new domain. Can anybody help me.
    Thanks in advance.
    Ravi

    You can have several servers under one domain. No need to create a new
    domain for each server. Just configure a server and make sure they are
    listening on different ports. you are all set.
    Kumar
    ravikiran wrote:
    Hi,
    I am trying to configure multiple instances of weblogic server 7.0 on single machine
    ( sun Solaris 7). I tried to create everytime new domain. Can anybody help me.
    Thanks in advance.
    Ravi

  • ColdFusion caching SQL Server credentials?

    I have been using ColdFusion's storedProc() service for a while with no issue.  However, I have run into a scenario where I have a local stored procedure executing a remote stored procedure.  When I attempt this via ColdFusion, I receive a very cryptic error:
    The DBMS has returned the command code 224...
    The following is the code I am using:
    variables.storedProcService = new storedProc();
    variables.storedProcService.clear();
    variables.storedProcService.setAttributes(datasource="DATASOURCE", procedure="STOREDPROCNAME");
    variables.storedProcService.addParam(cfsqltype="CF_SQL_INTEGER", type="in", value=0);
    variables.storedProcService.execute();
    However, executing the exact same procedures from SQL Server Management Studio results in no issues.
    Then, when I use the following code:
    variables.storedProcService = new storedProc();
    variables.storedProcService.clear();
    variables.storedProcService.setAttributes(datasource="DATASOURCE", procedure="STOREDPROCNAME", username="USERNAME", password="PASSWORD");
    variables.storedProcService.addParam(cfsqltype="CF_SQL_INTEGER", type="in", value=0);
    variables.storedProcService.execute();
    The execution runs without issue.  My question is this, does ColdFusion cache SQL Server/Datasource credentials?  Why does it [seem to] not use the credentials I provided in Jrun?

    HiTopp wrote:
    variables.storedProcService = new storedProc();
    variables.storedProcService.clear();
    variables.storedProcService.setAttributes(datasource="DATASOURCE", procedure="STOREDPROCNAME", username="USERNAME", password="PASSWORD");
    variables.storedProcService.addParam(cfsqltype="CF_SQL_INTEGER", type="in", value=0);
    variables.storedProcService.execute();
    The execution runs without issue.
    I can actually just include the password attribute and the stored procedure runs just fine.

  • SNC configuration in multiple application server environment

    Hello Experts,
    We are planning for SNC configuration between ECC 6  and NW04s Portal systems.
    ECC 6.0 is running with Central Instance and two application servers.
    NW04s EP is running with 4 server nodes.
    I am very much clear about setting up SNC between ABAP and JAVA running with single application server and server node.
    But totally confused about SNC/SSL setup in multiple server environment. Would really appreciate if you can provide some ideas/docuements on setting up SNC/SSL in multiple server environment.
    1. Do we need to create multiple PSE for each of the ABAP application server? If yes then would the CN should be same or different.
    2. If we create only one PSE for central instance and copy this to other application server - will this work.
    Looking forward to hear from your experiences.
    Regards
    Davinder

    Hi,
    Please check the link http://help.sap.com/saphelp_nw04/helpdata/en/69/b0bbd6dde71141bee8806586144796/frameset.htm
    Regards,
    Gowrinadh

  • Can CPS be installed multiple times on same server

    We have implemented CPS in our environment but want to know
    if CPS and can be installed multiple times the same server. We are
    using Contribute 3 as the client but our users don't know if they
    want to share administration for both Intranet and Public site
    development. So we have to see what are real options are.
    Thanks for any respones in advance.

    When you say share administration are you referring to user
    administration? There's no reason to need more than one instance
    unless you are allowing them to independently manage their
    users.

  • Users have multiple AFP connections on server?

    Our server is running 10.6.7 and in Server Admin under AFP connection we are noticing users with multiple connections to server.  The settings are enabled to "disconnect users after they are idle" for 60 minutes and also "allow to sleep for 4 hours" checked.  I have 2 other servers with the same settings that average 60-80 connections but this server continues to average 250+ connections, many of which are multiple users from same IP address.  Does anyone have ideas as to why server isn't reseting connections?

    Who says the server isn't resetting connections? How do you know these connections are not active?
    It's not uncommon for one user to have multiple connections to a server, depending on your sharepoint configuration. Each shared resource will consume one connection for each user. This means that if your users' home directories are on the server, as well as a group sharepoint and a public share/dropbox, then each user would have three connections. Does that cover your usage?

Maybe you are looking for

  • IPhone 5 Verizon-Will I be able to use my phone in The Philippines with a local filipino sim card?

    Hello Everyone! QUESTION: Will I be able to use a local sim card for cellular service when I'm in the Philippines?                               - I have an IPhone 5 from Verizon Wireless                               - Running IOS 7                 

  • Sneak Preview Java 04s : what to do with it?

    Hi everyone, I downloaded and installed Sneak Preview 04s full Java edition. I'm a BW consultant, not too experience with Portal, and I can't fin out what to do with this installation. I thought this Java edition would also give me access to an class

  • DEP update for acrobat Vulnerability identifier: APSA09-07

    I deactived javascript in my acrobat to prevent the issue Adobe made everyone aware of on 12/1/509. Does the update 9.3.0 take care of this? can i now enable javascript again?

  • How to use setVariableData in Java Embedding in BPEL 2.0

    Hi, I need to use the code setVariableData("outPutVariable","payload","/client:processResponse/client:result","ABCDE") in BPEL 2.0 What code should I write in BPEL 2.0? i.e. BPEL 1.1 - setVariableData("outPutVariable","payload","/client:processRespon

  • CSS 11500 - Radius / RSA SecureID Setup

    I am trying to setup a CSS to use RADIUS for RSA/ACE SecureID authentication. I have already setup a RADIUS server for standard authentication using the RADIUS Attribute Service-Type = Administrative and it works. However, I am not sure how I would g