Is there any memory leaks in the version 4.6.21?

Hi All:
My en so weak ,so I try my best to let you understand my mean...
I add replication to my app rencently.
It's seem any memory leaks in the version 4.6.21.
Threr is an env in my app's database. and there are 2000 dbs in the env. The 2000 dbs distributing In 200 directory . And the 200 directory is the subdirectory under the DATADIR.
In the app, client and master create all subdirectory befoer the env been opened . And In my test ,if the master app use relative path to create Db and r/w data, the data will be correct send to client, The data in the master and client will keep identical.
But, There is many memory leaks in the app.In my test ,the app will use up all memory that lead malloc failed and crash.
the app use DB_LOG_AUTOREMOVE,DB_LOG_INMEMORY,DB_REPMGR_ACKS_NONE.
cache_size = 500M.
void event_callback(DbEnv* dbenv, u_int32_t which, void *info)
     bool * isMaster = (bool *)dbenv->get_app_private();
     info = NULL;                    /* Currently unused. */
     switch (which) {
     case DB_EVENT_REP_MASTER:
          *isMaster = 1;
          dbenv->errx("switch to master mode");
          break;
     case DB_EVENT_REP_CLIENT:
          *isMaster = 0;
          dbenv->errx("switch to slaver mode");
          break;
     case DB_EVENT_REP_STARTUPDONE: /* FALLTHROUGH */
     case DB_EVENT_REP_NEWMASTER:
     case DB_EVENT_REP_PERM_FAILED:
          // I don't care about this one, for now.
          break;
     default:
          dbenv->errx("ignoring event %d", which);
Thanks
d.j
Message was edited by:
user623248

I setup logdir,datadir and envdir into different directories with
the functions set_data_dir and set_log_dir.I created two directories
under the datadir and created more than 100 sub-directories
respectively for the two dir, where the 2000 databases located.By the way, even though it doesn't seem likely to be the cause of the
memory leak, you should still fix this illegal usage of subdirectories
before we get much further investigating. We might as well eliminate
any possible source of problem, no matter how unlikely it seems.
Also, just as an experiment, I would be very tempted to try running
again without using any separate directories. In other words, don't
call set_data_dir or set_log_dir at all, and just let everything be
put into the one single directory. If that changes the results, that
will be a big clue to help us know where to look for the problem.
I'am writting a demo , but it take time.
i will reply later .Thank you. Take your time -- we'll be here.
Alan Bram
Oracle

Similar Messages

  • Is there any way to specify the default version of LabVIEW?

    I have a sinking feeling that the answer to this question is "no."  With more than one version installed, is there any way to set the default LabVIEW version for opening a VI? I have both 7.1 and 8 installed, and usually only use 8 to open an example or look at something posted here.  When I do that, it resets all the OS hooks so that the default action for opening a VI is to open it in version 8.  I've even gone so far as to create actions to open files in 7.1 and 8, but it always resets my default action.
    I found this KB article for when version 7 came out, but it's suggestions don't seem to work with 7 and 8.
    Ugh. I hate it when software thinks it knows what I want better than I do.

    eaolson wrote:
    I have a sinking
    feeling that the answer to this question is "no."  With more than
    one version installed, is there any way to set the default LabVIEW
    version for opening a VI? I have both 7.1 and 8 installed, and usually
    only use 8 to open an example or look at something posted here. 
    When I do that, it resets all the OS hooks so that the default action
    for opening a VI is to open it in version 8.  I've even gone so
    far as to create actions to open files in 7.1 and 8, but it always
    resets my default action.
    I found this KB article for when version 7 came out, but it's suggestions don't seem to work with 7 and 8.
    Ugh. I hate it when software thinks it knows what I want better than I do.
    Add
    in the LabVIEW.ini file of those versions you do not want to rewrite
    the registry on startup to point to themselves for VI files, the
    following:
    RegisterExtensions=False
    Of course the VersionChooser utility mentioned earlier is even more convinient.
    Rolf Kalbermatter
    Message Edited by rolfk on 06-28-2006 08:21 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • The latest iTunes wiped out my apps for my 2G iPod Touch by overwriting updates which are no longer compatible with iOS 4.2.  I tried to restore to an earlier version with no success.  Is there any way to download the older versions of apps which are comp

    The latest iTunes software wiped out my apps for my 2G iPod Touch by overwriting newer releases of the apps which are not compatible with iOS 4.2.1.  I tried to restore the iPod to an earlier version without success.  Is there any way to download older versions of my apps which are compatible with my older iPod?

    Your only way is if you have the version that was compatible on your computer such as in the recycle bin/trash or in a computer file backup. In that case delete the current version that is in your iTunes App library and replace it with the older version. Then sync.
    Also see:
    Recover Older Versions of iPhone Apps After Updating — Apple News, Tips and Reviews

  • Is there any Vi for getting the CPU and Memory usage of the Local as well as Remote System

    Is there any Vi for getting the CPU and Memory usage of the Local as well as Remote System

    Find the attachment(LV8.5) for local machines. 
    You can use shared variables to monitor the remote machine's usage.
    Attachments:
    Task Monitor 85.vi ‏25 KB

  • If I backed up with a newer version of iOS than the phone I am trying to backup to.. Is there any way to bypass the setup assistant in order to download the new iOS on the new phone then go back and restore from my old phone?

    if I backed up with a newer version of iOS than the phone I am trying to backup to.. Is there any way to bypass the setup assistant in order to download the new iOS on the new phone then go back and restore from my old phone?

    Try deleting your last backup by turning off iCloud Backup in Settings>iCloud>Storage & Backup, then tap Manage Storage, swipe across your backup and tap Delete, then go back and turn iCloud Backup back on again.  If it still won't back up, you may have an app that is preventing the backup from succeeding.  To locate which one, go to Settings>iCloud>Storage & Backup>Manage Storage, tap the name of your device under Backups, under Backup Options tap Show All Apps, then turn them all to Off (including camera roll) and try backing up again.  If it succeeds, then the camera roll and/or one of your apps is preventing the backup and you'll have to located by process of elimination. Turn the camera roll On and try backing up again.  If it succeeds, turn some of your apps to On and try backing up again.  If it succeeds again, turn some more apps to On then try again; repeat this process until it fails.  Eventually you'll be able to locate the problem app and exclude it from your backup.

  • We feel it better to have a status bar in firefox.we got it in firefox3 but can't find in firefox4&lettest.its really embarrasing for us not to see the exact status of browsing.is there any solution to browse lettest version with old status bar.pls answer

    we feel it better to have a status bar in firefox.we got it in firefox3 but can't find in firefox4&lettest.its really embarrasing for us not to see the exact status of browsing.is there any solution to browse lettest version with old status bar.please answer or we have to use the old one because its very ugly to see a revolving status.

    I checked the status of the server and hard drive by booting off of the 10.4 installation disk, select utilities and disk utility.
    I know very little about terminal, however I'm pretty good at dos so I can figure some things out if given some commands.
    Anyway, I ran some commands and here are the results:
    megaraid -showstatus
    MEGARAID CLI version 1.0.12
    No cmd argument
    Um, so I think I remebered the command incorrectly and I did -showdevices instead. Sorry.
    megaraid -showdevices
    Physical devices Available = 3
    Drive ID Identification Size(MB) Status
    0 Hitachi HDS722580VLSA80 78529 Failed
    1 Hitachi HDS722580VLSA80 78529 Online
    2 Hitachi HDS722580VLSA80 78529 Online
    diskutil list
    /dev/disk0
    #: type name size identifier
    0: Applepartitionscheme *153.3GB disk0
    1: Applepartitionmap 31.5KB disk0s1
    2: AppleHFSServer HD 153.2GB disk0s3
    /dev/disk1
    #: type name size identifier
    0: Applepartitionscheme *2.6GB disk1
    1: Applepartitionmap 31.5KB disk1s1
    2: AppleDriveATAPI 4.0KB disk1s2
    /dev/disk2
    #: type name size identifier
    0: untitled *467.0KB disk2
    /dev/disk3
    #: type name size identifier
    0: untitled *95.0KB disk3
    /dev/disk4
    #: type name size identifier
    0: untitled *95.0KB disk4
    /dev/disk5
    #: type name size identifier
    0: untitled *95.0KB disk5
    /dev/disk6
    #: type name size identifier
    0: untitled *219.0KB disk6
    megaraid -showconfig
    Logical Drive RAID Level Stripe Size(KB) Size(MB) Status
    0 5 64 156958 Degraded
    megaraid -showapater
    FW Version = A130
    Bios Version = G117
    Product Name = MegaRAID SATA 150-4D
    Cache Size = 64MB
    diskutil checkRAID
    No RAID sets found
    Thank you for your help. I really appreciate it and so do the teachers and the students!

  • My old computer that ran on Mavericks was stolen and my new computer runs on Yosemite. I don't like the new iMovie (10) on the Yosemite version. Is there any way to get the old version (9) back?

    My old computer that ran on Mavericks was stolen and my new computer runs on Yosemite. I don't like the new iMovie (10) on the Yosemite version. Is there any way to get the old version (9) back?

    I read his question the way I answered it.
    If that is wrong then he can clarify his question.

  • I needed memory to upgrade so I exported all of my iphoto to an external hard drive. The photos are fine but the videos are blank. I emptied the trash. Is there any way to recover the videos?

    I needed memory to upgrade so I exported all of my iphoto to an external hard drive. I then deleted and emptied the trash. The photos are fine but the videos are blank. Is there any way to recover the videos? Any software recovery programs apple supported?

    no official way but if you open the Apple TV and put the hd in the external case it should mount and give you access to the data on it

  • Are there any functional differences between the trial and the paid version?

    Are there any functional differences between the trial and the paid version for Labview 2009?  Thank you.
    Solved!
    Go to Solution.

    This outlines the limitations of the eval version of Labview: Limitations of the LabVIEW Evaluation Version
    Cheers, 
    Misha

  • Type your questionI am trying to deactivate a version and transfer it to another computer, however I have lost the card with the serial number. Is there any way of retrieving the serial number?

    Type your questionI am trying to deactivate a version and transfer it to another computer, however I have lost the card with the serial number. Is there any way of retrieving the serial number?

    Hello Irene,
    you should have a look at Adobe's database, to see what's stored/saved about your accounts. Here you will find general infos about your Adobe Account
    https://www.adobe.com/account.html and to find your serial number have a look there http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Hans-Günter

  • Memory Leak with Tomcat version update 3.2 to 6.0

    Hi, I've been trying to update tomcat from 3.2 to 6.0. My issue is that I have a memory leak(s?) that make the web application unusable. Currently in my setup I am using these components:
    Tomcat 6.0, sun JDK 1.6.0_01, mssql 2005, Microsoft SQL Server 2005 JDBC Driver 1.2, xalan 2.7.0, log4j 1.0.4 (should be only out of date component)
    It is a fairly large application that uses xslt with xalan and java servlets to display web pages. There was no issue with memory leaks before the update from tomcat 3.2, sun jdk 1.4.2 and old xalan and jdbc (for mssql 2000) components.
    My question for the community is, where should I be looking for my memory leak. Are there known issues with my setup?
    thanks for your help,
    Matt

    Just in case someone goes down the same road as me, my problem was actually the one listed on the page below. My threads are not being released after a StandardContext reload. Which I'm not sure if this leak applies to tomcat version <4 or not.
    http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669

  • Possible of memory leak in the loop

    Recently my application do get OutOfMemory issue. I realized the memory is keep on stack up as i saw in the task manager, the jlaunch keep growing and it won't drop back. That day i'm running a search function and it will query the table to retrieve the data. The jlaunch shoot from 500MB -> 2.2GB and now remain in there. Wondering is it during it query it populate at least 10,000 records into the arraylist and then the memory already allocated and once i finish run the function, it will clear the allocated memory to re-use it.
    public ArrayList ejbHomeInJDBCConnection(Map map){
         ArrayList beanList = new ArrayList();
         try{
              Context ctx = new InitialContext();
              DataSource ds = (DataSource) ctx.lookup("jdbc/POOL");
              Connection con = ds.getConnection();
              String query = "SELECT * FROM USER WHERE ";
              for (Iterator iterator = map.keySet().iterator(); iterator.hasNext();) {
                   Object key = iterator.next();
                   if(key.toString().startsWith("TIME") | key.toString().startsWith("TIMEIN")){
                        long longValue = Long.parseLong(map.get(key).toString());
                        query += key.toString()+ longValue + " AND ";      
                   }else{
                        String value = (String)map.get(key);
                        query += key.toString()+ value + " AND ";      
              String newquery = query.substring(0, query.length()-5);
              newquery += " ORDER BY TIMEIN DESC";
              Statement stmt = con.createStatement();
              try {
                   ResultSet rs = stmt.executeQuery(newquery);
                  try {
                        while (rs.next()){
                             InBean bean = new InBean();
                             bean.setSmsId(rs.getString("EMP"));
                             beanList.add(bean);
                   }finally{
                        rs.close();
              }finally{
                   stmt.close();
         }catch(Exception e){
              System.err.println(e.fillInStackTrace());
    return beanList;
    Wondering is it the InBean will cause any memory leak as if there is 10,000 records, which mean it will create 10,000 objects and once it add into the arraylist the previous bean is not in use, will the GC clear it as i didn't set it as null. Do i need to do something like reallocate/defragment the memory?
    Thanks.

    Hi,
    I'm sure a "count" would not generate the overhead you are concerned.
    To understand some aspects, you need to read the source files of Java, and understand how the stack would work in your case.
    Evertime you "add" an element to you list, the implementation will run the ensureCapacity, and grown the list one by one. Understand that the list is an Array with a lot more functions, but below, you are still working with an Array, and it needs to have a defined size. Everytime you add, it's doing a System.arraycopy(all the crap) - So you can save this, everytime you add something if you create your List with the right size.
    Note, this is not an issue if we consider small lists, of small objects, but working with large lists, you can feel slow downs.
    About the GC stuff, well.. I'm sure you can do some reading how it works. One good start point would be
    Link: [http://java.sun.com/docs/hotspot/gc1.4.2/]
    I'm sure you don't need that, but still, it's good reading. Maybe you should just increase your heap size, or you can manually clear the List using list.clear();
    Rgds,
    Daniel

  • Is there any provision to view the selected record using SYS_REFCURSOR?

    hi friends ,
    I was using SQL Server . now i am shifting to Oracle . so we are changing the Stored Procedures in SQLServer to Oracle SP's. I have given the structure of procedure given below . If possible , i want to see the output of select statement in the TOAD editor . If any body knows please help me
    CREATE OR REPLACE PROCEDURE PS_AON
    P_STATUS OUT VARCHAR2,
    P_CUR OUT SYS_REFCURSOR
    AS
    BEGIN
    OPEN P_CUR FOR
              select colum1,column2,column3 from Table 1;
    EXCEPTION
                   WHEN OTHERS THEN
                   P_STATUS:=SQLERRM;
    END;
    This is one of the model of stored procedures i am using . And the editor i am using is TOAD 7.3.0 and oracle 9i. Is there any provision to view the selected records by running this procedure in TOAD editor
    thanks & regards

    (assuming you have relatively recent version of TOAD).
    Write a small block to call the procedure (or use Toad's 'execute procedure' option) as in the example below. Note the ':' in front of 'v_cur_out'. When you run the block, TOAD will prompt you for a value / datatype for 'v_cur_out'. Ignore the value, set the datatype to 'Cursor' and click OK. The resultset (if any) will be displayed in the Data Grid window below.
    DECLARE
       v_status VARCHAR2 (32767);
    BEGIN
       ps_aon (v_status, :v_cur_out);
       DBMS_OUTPUT.PUT_LINE ('v_status => ' || v_status);
    END;
    /

  • Is there any way to change the default font for outgoing text-messages, in "Messages"? (OSX 10.10)

    Is there any way to change the default font for outgoing text-messages, in "Messages"?
    I can change it for one conversation, but then it resets to the default, tiny font.
    The preferences menu only lets me change the conversation font.
    (OSX 10.10)

    Hi,
    As you may remember there used to be a Messages pane to the Preferences where the Font and colour of the Balloons or background and the Font text colour could be changed.
    And there was a Format Menu for character, word and Sentence changes in the current IM or iMessage.
    Those have gone in Yosemite's version of Messages (Despite it retaining the designation of Messages 8 the same as Mavericks' version).
    All that can be done now is set the size of the font and this has been moved to the General Section of the Preferences.
    The Yosemite version has also been fixed to using the Balloons style of send and receiving any type of messages as well.
    Changing the Font would involved editing the Balloon.transcript file.
    10:34 pm      Saturday; December 13, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Is there any way to do the following? Regarding score, and printing.

    Hello,
    My name is Kyle, and I just started using GarageBand. I have been a Mac user for quite some time, and I just recently purchased the Jam Packs. I have been a composer for about 5 years, and I am really interested in electronic music and the possibilities that it has. GarageBand seems to be a great program, and considering it is a program that is standard on Macs now makes a lot of wonderful technology available to the general public.
    I have started using GarageBand to help me with some of my compositions, buy using the software instruments and improvising, to give me an idea of what some chordal structures sound like, and how I could interwieve some of the parts together. Is there any way to view the full score? I know that you can view the notes in note view, but is there any way to select multiple parts and view the score of the parts? This is something that I don't see, and I think it would be very helpful to view it as a full score, while also having the ability to do a single instrument input.
    Also, I was wondering if there was any way to print the notation for each part? Also, this would be helpful from score view. I use Finale 2007 for my notation for compositions, and sometimes Sibelius 4. I would like to transfer some of the stuff that I have played into Finale, so that I can do a little more editing, and incorperate it into a piece. I don't want to have GarageBand open, and read it note for note. I don't think there is any way to export them either, so that Finale or Sibelius could read the notes and rhythms. Am I asking for too much from a program that is essentially free with my system? I just see a lot of potential for the program, and I know most of my friends who are also composition majors are Mac users. I think this could be easily fixed, if these things aren't available already. If anyone knows anything about this, or has any suggestions, please let me know, as this is something I would like to use more as a tool, and I feel has a lot more potential to grow into an even better program.

    Thank you. I have heard of Logic Pro 7, but I have never personally used it. I'm still growing in the world of Composition, and I know that it is something I will be studying in one of my Computer Music classes coming up for my degree. I think it is something I will look into getting once I can justify the price of it. I guess for the time being, I will continue to play and grow in my ability to use and take advantage of GB, and then see what I can do about or with Logic Pro when I'm ready. The thought of spending $1000 for a program is hard to bite, because I've already spent a lot to produce my music, not only electronic music, but also chamber music and so on. I had no idea it would be so expensive to dive deep into the world of composition! lol.
    Finale 2007: $500
    Sibelius 4: $500
    Jam Packs: $400
    Midi Keyboard Interface: $100
    PowerBook: $1700
    Printer for printing scores and analysis: $150
    Logic Pro 7: Oy!
    As you can see it adds up very quickly...that doesn't even include my personal instruments and study materials.
    Thank you for your input, as I haven't really worked much with LP, and therefore didn't know which features are available. I will talk with some of my Composition buddies, and professors and see what they have to say as well, and who knows, I may be able to get the express version through one of them.

Maybe you are looking for

  • How can you move pages from one Muse site to another Muse site?

    I am trying to move pages from one Muse sitemap page to another Muse sitemap. This is so I can have multiple people working on creating hundreds of project profile pages and then transfer them into the master file that will be the final site.

  • Inheritance in Java

    I have a little confusion regarding inheritance in Java... or perhaps the general concept... I was trying to write polymorphic code and I encountered this question... When a class inherits from another class, all the member variable is supposed to be

  • SAP BRTOOLS first time setup

    Hi, I have been post my question couple of times, long time ago, I am really happy if someone give me right answer I having problem in BRTools setupu2026 1. In Production BR Tools working file, so I have to setup in QA system, I just change init<SID>

  • CS2 for Windows - cost of upgrade to CS6

    Can I upgrade CS2 for Windows to CS6 for Windows 7, and what is the cost?  I am also currently subscribed to CC for the Mac, which will be continued. Thank you.

  • Supported carrier

    How to activate iPhone 3G? I have a ATT card bit iTunes says it is not supported and my iphone is stuck in slide for emergency. dose anyone know how to get out. plz?