Coherence with berkeley db environment configuration problem in weblogic

Hi
i am new to coherence and i developed a web application. in my app coherence is a cache and berkely db is a backend store. i configured the coherence-config.xml correctly as per the instructions in the oracle site.the problem is when i try to put my data in the cache i am getting an exception like this
java.lang.NoSuchMethodError: com/sleepycat/je/EnvironmentConfig.setAllowCreate(Z)V
     at com.tangosol.io.bdb.DatabaseFactory$EnvironmentHolder.configure(DatabaseFactory.java:544)
     at com.tangosol.io.bdb.DatabaseFactory$EnvironmentHolder.(DatabaseFactory.java:262)
     at com.tangosol.io.bdb.DatabaseFactory.instantiateEnvironment(DatabaseFactory.java:157)
     at com.tangosol.io.bdb.DatabaseFactory.(DatabaseFactory.java:59)
     at com.tangosol.io.bdb.DatabaseFactoryManager.ensureFactory(DatabaseFactoryManager.java:74)
     at com.tangosol.io.bdb.BerkeleyDBBinaryStoreManager.createBinaryStore(BerkeleyDBBinaryStoreManager.java:176)
     at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateExternalBackingMap(DefaultConfigurableCacheFactory.java:2620)
     at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(DefaultConfigurableCacheFactory.java:1449)
     at com.tangosol.net.DefaultConfigurableCacheFactory$Manager.instantiateBackingMap(DefaultConfigurableCacheFactory.java:3904)
     at com.tangosol.coherence.component.util.CacheHandler.instantiateBackingMap(CacheHandler.CDB:7)
     at com.tangosol.coherence.component.util.CacheHandler.setCacheName(CacheHandler.CDB:35)
     at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.instantiateCacheHandler(ReplicatedCache.CDB:16)
     at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.ensureCache(ReplicatedCache.CDB:152)
     at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache$Router(SafeCacheService.CDB:1)
     at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache(SafeCacheService.CDB:33)
     at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:875)
     at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1223)
     at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:290)
     at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
     at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:712)
     at com.coherence.cachestore.ReadFromFile.putValuesInCache(ReadFromFile.java:149)
     at com.coherence.cachestore.ReadFromFile.doPost(ReadFromFile.java:78)
     at com.coherence.cachestore.ReadFromFile.doGet(ReadFromFile.java:43)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3717)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
i google it but i got the answer for setting the environment in the java class(even this is also not succeed).i dont know how to do it for coherence. how coherence will take the berkely db configuration when i load the data in catch.please help me. if you know the answer please show the code how to configure the berkely db environment configuration for coherence and where i need to chanage/create and what should i have to do coherence will invoke the berkely db environment and store the data in the local disk. i am using coherence 3.6 with weblogic 10.3.5 server
Edited by: 875786 on Dec 2, 2011 4:37 AM
Edited by: 875786 on Dec 2, 2011 4:39 AM

Hi Thank you very much. Its works fine with je 3.3 version. I have several doubts.as per my application configuration its stores the data in local disk using berkely db. when i restart the server the cache data is no more but the stored data is available in the disk , is there any configuration or technique is available for pre load the data from disk to catch. (i am using replicated cache scheme).if yes menas please provide the full detail and sample code. thanks in advance.

