The DbEnv memery missing in win7 x64(may be a berkeley'Env bug in x64)

I am a newer programer in Berkeley,this is my first use it.
I create a BDB for png image, about 40gb, the key is used ACE_UINT64, the value is ACE_Message_Block.
I used LoadRunner create 100 user to get the image by my program.
It is correctly in win7 32bit, but it is lost memory in 64bit.
I open the Env with DB_Private | DB_init_pool | DB_thread, and set the cachesize to 1gb, also the DBt of value is set_flags(DB_DBT_MALLOC), also use free(DBt.getdata()).
My server thread's commit memory in taskmgr.exe is keep at 1gb, but the memory in used of system increase never stop, at last all of memey has been used, and my server thread stop at berkeleydb.
I find my used memory is 8gb, my system+loadruner+vs2008 at most 1.5gb, and my server thread keep in 1gb, what the other memory who used?
So I shut down the server thread, all memory came back.
So I change Berkeley DB Storage to Read my image.png direct in file system, the memory is correctly.
So must some wrong in my code to used berkeleydb, must in DBt’ alloc,so how can i free the memory in x64?
So I need helper, what’s the wrong with my DBEnv?How can I free the DBt in 64 bit?
int IMG_Storage_Environment::Initialize( ISF_Profile_Visitor & Profile )
     Env = new DbEnv( 0 );
     int env_flags = DB_CREATE | // If the environment does not exist, create it
          DB_PRIVATE |
          DB_INIT_MPOOL | // Initialize the cache
          DB_THREAD ; // Free-thread the env handle
     if ( Env->set_cachesize( 1, 0, 1) == 0 &&     Env->open( NULL, env_flags, 0 ) == 0 )
          return ERR_SUCCESS;
int IMG_Storage_BerkeleyDB::Initialize( ACE_StrItrT Layer , ACE_StrItrT Path )
     this->db = new Db( IMG_Storage_Environment::Instance()->getDbEnv(), 0 );
     if (
          0 == db->open( NULL, STR_T2A( Path ) , NULL ,DB_UNKNOWN, DB_RDONLY ,NULL)
          ISF_DEBUG( "Open DB: %s Succeed" , Path );
          return ERR_SUCCESS;
int IMG_Storage_BerkeleyDB::GetTile( int x , int y , int z , ACE_Message_Block & Data )
     ACE_UINT64 uKey=this->Key( x, y, z);
     Dbt dbKey(&uKey, sizeof(uKey));
     Dbt dbData;
     dbData.set_flags( DB_DBT_MALLOC );
     int err = db->get(NULL, & dbKey, & dbData, 0);
     if ( 0 == err )
          Data.size( dbData.get_size( ) );
          Data.rd_ptr( Data.base( ) );
          Data.wr_ptr( dbData.get_size( ) );
          ACE_OS::memcpy( Data.rd_ptr( ) , dbData.get_data( ) , dbData.get_size( ) );
     else
          ISF_DEBUG( "Image Not exist, Using Empty Image" , err );
     free(dbData.get_data());
     return ERR_SUCCESS;
Edited by: 886522 on 2011-9-21 上午1:31
Edited by: 886522 on 2011-9-21 上午1:39

I encounter the same problem, although I run Berkeley DB (Ver 6.0.20, C#) under .NET Framework and Windows server 2008(x64). Any BDB application of win32 runs well but will encounter trouble under platform of x64 when compile BDB to x64, even though the DLL compiled and linked with win32. The bug is that Berkeley DB take amount of memory as the size of databases and regardless of cacheSize. My estimation is that all memory for BDB malloced and NOT freed.

Similar Messages

  • I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file

    I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file me be open in another application."Please help I really need to get this file open.

    Since you've shown us the folder contents it's a good bet it isn't in use (no lock file). And it doesn't look like the file is mis-named as there doesn't seem to be anything else there that would be the .indd file (but just in case, open it in TextEdit and paste the first few lines here so we can see what the file header says), so the most likely case is the file is damaged. Is that on a removable device of some sort?
    You can try the tool at Repair corrupt InDesign Adobe files on Mac OS X  or send me a link to the file by private message and I'll try the recovery tool I have for Windows.

  • What Photo Shop version may work with Windows Vista Home Premium (x64) Service Pack 2?

    What Photo Shop version may work with Windows Vista Home Premium (x64) Service Pack 2?

    For the IQ700 series
    If you're running Windows Vista SP2, there is a patch for USB patch for NVIDIA chipsets
    http://support.microsoft.com/kb/975163/ 
    If you're running Windows 7, install this patch
    http://h30434.www3.hp.com/t5/Lockups-Freezes-Hangs/Driver-update-for-Win7-USB-issue-on-nVidia-chipse...
    And only use the driver from the system manufacturer's website or Windows Update. Do not use the latest drivers from NVIDIA's website for the IQ700 series

  • What is the 0x80070570 error when installing Win7 or Win8 or Win 8.1 on a clean SSD/HDD ?!

    Hello,
    My computer was working perfectly with Win7 for about 2years until I formatted on monday to clean a little bit my drives ... Since then I'm unable to install windows again. I have the 0x80070570 error.
    The complete error message is:
    Windows cannot install required files. The file may be corrupt or missing. Make sure that all files required for installation are available and restart the installation. Error code:0x80070570.
    What is the 0x80070570 error when installing Win7 or Win8 or Win 8.1 on a clean SSD/HDD ?! These versions are full from MSDN.
    What I did already:
    check my RAM (16go gskill)
    remove unnecessary hard drives
    replace my "old" SSD with a clean new one
    remove my sound cards
    remove the mouse and use only keyboard
    reset the BIOS
    check every LED on the motherboard (asus sabertooth z77) and there is no problem
    What are the problems?
    Thanks,
    Adrien.

    Hi,
    If all images cannot be installed, we have a reason to suspect the hardware cause.
    If you use two memory slots to get 16G RAM, I suggest you test with just one (8G) to check the result.
    Alex Zhao
    TechNet Community Support

  • ICloud on the web is missing events on iCal, iPhone and iPad

    I am using iCloud to sync 3 calendars between my Mac, iPhone and iPad. Bizarrely, all of the events are perfect in iCal on my Mac as well as on the iPad and iPhone. However, when using iCloud's Calendar app on the web it is a patchwork of random events missing. There seems to be no rhyme or reason to it.
    Also, with iCal running on the Mac, my Calendar app of choice, Fantastical, displays all of the events perfectly. Once I quit iCal, I get the same random missing events as the web app. Yet, Calendar, Fantastical and any other calendar apps on both my iPhone and iPad always display all the events properly.
    This has been driving me crazy. I tried exporting all of my calendars locally, deleting everything on iCloud, creating new calendars and merging in the old data. I got the same end result. I also tried importing the old calendars as completely new ones (not merged) and got the same missing events.
    If anyone has any suggestions of something I may have missed, I would be eternally grateful. I can't afford to lose any of my calendar data.

    Sign into your account on icloud.com, click on your name, then click on Time Zone.  Check that it is the correct time zone and the selected citiy is near your location.

  • Yahoo! Mail no longer loads emails and the ads are missing after having cleared Firefox's cookies, history, and cache.

    Ironically, I made this support account just to ask this question and had to go to IE to verify.
    Anyway, Yahoo! Mail use to work almost flawlessly before a couple days ago. Basically, the page loads like normal when I have a good connection except that the ads on the sides are missing, my profile picture is gone, the "fancy" rounded edges of the buttons are nonexistent, none of the menus work or open anything, and all of the links are useless. I have been searching for solutions for two hours now and none of them are relevant or useful:
    - Clear cookies = when I cleared cookies, cache and history is when the problem first started;
    - Disable Ghostery = I just learned about it today and so never installed it, but I also checked to make sure it wasn't there somehow;
    - Start in Safe Mode = the problem is still there and the only change was that it loaded the page faster;
    - Disable AVG = I can't because I can't find it anywhere...;
    - Disable Security/Change Permissions? = I think this was a suggested solution, but it already allows Yahoo! Mail to load images and set cookies while blocking pop-ups, location sharing, and installing themes/extensions;
    - Update Firefox = No. I like my old version. I keep hearing weird and annoying things about updated versions of Firefox, and I'm not going to risk losing everything else just to get Yahoo! Mail back
    I started using Firefox (3.6.12) because IE was slow, but ever since I tried clearing the cache, cookies and history Firefox has been going slower. Oddly enough, all of my browsing history was not deleted because certain web pages (that I haven't accessed in ages) show up in the address bar when I go to type. Gmail works in Firefox despite saying my browser isn't supported, but Yahoo! never bothers me about my browsers and now its acting strange.
    By the way, I don't know if this has anything to do with it, but right before Yahoo! Mail took the usability train off a cliff, it reloaded (because clearing the cookies logged me out), then told me the internet connection was slow and that I can switch to Basic for better results. I decided to stick with Classic and then it "crashed".
    Anyone help with this would be appreciated. One of the reasons I switched to FF is because Yahoo! Mail was faster on it, and I'd hate to have to go back to IE...
    Thanks in advance!

    As it turns out, many others have been having similar issues on other browsers. It seems that maybe Yahoo! is taking a much longer time to load or something like that. Either way, its been working on and off all week, and the same issue even showed up yesterday with IE 8 instead of FF. It still loads faster than IE 8, but again is spotty. Some people think the issue may be with mail.yimg.com or s.yimg.com, which I could see was the loading url in the left corner whenever Yahoo! Mail was refusing to work. A couple of people said blocking it caused the issue. Alternatively, some people suggested blocking it to solve the problem. Does anyone have any information on that? Again, I have no add-ons that would be blocking any urls, and my firewall hasn't any records of it. I really don't want to do anything to mess up my browsers more than they may have already been. Thanks for all of your help so far!

  • Read from spreadsheet: a way to automatically continue if the file is missing? (Rather than having to push "continue")

    Hi,
    I'm using the "read from spreadsheet file.vi" to read in data from a file that may or may not be present.  The data isn't required - it's optional data; nice to have but not everybody will use it.
    Of course, if the file isn't present, I get an "Error 7 occurred at Open File+.vipen File", and I have the choice of pushing either the "Continue" or "Stop" button.   What I'm wondering is:  is there a way to just have LabVIEW automatically continue if the file is missing?  Perhaps it could alert the user to the missing file, but continue anyway?   Normally I'd handle this by wiring the Error output of the function to an error indicator.  But the "read from spreadsheet file.vi" function doesn't appear to have an error output.
    I think my description of my question is sufficient, but I'm attaching a snippet of my LabVIEW code that shows the read from spreadsheet file function in question, and the error I get when the file is missing.
    Thanks,
    dan
    Solved!
    Go to Solution.
    Attachments:
    labview-read-sprdsht-error.png ‏27 KB

    Dan_the_Clam wrote:
    Why oh why do people hate them so much!  I'm a friend of local variables! 
    1. They use more memory
    2. They require something on the front panel (even if hidden).  So that is yet another copy of your data
    3. They break data flow
    4. RACE CONDITIONS!!!
    Dan_the_Clam wrote:
    my code evolves and tends to sprawl a bit.
    That tells me you do not have a good architecture to begin with.  It also tells me you need to modularize your code more and use subVIs.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • I'm no longer able to use the projector VPL-ES4 with win7, he accuses error frequency

    I'm no longer able to use the projector VPL-ES4 with win7, he accuses error frequency.
    Working at a university here in Brazil Unicamp.
    Here we have several projectors model VPL-ES4, we were using this projector with win7 however a few days they all stopped to show the image of computers accusing problem in frequency, we made all the alternatives so that One can be reestablished TRANSMISSION signal however all were in vain, reading in many forums found equal to our cases and the solution presented was to use a computer with win98 and it really worked, but with the end of support for this version of the system we are failing to use it, I wonder how we can solve this problem and why even this ocrrendo.
    I thank you in advance for help and attention
    Rafael Marques

    archie0 wrote:
    Yes. NVIDIA+CRT+VGA cable = bad EDID.
    Here's what you can do. Fully remove the xorg.conf file. Regenerate them using nvidia-xconfig, Open the nvidia's GUI as root and just click "Save configuration", or something among those lines. Google your monitor's manual and find the RIGHT vertical and horizontal sync frequency ranges. After setting them in your xorg.conf log-out and log-in again. Go to the nvidia settings gui, you should be able to use a higher resolution.
    I've tried this a few times, but always end up with a "Signal out of range".  I think the trick is finding the correct ranges.  My monitor is a Soyo Topaz S 24", and I can't find any official manual or specs online.  What I have found is this:
    http://www.thinkcomputers.org/old/index … ews&id=733
    That review indicates:
    Frequency: Fh: 30 kHz - 80 kHz; Fv: 50 Hz - 75 Hz
    So I set:
    HorizSync 30-80
    VertRefresh 50-75
    Signal out of range, which is annoying because in order to fix it I either have to reboot using a live CD, mount the drive, or ssh into it.  Whoever started the trend of disabling ctl alt backspace to kill an xsession is not my friend...
    Some other forum posts about this monitor indicate that there may have been two variants, but I can't find a different set of specs.
    Last edited by vor_lord (2012-09-25 05:48:24)

  • To save to the server, correct the invalid or missing required fields.

    We have a SharePoint 2010 document library that has a required field that is from an external data source.  When we open existing Excel documents, a ribbon appears stating "To save to the server, correct the invalid or missing required fields.". 
    If you go File>Info>Document Information Panel you will see this external data source field with a Red Asterisk and it says "Show Details".  If you click "Show Details" it will show you the "Document Properties - Server"
    toolbar and you will see this field populated.  It is however read only, and I believe that it is because its an external data source.  It will not let us save any excel documents as it seems that Excel feels this field is empty or incorrect.
    The same happens with Microsoft Word documents, in that if you open an existing document and go to the document control panel you will see the external data field with a Red Asterisk and it says "Show Details".  If you click "Show Details"
    it will show you the "Document Properties - Server" toolbar and you will see this field populated but read only; the difference is with the Word documents we can save and close the documents.  If we upload a new excel document, it behaves
    just like word documents, so it seems its only applicable to existing excel documents.
    Over the past 2 weeks we have upgraded from SharePoint RTM to SharePoint SP2.  This is has never been reported prior to the upgrades so I am assuming, but cannot confirm, if it was caused by the upgrades.
    I see there are workarounds online for Word, but nothing for excel. 
    Any help for further troubleshooting would be greatly appreciated. 
    Thanks
    Ken
    Kenneth Clebak

    Hi Ken,
    According to your description, the error will occur when saving the documents in the library which has an external data column from client application.
    The document which cannot be saved may contain invalid XML information or invalid XML properties.
    I recommend to remove the invalid XML information before you save the documents:
    Open the document in corresponding client application.
    Click File, click Info, click  Check for issues, and then click Inspect Document.
    In the Document Inspector dialog box, accept the default options, and then click Inspect.
    In the Document Inspector dialog box, click Remove All, and then click Close.
    Best regards.
    Thanks

  • Macbook X 10.6.8. Epson SX218 failed to print every fifth line, but only in MS Office documents. I updated Office. Now that line is slightly blurred as though the printer had missed out a pass.

    I am helping a disabled person with a printing problem involving a Macbook, an Epson SX218, and MS Office for Macs. The Macbook had been recently updated to OS X 10.6.8, and the printer driver reinstalled, by an Apple store. She complained the printer failed to print about every fifth line. It turned out there was no problem at all with printing web pages and emails, but only with Office (Word, Excel, Powerpoint). I updated
    Office. Later all lines were printed, but imperfectly with a bit missing from bottom of every fifth line, as though the printer had missed out a pass, so I am not sure the Office update is what made the difference. I am not at all sure whether this problem arises from the Mac or the printer or Office.

    It looks like that the installation process of one of the applications have caused some trouble. One of them may have changed or added kext files.
    For that, the Window server crashed if you try to open a non Apple application like Firefox
    Start the system in safe mode by holding the shift key on power on.
    If save mode is reached, perform a permissions repair with the Disk Utility.
    Don't bother about upcoming warnings like "could not repair file xy" as that occur cause you use the tool on a running system and opened files can not get touched by the tool.
    After repair is done reboot system to normal and try to open Firefox.
    If the problem persits, please report back here.
    Lupunus

  • Cannot extract the embeded font 'KDGXKF+TTF5BC9A0t00'.Some characters may not display or print correctly.

    I am currently using Adobe Reader version 9.1.3. When I open certain files, it displays the following message, "Cannot extract the embeded font 'KDGXKF+TTF5BC9A0t00'.Some characters may not display or print correctly". Some fonts are actually missing and will not display when printing. I have tried updating adobe but the problem still persists. Under file properites, the following font TTF5BC9A0t00 is recognised by Adobe as true type and custom encoding. Anyone has any suggestions for fix??
    Cheers
    RK

    RK7.10.09 wrote:
    Under file properites, the following font TTF5BC9A0t00 is recognised by Adobe as true type and custom encoding. Anyone has any suggestions for fix??
    Cheers
    RK
    BUT, does it say "embedded" or "embedded subset" next to the font name. If not, the font isn't included in the file and if you don't have it, it can't display or print it.
    The file creator will need to embed the fonts properly although "some" fonts don't allow embedding. This could be one of them.

  • Why is the forwarding arrow missing from my iPhone 6 with IOS 8.1.2

    Why is the forwarding arrow missing for text messages from my iPhone 6 with IOS 8.1.2

    The speak needs to be enabled through settings
    Though - wondering why you are seeing things differently - any chance you can post a picture of what you are seeing
    The next step would be
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    If that does not work - then we may be looking at a restore

  • Why is the Insert Panel Missing from Dw CS6 Build 12 v 5861?

    Why is the Insert Panel Missing from Dw CS6 Build 12 v 5861?

    If Nancy's advice doesn't make it pop up as a window, you may have it set as a tool bar, in which case, hitting Ctrl+F2 will make the tool bar appear/disappear.
    To turn it back into a floating panel, click and drag the dashed line on the far left of the Insert tool bar and pull it away from the top. You can leave it as free floating or drag it to another edge until it highlights the edge and drop it to dock it to whichever side of the screen you prefer.

  • When I download a podcast on my iPhone why is the release date missing? This really screws up the sort order.

    when I download a podcast on my iPhone why is the release date missing? This really screws up the sort order.

    Hello yung ron,
    It may be that your iPhone's set to sync automatically, which can potentially remove any music that's been added to the device. It may help to set the device to 'manual mode,' so that you have complete and total control over what content is on the device.
    Managing content manually on iPhone, iPad, and iPod
    http://support.apple.com/kb/HT1535
    Cheers,
    Allen

  • When importing clips to iMovie11 the audio is missing. I have been able to successfully to this in the past and all of the sudden it is not working. Any help to solve the problem would be appreciated.

    When importing clips to iMovie11 the audio is missing. I have been able to successfully to this in the past and all of the sudden it is not working. Any help to solve the problem would be appreciated.
    Thank you for your help!

    Download/install an app is a know possible solution.
    3. Install another app from the App Store
    If all user-installed apps are not launching, it could be an Apple ID authorization issue. Download and install an app that isn't already installed on your device to reset this information.
    Note: If you have installed apps using multiple Apple ID accounts, you may need to perform this step for each account.
    Above from Apple's :
    iOS: Troubleshooting applications purchased from the App Store

Maybe you are looking for