Similar Messages

  • Configuration problem in Weblogic 8.1.1 and 8.1.3

    We have a problem when we hitting instrumented axis services in weblogic 8.1.1 and 8.1.3.
    1.First we create a domain its use for only axis services.
    2.We set the class path according to my project.
    3.I start the server and deploy my axis services.its deploying nicely.
    4.After that used my project and configure the services to getting log file purpose.
    5.After instrument/configuration the service,I restart the server that time the service is redeploy and create the temporary file in .wlnotdelete directory our jar file put inside in this folder extract/myserver_calc1_calc1.This is my deploying service place.
    6.But its not happening in this version of weblogic in that we redeploy the same services its works fine and getting log files.
    7.when i redploy the same service that time only its working fine.
    8.But i don't want to redploy the service. I want only restart time its happen that's only correct.
    9.This problem is only happening in weblogic 8.1.1 and 8.1.3 its not happening in weblogic 7.5 and 8.1.4 is working fine and getting log files.
    10.can any one give me a solution to rectify this problem in Weblogic 8.1.1 and 8.1.3.

    I don't know about that, but I am using MyFaces and tomahawk with WLS8.1 sp5 jdk1.4.2_05 and it works fine.
    I do remember getting such an error when I moved from Sun RI to MyFaces and all I can recall is that it was a commons library mismatch problem or some classpath problem...

  • Using Berkeley With Two Different Environment Simultaneously

    I am trying to use Berkeley with two different environment simultaneously in one program. But I am getting an error message of Databases left open. The first environment close with no error but the 2nd environment, having an error like this,
    Exception in thread "main" java.lang.IllegalStateException: Unclosed Database: element_primary_key_index\\192.168.150.211\glassfish3\Berkeley\environment\Testing11
    Unclosed Database: class_catalog\\192.168.150.211\glassfish3\Berkeley\environment\Testing11
    Unclosed Database: element_database\\192.168.150.211\glassfish3\Berkeley\environment\Testing11
    Databases left open: 3
         at com.sleepycat.je.Environment.close(Environment.java:383)
         at com.svi.tools.gfs3v10domain.database.GFS3v10ReadWriteDatabase.closeUpload(GFS3v10ReadWriteDatabase.java:155)
         at com.svi.tools.gfs3v10domain.GFS3v10Domain.closeReadWrite(GFS3v10Domain.java:160)
         at com.svi.tools.gfs3v10.util.GFS3v10UploadUtil.closeUpload(GFS3v10UploadUtil.java:97)
         at com.svi.tools.gfs3v10.GFS3v10.closeUpload(GFS3v10.java:115)
         at com.svi.tools.gfs3v10uploader.util.Uploader.uploadFiles(Uploader.java:89)
         at com.svi.tools.gfs3v10uploader.GFS3v10Uploader.mainMethod(GFS3v10Uploader.java:109)
         at com.svi.tools.gfs3v10uploader.GFS3v10Uploader.main(GFS3v10Uploader.java:52)
    Please someone help me with my problem. Thanks in advance.

    Hi Mark,
    Here is my sample program for the problem:
    import java.io.File;
    import com.sleepycat.bind.serial.StoredClassCatalog;
    import com.sleepycat.je.Database;
    import com.sleepycat.je.DatabaseConfig;
    import com.sleepycat.je.Environment;
    import com.sleepycat.je.EnvironmentConfig;
    import com.sleepycat.je.EnvironmentLockedException;
    import com.sleepycat.je.SecondaryConfig;
    import com.svi.tools.gfs3v10domain.objects.GFS3v10DomainElementData;
    import com.svi.tools.gfs3v10domain.objects.GFS3v10DomainElementKey;
    import com.svi.tools.gfs3v10domain.views.utils.ElementByPrimaryKeyCreator;
    * Read Write Database used for every thing else.
    public class MethodsSample implements GFS3v10Database {
         * Environment where the Database resides.
         private Environment environment = null;
         private boolean isClose = false;
         String environmentString;
         * Class Catalog for Stored Classes.
         private static StoredClassCatalog classCatalog;
         * Element Database.
         private static Database elementDatabase;
         * Element Database by Primary Key.
         private static Database elementByPrimaryKeyDatabase;
         private static Database catalogDatabase;
         * Default Constructor.
         public MethodsSample() {
    * Alternate Constructor.
    * @param homeDirectory Location where the Database is Located.
    public MethodsSample(String homeDirectory) {
         environmentString = homeDirectory;
         openEnvironment(homeDirectory);
         openDatabase();
    @Override
         * Opens the Read Write Database.
         * @param homeDirectory Location where the Database is Located.
    public void openEnvironment(String homeDirectory) {
         EnvironmentConfig environmentConfig = new EnvironmentConfig();
    environmentConfig.setTransactional(true);
    environmentConfig.setAllowCreate(true);
    environmentConfig.setDurability(DURABILITY);
    while (environment == null) {
         try {
              environment = new Environment(new File(homeDirectory), environmentConfig);
         } catch(EnvironmentLockedException ele) {
              try {
                             Thread.sleep(500);
                        } catch (InterruptedException e) {
    @Override
         * Opens the Database.
    public void openDatabase() {
         DatabaseConfig databaseConfig = new DatabaseConfig();
         databaseConfig.setDeferredWrite(true);
    databaseConfig.setAllowCreate(true);
    catalogDatabase = environment.openDatabase(null, CLASS_CATALOG + environmentString, databaseConfig);
    classCatalog = new StoredClassCatalog(catalogDatabase);
    elementDatabase = environment.openDatabase(null, ELEMENT_DATABASE + environmentString, databaseConfig);
    SecondaryConfig secondaryConfig = new SecondaryConfig();
    secondaryConfig.setDeferredWrite(true);
    secondaryConfig.setAllowCreate(true);
    secondaryConfig.setSortedDuplicates(true);
    secondaryConfig.setKeyCreator(new ElementByPrimaryKeyCreator(classCatalog, GFS3v10DomainElementKey.class, GFS3v10DomainElementData.class, String.class));
    elementByPrimaryKeyDatabase = environment.openSecondaryDatabase(null, ELEMENT_PRIMARY_KEY_INDEX + environmentString, elementDatabase, secondaryConfig);
    @Override
         * Gets the Environment.
         * @return Environment.
    public Environment getEnvironment() {
         return environment;
    @Override
         * Gets the Class Catalog.
         * @return Class Catalog.
    public StoredClassCatalog getClassCatalog() {
         return classCatalog;
    @Override
         * Gets Element Database.
         * @return Element Database.
    public Database getElementDatabase() {
         return elementDatabase;
    @Override
         * Gets Element By Primary Key Database.
         * @return Element By Primary Key Database.
    public Database getElementByPrimaryKeyDatabase() {
         return elementByPrimaryKeyDatabase;
    @Override
         * Closes Database and then Environment.
    public void closeUpload() {
         System.out.println("1st Jar environment closing = " + environmentString);
         elementByPrimaryKeyDatabase.close();
         elementDatabase.close();
         classCatalog.close();
         catalogDatabase.close();
         environment.close();
         isClose = true;
    public Boolean isClose() {
         return isClose;
         @Override
         public void closeOthers() {
    for the Main:
    public class sample {
         public static void main(String[] args) {
              String environment1 = "\\\\192.168.160.184\\glassfish\\berkeley\\environment\\home\\Multiple\\Testing11";
              String environment2 = "\\\\192.168.150.211\\glassfish3\\Berkeley\\environment\\Testing11";
              openCloseEnvironment(environment1, environment2);
         public static void openCloseEnvironment(String environment1, String environment2) {
              MethodsSample forEnvironment1 = new MethodsSample(environment1); //Opens the Databases
              MethodsSample forEnvironment2 = new MethodsSample(environment2); //Opens the Databases
              forEnvironment1.closeUpload();
              forEnvironment2.closeUpload();
    // same error happens no matter what sequence for closing
    Thank you.

  • Good afternoon.I have a computer with W Vista 8, Windows office home and business 2013. I recently tried to install Photoshop Elements by CD with serial number but on the desktop appears the following message: error 1 (configuration problem) try to uninst

    What's error 1 in adobe photoshop elements configuration? I have a computer with W Vista 8, Windows office home and business 2013. I recently tried to install Photoshop Elements by CD with serial number but on the desktop appears the following message: error 1 (configuration problem) try to uninstall and reinstall. I have done this but the message continues to appear

    You haven't mentioned which version of PSE. If it is PSE 13, that requires a minimum of windows 7.

  • TS1362 my iTunes wont play music or videos when i open it it comes up with "iTunes has detected a problem with your audio with your configuration AudioVideo playback may not operate properly"

    my iTunes wont play music or videos when i open it it comes up with "iTunes has detected a problem with your audio with your configuration AudioVideo playback may not operate properly" i have uninstalled it and reinstalled it twice and it stil lcomes up with that message every time I opentheiTunes icon I dont knowwhat to do

    Hello Wade,
    This is typically indicative of an issue with the installation of QuickTime on your computer. The following article provides steps for reinstalling QuickTime to resolve the issue.
    "iTunes cannot run because it has detected a problem with your audio configuration"
    Resolution
    QuickTime may need to be reinstalled. Follow the steps below to uninstall QuickTime and then download and install QuickTime using the QuickTime standalone Installer.
    On the Start menu, click Control Panel.
    Follow the steps appropriate for your Windows operating system below.
    Windows XP and Windows 2000: Open the Add or Remove Programs control panel and selectQuickTime in the list of currently installed programs.
    Windows Vista and Windows 7: Click Uninstall a program (or if using Windows Vista's Classic View of the Control Panel, click Programs and Features) and select QuickTime in the list of currently installed programs.
    Click the Remove button (or Uninstall for Windows Vista and Windows 7) and follow the prompts to remove QuickTime from your computer.
    Download QuickTime. Note: There are two options for downloading QuickTime, be sure to select the option that does not include iTunes.
    During the download:
    If you choose to run the installer, proceed to the next step.
    If you choose to save the download, double click the QuickTimeInstaller file, then proceed to next step.
    Follow the on-screen instructions to install QuickTime.
    Reopen iTunes.
    iTunes for Windows: iTunes cannot run because it detects an issue with QuickTime
    http://support.apple.com/kb/TS1371
    Cheers,
    Allen

  • Configuration problem with param or code problem

    Hi,
    Im new to this jsp. Currently, i have some some Q here. Im trying on the jsp-tutorial with
    <%@ taglib prefix="my"
    uri="./jsp2/jsp2-example-taglib.tld" %>
    <HEAD>
    <TITLE>Functions</TITLE>
    </HEAD>
    <BODY>
    <H3>Add Numbers</H3>
    <P>
    <FORM action="./compute.jsp" method="GET">
    X = <input type="text" name="x" value="${param["x"]}">
    <BR>
    Y = <input type="text" name="y" value="${param["y"]}">
    <input type="submit" value="Add Numbers">
    </FORM>
    <P>
    The sum is: ${my:add(param["x"],param["y"])}
    </BODY>
    </HTML>
    inside the text box it appear the text with ${param[[/i], may i know is it a configuration problem?
    Thx for reply

    Probably yes it is a configuration problem.
    You have a JSP2.0 container? (eg Tomcat 5)
    If your web.xml starts with this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
    Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    Replace it with this
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    That should fix it.
    http://forum.java.sun.com/thread.jspa?threadID=629437&
    tstart=0Sorry,
    I already hav
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    originaly.

  • Configuration problem with a client proxy

    Hi,
    Each time I try to create a stateless proxy (associated to a stateless web service), SAP raise the same problem when he execute :
    create object rfc_proxy.
    When I debug the code, I find that the proxy configuration is wrong.
    In CL_SRT_LP_MAINTENANCE~READ_LP_CONFIG, it reads the proxy's configuration from the table srt_lp_feat and does a test (IF) which provokes my problem.
    method read_lp_config.
      select * from srt_lp_feat into ls_lp_feat
               where proxyclass = proxyclass
                 and lp_name    = lp_name
                 and active     = 'A'.
        ls_cfg-feature  = ls_lp_feat-feature.
        ls_cfg-property = ls_lp_feat-property.
        ls_cfg-value    = ls_lp_feat-value.
        if not ls_cfg-value is initial or ls_cfg-property is initial.
          append ls_cfg to lt_cfg.
        endif.
      endselect.
    This function returns a table with the proxy's configuration. Here is the table header :
    <i>FEATURE | PROPERTY | VALUE | USE_DEFAULT</i>
    And for one line (<i>FEATURE</i> = http://www.sap.com/webas/630/soap/features/transportguarantee/), I found that the property and value field are "initial".
    Can it normally happen ?
    I have made some other test to understand the priority of NOT in the IF statement.
    Test 1 :
    if not lp_feat-value is initial or lp_feat-property is initial.
    Test 2 :
    if not ( lp_feat-value is initial or lp_feat-property is initial ).
    Test 3 :
    if lp_feat-value is not initial and lp_feat-property is not initial.
    The test 2 and 3 returns the same good result where the test 1 returns line where the property field is "initial".
    So, am I wrong or the method <i>read_lp_config</i> seems to have a bug ?
    Regards,
    Gautier

    Calin wrote:
    out.flushdo the thing! But i don`t get it why? I have to use "flush" after each time i use out (DataOutputStream) ?
    Thanks!The output stream has a buffer and isn't directly writing the data to the socket. Calling flush forces a write.
    Kaj

  • Configuration problem with external Western Digital My Book 2 TB drive

    How do I fix a configuration problem with my external Western Digital My Book 2 TB drive which used to both read and write. Something has happened so that the drive is now read only? There is 600 GB of data on the drive that I cannot lose, thus am very concerned about messing around with formatting the drive which is raid 1 and filled with data.

    may not like to hear, but I'd skip on MyBook cases, nice looking as they are.
    Get a 2nd drive case to recover to.
    http://www.macsales.com/firewire
    may need to play with the demo Data Rescue 3 from Prosoft
    Backup/recover before repair is usually in order
    never have one backup set. THREE sets of your data, minimum.
    3rd party disk maintenance and repair should be a must and given rather than rely solely on Apple Disk Utility.
    Data and system maintenance and recovery plan - should be like practice for sports, arts, military with practice and making sure you will know how and the tools you need - ahead of time
    Resetting USB/FW ports, try another if one won't work. When 10.6 came out there was a lot of grinding teeth with external drives not working or mounting.

  • Having problem with the development environment

    I have trouble with my development environment where I can't see the top portion of the screen. I'm using windows 8 and just download Edge Animate (2014) yesterday.. I uninstall and install the product again and still having the problem.

    Hi Todd,
    Thanks for writing to us with your concern. We are sorry to know that you are facing issues while using the software.
    We are unable to repro the issue on Windows Hi-res machines. Works properly on local test machines.
    Can you please share your system information file with us,
    What is System Information? - Windows Help
    Collect the system file and send me a private message.
    Regards,
    Devendra

  • Problems with two diffrent Hibernate Configurations

    Hy !!
    I need once more your Help .
    I`m working with Hibernate and the HSQL - DB .
    The problem is that i have two diffrent Hibernate - Configuration
    (as configuration.cfg.xml) .
    One for normal ,one for in - memory use.
    Now i�ll try to make a hybernateUtil class which uses this two configurations .
    But how and where can i bring these config - Files into my code .
    I tried this :
    sessionFactory = new Configuration().configure("absolutePath\\configuration.cfg.xml").buildSessionFactory();
    but i got this :
    FATAL HibernateUtil - Configuration problem: E:\JavaWorkspace\SpeechMachine 0.220\src\hibernateConfiguration\hibernate1.cfg.xml not found
    net.sf.hibernate.HibernateException: E:\JavaWorkspace\SpeechMachine 0.220\src\hibernateConfiguration\hibernate1.cfg.xml not found
    but it is there .
    Do one of you know more .
    Please write .
    Yours Jonas

    E:\JavaWorkspace\SpeechMachine 0.220\src\hibernateConfiguration\hibernate1.cfg.xml not found
    but it is there .Better check your assumption. If it says it's not found, then it probably isn't. Maybe you misspelled part of that path. Or maybe it has no rights to access it.

  • "Problem with Your Audio/Video Configuration"

    "I Tunes Has Detected a Problem with Your Audio/Video Configuration. Audio/video playback may not operate properly."
    Does anyone know why I'm getting this error message? After getting it, I usually cannot hear any sound on I Tunes or other media players.
    I've already tried uninstalling and re-installing the drivers and it doesn't help. I also have the latest version of I Tunes. Any ideas?

    I had this problem also and uninstalled and then reinstalled Quick-time yesterday and the problem was solved.
    However when I turned on my PC today, I had the same problem again but this time uninstalling and reintsalling Quick-time is not working.
    Anyone any other suggestions as to how to fix this problem?
    Thanks.
    Dell Dimension 3100   Windows XP  

  • CS7u2 and Glassfish 2.1.1 with HADB: Configuration Problem

    Hi all,
    I´m trying to setup a HA configuration with Calendar 7 u2 and Glassfish 2.1.1, I´m using the notes from: https://wikis.oracle.com/display/CommSuite/Making+Calendar+Server+Highly+Available
    But there are not accurate enough. So far, I managed to build and run the cluster: dav-cluster but I have some doubts with the calendar init-config script, particularly with these questions:
    Enter Application Server Instance Name [server] {"<" goes back, "!" exits}: dav-cluster
    Enter Virtual Server Identifier [server] {"<" goes back, "!" exits}: dav-cluster
    What should I answer?
    I follow the wiki and I´m using these configuration:
    dav-cluster ---> HADB cluster
    dav-agent-1 --> agent nodes
    dav-agent-2
    instance1 --> instances
    instance2
    Does anybody have experience with these kind of configuration?
    I appreciate any comments.
    Thanks in advanced.

    I believe you should keep the virtual server identifier as server, only change the target instance to dav-cluster.
    Enter Application Server Instance Name [server] {"<"!" exits}: dav-cluster
    Enter Virtual Server Identifier [server] {"<" goes back, "!" exits}: server
    Please give that a try.

  • Need help with Berkeley XML DB Performance

    We need help with maximizing performance of our use of Berkeley XML DB. I am filling most of the 29 part question as listed by Oracle's BDB team.
    Berkeley DB XML Performance Questionnaire
    1. Describe the Performance area that you are measuring? What is the
    current performance? What are your performance goals you hope to
    achieve?
    We are measuring the performance while loading a document during
    web application startup. It is currently taking 10-12 seconds when
    only one user is on the system. We are trying to do some testing to
    get the load time when several users are on the system.
    We would like the load time to be 5 seconds or less.
    2. What Berkeley DB XML Version? Any optional configuration flags
    specified? Are you running with any special patches? Please specify?
    dbxml 2.4.13. No special patches.
    3. What Berkeley DB Version? Any optional configuration flags
    specified? Are you running with any special patches? Please Specify.
    bdb 4.6.21. No special patches.
    4. Processor name, speed and chipset?
    Intel Xeon CPU 5150 2.66GHz
    5. Operating System and Version?
    Red Hat Enterprise Linux Relase 4 Update 6
    6. Disk Drive Type and speed?
    Don't have that information
    7. File System Type? (such as EXT2, NTFS, Reiser)
    EXT3
    8. Physical Memory Available?
    4GB
    9. Are you using Replication (HA) with Berkeley DB XML? If so, please
    describe the network you are using, and the number of Replica’s.
    No
    10. Are you using a Remote Filesystem (NFS) ? If so, for which
    Berkeley DB XML/DB files?
    No
    11. What type of mutexes do you have configured? Did you specify
    –with-mutex=? Specify what you find inn your config.log, search
    for db_cv_mutex?
    None. Did not specify -with-mutex during bdb compilation
    12. Which API are you using (C++, Java, Perl, PHP, Python, other) ?
    Which compiler and version?
    Java 1.5
    13. If you are using an Application Server or Web Server, please
    provide the name and version?
    Oracle Appication Server 10.1.3.4.0
    14. Please provide your exact Environment Configuration Flags (include
    anything specified in you DB_CONFIG file)
    Default.
    15. Please provide your Container Configuration Flags?
    final EnvironmentConfig envConf = new EnvironmentConfig();
    envConf.setAllowCreate(true); // If the environment does not
    // exist, create it.
    envConf.setInitializeCache(true); // Turn on the shared memory
    // region.
    envConf.setInitializeLocking(true); // Turn on the locking subsystem.
    envConf.setInitializeLogging(true); // Turn on the logging subsystem.
    envConf.setTransactional(true); // Turn on the transactional
    // subsystem.
    envConf.setLockDetectMode(LockDetectMode.MINWRITE);
    envConf.setThreaded(true);
    envConf.setErrorStream(System.err);
    envConf.setCacheSize(1024*1024*64);
    envConf.setMaxLockers(2000);
    envConf.setMaxLocks(2000);
    envConf.setMaxLockObjects(2000);
    envConf.setTxnMaxActive(200);
    envConf.setTxnWriteNoSync(true);
    envConf.setMaxMutexes(40000);
    16. How many XML Containers do you have? For each one please specify:
    One.
    1. The Container Configuration Flags
              XmlContainerConfig xmlContainerConfig = new XmlContainerConfig();
              xmlContainerConfig.setTransactional(true);
    xmlContainerConfig.setIndexNodes(true);
    xmlContainerConfig.setReadUncommitted(true);
    2. How many documents?
    Everytime the user logs in, the current xml document is loaded from
    a oracle database table and put it in the Berkeley XML DB.
    The documents get deleted from XML DB when the Oracle application
    server container is stopped.
    The number of documents should start with zero initially and it
    will grow with every login.
    3. What type (node or wholedoc)?
    Node
    4. Please indicate the minimum, maximum and average size of
    documents?
    The minimum is about 2MB and the maximum could 20MB. The average
    mostly about 5MB.
    5. Are you using document data? If so please describe how?
    We are using document data only to save changes made
    to the application data in a web application. The final save goes
    to the relational database. Berkeley XML DB is just used to store
    temporary data since going to the relational database for each change
    will cause severe performance issues.
    17. Please describe the shape of one of your typical documents? Please
    do this by sending us a skeleton XML document.
    Due to the sensitive nature of the data, I can provide XML schema instead.
    18. What is the rate of document insertion/update required or
    expected? Are you doing partial node updates (via XmlModify) or
    replacing the document?
    The document is inserted during user login. Any change made to the application
    data grid or other data components gets saved in Berkeley DB. We also have
    an automatic save every two minutes. The final save from the application
    gets saved in a relational database.
    19. What is the query rate required/expected?
    Users will not be entering data rapidly. There will be lot of think time
    before the users enter/modify data in the web application. This is a pilot
    project but when we go live with this application, we will expect 25 users
    at the same time.
    20. XQuery -- supply some sample queries
    1. Please provide the Query Plan
    2. Are you using DBXML_INDEX_NODES?
    Yes.
    3. Display the indices you have defined for the specific query.
         XmlIndexSpecification spec = container.getIndexSpecification();
         // ids
         spec.addIndex("", "id", XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         spec.addIndex("", "idref", XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // index to cover AttributeValue/Description
         spec.addIndex("", "Description", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ELEMENT | XmlIndexSpecification.KEY_SUBSTRING, XmlValue.STRING);
         // cover AttributeValue/@value
         spec.addIndex("", "value", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // item attribute values
         spec.addIndex("", "type", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // default index
         spec.addDefaultIndex(XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ELEMENT | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         spec.addDefaultIndex(XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // save the spec to the container
         XmlUpdateContext uc = xmlManager.createUpdateContext();
         container.setIndexSpecification(spec, uc);
    4. If this is a large query, please consider sending a smaller
    query (and query plan) that demonstrates the problem.
    21. Are you running with Transactions? If so please provide any
    transactions flags you specify with any API calls.
    Yes. READ_UNCOMMITED in some and READ_COMMITTED in other transactions.
    22. If your application is transactional, are your log files stored on
    the same disk as your containers/databases?
    Yes.
    23. Do you use AUTO_COMMIT?
         No.
    24. Please list any non-transactional operations performed?
    No.
    25. How many threads of control are running? How many threads in read
    only mode? How many threads are updating?
    We use Berkeley XML DB within the context of a struts web application.
    Each user logged into the web application will be running a bdb transactoin
    within the context of a struts action thread.
    26. Please include a paragraph describing the performance measurements
    you have made. Please specifically list any Berkeley DB operations
    where the performance is currently insufficient.
    We are clocking 10-12 seconds of loading a document from dbd when
    five users are on the system.
    getContainer().getDocument(documentName);
    27. What performance level do you hope to achieve?
    We would like to get less than 5 seconds when 25 users are on the system.
    28. Please send us the output of the following db_stat utility commands
    after your application has been running under "normal" load for some
    period of time:
    % db_stat -h database environment -c
    % db_stat -h database environment -l
    % db_stat -h database environment -m
    % db_stat -h database environment -r
    % db_stat -h database environment -t
    (These commands require the db_stat utility access a shared database
    environment. If your application has a private environment, please
    remove the DB_PRIVATE flag used when the environment is created, so
    you can obtain these measurements. If removing the DB_PRIVATE flag
    is not possible, let us know and we can discuss alternatives with
    you.)
    If your application has periods of "good" and "bad" performance,
    please run the above list of commands several times, during both
    good and bad periods, and additionally specify the -Z flags (so
    the output of each command isn't cumulative).
    When possible, please run basic system performance reporting tools
    during the time you are measuring the application's performance.
    For example, on UNIX systems, the vmstat and iostat utilities are
    good choices.
    Will give this information soon.
    29. Are there any other significant applications running on this
    system? Are you using Berkeley DB outside of Berkeley DB XML?
    Please describe the application?
    No to the first two questions.
    The web application is an online review of test questions. The users
    login and then review the items one by one. The relational database
    holds the data in xml. During application load, the application
    retrieves the xml and then saves it to bdb. While the user
    is making changes to the data in the application, it writes those
    changes to bdb. Finally when the user hits the SAVE button, the data
    gets saved to the relational database. We also have an automatic save
    every two minues, which saves bdb xml data and saves it to relational
    database.
    Thanks,
    Madhav
    [email protected]

    Could it be that you simply do not have set up indexes to support your query? If so, you could do some basic testing using the dbxml shell:
    milu@colinux:~/xpg > dbxml -h ~/dbenv
    Joined existing environment
    dbxml> setverbose 7 2
    dbxml> open tv.dbxml
    dbxml> listIndexes
    dbxml> query     { collection()[//@date-tip]/*[@chID = ('ard','zdf')] (: example :) }
    dbxml> queryplan { collection()[//@date-tip]/*[@chID = ('ard','zdf')] (: example :) }Verbosity will make the engine display some (rather cryptic) information on index usage. I can't remember where the output is explained; my feeling is that "V(...)" means the index is being used (which is good), but that observation may not be accurate. Note that some details in the setVerbose command could differ, as I'm using 2.4.16 while you're using 2.4.13.
    Also, take a look at the query plan. You can post it here and some people will be able to diagnose it.
    Michael Ludwig

  • Best environment configuration practice

    we are deploying three different web applications which use bdbxml. they do not share data at all. we currently have it configured for all three apps to use the same environment but with different containers. we are running into problems where if one app goes down, it could take the entire environment down.
    is a 1:1 application to environment configuration a best practice? or is sharing one environment the best practice?
    thanks.

    Hi,
    This is the normal recovery process. If process 2 was in the middle of something, there is potential corruption on the db. So when process 2 rejoins the env with DB_RECOVERY, it will set the panic bit and start recovery. Process 1 is detecting that and getting out of the environment. After process 2 finishes up with recovery, process 1 can rejoin. This is the normal recovery process. Since we are a library, we have to be cautious about what we are doing and assume when some process terminates abnormally that something could be wrong.
    You can put different Container into different environments. OR adding that the DB_REGISTER and DB_FAILCHK flags can help reduce the number of occurrences when such panic events happen. It's worth following the reference guide documentation starting here:
    http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp_fail.html
    Thanks,
    Rucong Zhao
    Oracle Berkeley DB XML

  • I just installed LV2011 and one dll from my vi won't load with the error "application configuration is incorrect"

    I just installed LV2011 and one dll from my vi won't load with the error "application configuration is incorrect", which is Windows lingo for "missing package dependencies".  All the computers at my company with 2010 loaded seem to do OK.  When I do a Dependencies Walk I get missing Visual C debug dll's missing plus IEshims and wer which both have a whole tree of dependencies missing on my machine.  The Windows install is the same "Windows XP version 2002 Service Pack 3" on my PC and the working PC's. So I'm thinking I have to uninstall 2011 and go back to 2010.  Is this correct?  Those VC debug dll's were installed on the machines with 2010 in them but were not installed in mine.
    I've heard the advice to recompile the dll with debug turned off but I don't have access to the source code.
    Thanks in advance.

    u87 wrote:
    Thanks for the reply.  This at least tells me that going back to LV2010 is not likely to solve the problem.  The missing dll's are:
    MFC90D.dll
    MSVCR90D.dll
    IESHMS.dll
    WER.dll
    And, once again, IESHMS and WER have other dependencies.  So perhaps i need to install the Visual C++ development environment.
    IESHIMS.dll is an Internet Explorer DLL that gets usually delay loaded by shdocvw.dll. As delay load it can not cause DLL load errors but only runtime errors. Maybe your DLL has it as direct dependency but that is unlikely since it does not have a documented interface.
    WER.dll is Windows error reporting for Vista/Win7.
    MFC90D.dll is the Microsoft Foundation classes and MSVCR90D.dll is the MS C runtime library, both as debug variant.
    So all the DLLs you mention are actually MS DLLs! You haven't identified the DLL that you try to access in LabVIEW that causes these error messages. IESHIMS and WER are usually delay loaded by any component that needs it and should not likely be used by non MS code.
    What is the DLL you try to load into LabVIEW and by whom? Get the provider of that DLL to provide you a non Debug build of the DLL. Installing Visual C on all the machines just to make the DLL load is not a solution, besides that it is likely not legal since I doubt you have that many licenses.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • Is there a way to keep animated gifs moving when a page loads? At some point it just stops but the next page is still loading

    I am working on creating a website that has this "loading" image gif when I go to another page (php). Yes, ajax is cooler but i'm no expert and seo thing keeps me from using it thus i'd go for something this simple. I already tried and realized it wo

  • Crosstab with char values doesn't work

    I am using Template Builder for Word 5.6.2 to create a crosstab report. I need to create a crosstab table that has char values in the cells not numbers as is expected by the wizard. Because the sum command expectes a number it displays the NaN not a

  • Can't enable cookies

    I keep getting informed by Google+ that I need to enable cookies to log in, but I HAVE cookies enabled in all browsers. I checked my Firefox folder, but could not find a profile folder anywhere to check if cookies.sqlt was corrupted. HOW MANY TIMES D

  • Can't split code/design horizontally - stuck in vertical split

    I thought horizontal tiling was the default for the split view, but it's putting the windows one on top of the other, and the View menu doesn't have an option for horizontal split. What am I doing wrong?

  • PC Suite Privacy

    This software needs "Login" Because every body who has access to pc can see the old sms's and also for unicode sms there is problem to view from pc suite regards mohammad