How do I resize mutex regions....

I'm getting the following error, but can't figure out how to resize the region. Is this something I should set in DB_CONFIG?
MutexStats:
st_mutex_align=4
st_mutex_tas_spins=1
st_mutex_cnt=1346
st_mutex_free=9
st_mutex_inuse=1337
st_mutex_inuse_max=1346
st_region_wait=0
st_region_nowait=17142
st_regsize=73728
com.sleepycat.dbxml.XmlException: Error: Not enough space, errcode = DATABASE_ERROR
about to delete manager
XmlManager closed
unable to allocate memory for mutex; resize mutex region

Hi,
Using the search box (left column on the forum page) would be a nice thing to try before posting the question. Using that feature, you can find threads like these:
How to set the size of mutex region?
Re: Error message "Not Enough Space"
Re: Problem: unable to allocate memory for mutex; resize mutex region
The same question was addressed in the threads above.
If you are still having problems in allocating a bigger number of mutexes, just let me know.
Bogdan Coman

Similar Messages

  • Unable to allocate memory for mutex; resize mutex region

    I have BDB on linux. I am trying to run my app, but I am getting this when it tries to set up the environment. Do I need to set any environment variable or something?
    Here is my setting.
    <property name="allowCreate" value="true"/>
    <property name="cacheSize" value="65535000"/>
    <property name="cacheCount" value="30"/>
    <property name="initializeCache" value="true"/>
    <property name="initializeLocking" value="true"/>
    <property name="transactional" value="true"/>
    Thanks.
    ------------- Standard Error -----------------
    unable to allocate memory for mutex; resize mutex region
    Testcase: testRunService took 1.842 sec
    Caused an ERROR
    Cannot allocate memory
    java.lang.OutOfMemoryError: Cannot allocate memory
    at com.sleepycat.db.internal.db_javaJNI.DbEnv_open(Native Method)
    at com.sleepycat.db.internal.DbEnv.open(DbEnv.java:262)
    at com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:908)
    at com.sleepycat.db.Environment.<init>(Environment.java:30)
    Edited by: user635741 on Oct 23, 2008 9:19 AM

    Hello,
    Based on the error, unable to allocate memory for mutex; resize mutex region,
    have you tried increasing the mutex region?
    The documentation on the setMaxMutexes method is at:
    http://www.oracle.com/technology/documentation/berkeley-db/db/java/com/sleepycat/db/EnvironmentConfig.html#setMaxMutexes(int)
    You can run db_stat -x
    to display the mutex subsystem statistics.
    You'll see the information for statistics like:
    Mutex region size
    The number of region locks that required waiting (0%)
    Mutex alignment
    Mutex test-and-set spins
    If that does not look to be the problem, just let me know.
    Thanks,
    Sandra

  • How to set the size of mutex region?

    I am using a berkeley xml db on a CMS system.
    The server's memory is 562M. When more than 80 users visited the system (without setting the environment configuration of berkeley DB), the berkeley db got the following errors: unable to allocate memory for mutex; resize mutex region.
    Firstly, I set the environment configuration programmatically. I used java class EnvironmentConfig.setMutexIncrement(int) to change the region of mutex. However, the same error still happened event after EnvironmentConfig.setMutexIncrement(200) was used.
    Therefore, I change the cachesize to 1M. But got the same error.
    My config is
    config.setCacheSize(1 * 1024 * 1024);
    config.setAllowCreate(true);
    config.setInitializeCache(true);
    config.setInitializeLocking(true);
    config.setInitializeLogging(true);
    config.setThreaded(true);
    Any help would by gratefully received.
    Best Regards
    Josie

    Hi Josie,
    The solution is to allocate a bigger number of mutexes to allocate. This can be done by calling DbEnv::mutex_set_max or DbEnv::mutex_set_increment.
    For more details, please check here:
    C++ APIs: http://www.oracle.com/technology/documentation/berkeley-db/xml/api_cxx/mutex_set_max.html
    Java APIs: http://www.oracle.com/technology/documentation/berkeley-db/db/java/com/sleepycat/db/EnvironmentConfig.html#setMaxMutexes(int)
    http://www.oracle.com/technology/documentation/berkeley-db/db/java/com/sleepycat/db/EnvironmentConfig.html#setMutexIncrement(int)
    Please try to apply the above suggestion, and let me know if it works.
    Thanks,
    Bogdan Coman

  • Mutex region size - further analysis

    Hi,
    I seem to be having issues with mutex region size. Specific error message that I get is "Cannot allocate memory: unable to allocate memory for mutex; resize mutex region".
    I have gone through all the posts and have increased set_max_mutex to a higher number and that seems to have resolved but I am trying to figure out the reasons for this problem surfacing now. As suggested in releasing mutexes, related to "unable to allocate memory for mutex" it could be a bug in my code but so far I havent found one.
    Notable changes that I have made is:
    1) Split multiple dbs into their own physical files.
    2) Also added a second index db for the main db. Now I have roughly ~300 main dbs per environment and 2 index dbs for each of those totalling around 900 - 1000 primary and index dbs in an environment
    API doc says that "Berkeley DB allocates a default number of mutexes based on the initial configuration of the database environment. That default calculation may be too small if the application has an unusual need for mutexes (for example, if the application opens an unexpectedly large number of databases)"
    My questions are:
    1) Could an increase from 600 - 700 to 1000 dbs cause this ? I dont see this happening on all environments. I have 15 - 20 of those.
    2) This one is more about the way BDB uses these mutexes. I noticed that I get this error only on bdb writes and not on reads, in contrast to another post complaining about errors on read only. Can you confirm if we should see this only on writes and not on reads ? I am a bit puzzled by the fact that I dont see these on reads which I perform on snapshot isolation.
    One more observation. I have a big env where this problem is pronounced. Env has multiple dbs with total size ~8 - 9 gigs. I have a process which scans all these dbs at night. At that time I see that this mutex count starts jumping and doesnt go down. I am performing these reads at snapshot level. Have already checked the code that is performing read op. I am closing cursors and transactions with proper java exception handling so on first thought I can not see this leak happening through my code, but this mutex count doesnt seem to drop at all.
    3) I noticed that default value is 1 million which seems a bit too high. I increased it to 2 or 3 million on different environments which works but also seems a really high number; with my limited knowledge, I must add. Does this number seems normal by BDB standards?
    Here ares some details on my bdb env:
    1) uses JNI version with java API from tomcat
    2) Highly transactional environment
    3) Writes as default tralsaction type
    4) All reads with snapshot isolation
    Thanks in advance for all the help. I will be more than happy to provide more info about the bdb env and the way I use it.
    Edited by: newbdb on Sep 29, 2010 9:29 AM

    Hi Shishir,
    Well, you seem to know how to resolve this already, that is, by increasing the number of mutexes via:
    DB_ENV->mutex_set_max()
    DB_ENV->mutex_set_increment()
    Estimating the number of mutexes needed at run-time is complicated. The default value is based on a worst case scenario for small databases' page sizes. Each buffer (in cache) requires a mutex, there's a mutex for each region (environment shared memory region), a mutex for each logical database and open database handle etc.
    1) Could an increase from 600 - 700 to 1000 dbs cause this ? Definitely yes.
    With snapshot isolation, the cache size requirements are larger, hence the larger number of mutexes needed for the buffers in cache; also, there will be more mutexes for the buckets in cache (which will protect the chain of page versions).
    The optimal way to approach this mutex sizing problem is to see how many mutexes are allocated during a normal initialization, add more for emergencies (say 1000), and go with that value.
    You can used db_stat -x to see the mutex statistics. Or programmatically, using the DB_ENV->mutex_stat() method.
    Also, if you are on a 5.0 or newer release, there will be additional mutex sizing requirements, because starting with 5.0 we switched to having a mutex per buffer in the cache, in order to increase concurrency. If so, look into the DB_ENV->set_mp_pagesize() method. This method sets the assumed page size which is used to provision the number of mutexes allocated to each memory pool cache. It defaults to 4KB if not explicitly set. If the page size for the databases in the application is smaller than 4KB then you should set to that page size.
    Regards,
    Andrei

  • How to resize the Region's width

    Dear all,
    i am using apex 4.2.2 , oracle database 11g R2, internet explorer 9.
    i have created a region in HOME Tab for navigation menu.
    but its width is covering the width of whole page.
    how could i resize the width of the navigation region?
    Thank you so much.

    Hi Maahjoor ,
    you can set height with same code,
    just check with the different style properties
    in Region attributes put the below code.
    style="width:300px;height:200px;"
    Regards,
    Jitendra

  • How do you resize multiple artboards in Illustrator at the same time?

    Hi,
    This is a question that has been bugging me for a while.  I'm currently on CS6 but I'm looking for a solution that can also work on CS5 for a co-worker.
    Having multiple artboards has been established since CS4 and I have yet to see an official way of resizing multiple artboards, if anything there should at least be a plug-in.
    As great of a feature it is, it seems a little short sited.  If one has multiple artboards one should be able to manage multiple artboards, right?
    I totally love having multiple artboards but I should be able to resize and manage multiple artboards as well.
    This is great for building icon sets but how can I resize the set all at once?
    I was considering trying to do an action but odds are I still would have to select an artboard one by one to do which doesn't save much time if you have like 30 artboards to apply this to. 
    I don't even see a batch render for artboards and Photoshop has that for its files.
    I'm well aware of the solution that is displayed here:
    http://forums.adobe.com/thread/1093465
    Which is a script.  I'm not sure where I'm supposed to put it.

    mec_os wrote:
    you can resize the artwork on export. no need to draw it to size.
    Unfotunately when I looked into that does not seem to be the case.  However I can resize when I "Save for Web" but that appears to only work for one artboard at a time.  I can Save As or Export multipe artboards but not adjust the size.  Believe me I would be happy if I could resize multiple artboards upon export but apparently that is not an option.
    mec_os wrote:
    you can put the scripts in illustrator's folder/presets/en_us(or whatever localization you have)/scripts. you can then access them in illustrator from the menubar/File/Scripts/
    there are also applications that will let you execute scripts with assigned shortcuts. i believe sparks is free.
    Thanks for pointing out the location. 
    Do I save it as a txt file or something else?
    (I was guessing that I would copy the script into notepad or something)

  • I am using a doc formatted on excel --- how do i resize the doc to fit on one page?

    I am using a document that was formatted in excel (on a PC) --- how do i resize the document to print on one page?

    Hi phylw,
    Here is one way. View > Show Print View. At the bottom of the window is a slider control called Content Scale. Slide to the left to shrink the document.
    Under File > Print... you will see a print preview that tells you how many pages the document now occupies.
    Regards,
    Ian.

  • How can I resize a photo in iPhoto without cropping it?

    I am taking pictures on my iphone 4s and using iphoto to edit them on macbook pro.  I need to upload these photos at a size much smaller than what i am able to take with my phone.  The only way I see to adjust the size of a photo in iphoto is to crop it.  How can I resize without cropping?
    Thank you

    It's an option in the Export menu.
    File -> Export and under the Size option you can choose the maximum you prefer. Export that and upload from the desktop.

  • How to dynamically resize JPanel at runtime??

    Hello Sir:
    I met a problem, I need to resize a small JPanel called panel within a main Control JPanel (with null Layout) if I click the mouse then I can Drag and Resize this small JPanel Border to the size I need at runtime, I know I can use panel.setSize() or panel.setPreferredSize() methods at design time,
    But I have no idea how to do it even I search this famous fourm,
    How to dynamically resize JPanel at runtime??
    Can any guru throw some light or good example??
    Thanks

    Why are you using a null layout? Wouldn't having a layout manager help you in this situation?

  • How can I resize partition? - New larger hard drive installed

    Hello,
    The hard drive on my MacBook Pro recently died on me (just past my Apple Care warranty - lucky me).  I sent it to an authorised reseller/repair place and they installed a new hard drive for me - replacing my old 250GB with a nice new 500GB.  The problem is when they copied over the disk image from my previous hard drive they did not scale up the image (yeah, not so happy bout that).  Now I find myself with a 500GB hard drive with a 250GB partition called Macintosh HD and 250GB of unused/unusable space.  On top of that I'm just starting to get messages saying boot disk nearly full.  How can I resize the "Macintosh HD" partition to use the entire disk?  I've tried using disk utility, clicking on the main drive, going to the partition tab and dragging the Macintosh HD partition to use the entire disk but after a few seconds of a message saying "waiting for disk to reappear" it returns to the same 250GB size.  Running OSX 10.9.3.  Any suggestions?
    Thanks all!

    See the tips in pounding's section on using Disk Utility:http://pondini.org/OSX/Home.html and you could also take the route of buying an external hard drive (a great idea of maintaining a backup), format that drive for Mac OS X Extended (Journaled), clone the startup disk to that drive, then boot from the external, erase and format the internal, then clone the external back to the internal partitioned as you want.

  • How can I resize a pdf page content with annotations and highlights in Acrobat Pro?

    How can I resize a pdf page content with annotations and highlights in Acrobat Pro while maintaining page size and annotation/highlight interactivity? I've tried to use the crop tool in Acrobat Pro (9) and the page does resize, but the highlights and annotations go all over the place. I specifically need to scale the page content smaller (83%) but maintain page size and annotation/highlight to content connection and interactivity.

    An old trick (not recommended) would be to print to a new PDF with the page size selected but a scaling of the content. Only print the document, not the markup, to a new PDF. Close that PDF when done and reopen the old one (or maybe a copy of the old one for safety) and use Document Replace pages and select the new document to replace your current pages. You will then have to go back through the markup to locate it all correctly. There may be a more elegant way, but this may be the fastest.

  • When I open a file in Photoshop CS4, how can I resize My Open Window File?it is stuck on full screen

    When I Open a File in Photoshop CS4, How can I Resize My Open Window File? It is stuck on Full Screen?

    Which operating system are you using?
    On a windows os, usually one can just double click on the title bar in the open dialog.

  • I have Adobe Photoshop 9.  I am a novice.  How can I resize photos in my files using batch resize?

    I have Adobe Photoshop 9.  I am a novice.  How can I resize photos in my files using batch resize?

    In the Editor, use File...Process Multiple Files.  See the Help for more info.
    Ken

  • How do I transfer arrange  regions   from Logic 8 to Logic 9 Pro?

    I am tired of waiting for Logix X or whatever it will be called and  intend to download Logic 9 pro  from the app store.   I  moved  my old Logic 8 to the  new  mountian lion macbook pro, but  am having  dreaded system error notifcations on the first project I started on the new computer. Simple  googling shows that  Mountain lion   does not like Logic 8.  Hence, my intent to download Logic 9 pro.  Hopefuly that  satisfies my needs until X comes out.
    The question is simple. I have  a  2 audio regions and 2 software instrument regions in the  project I started in the old logic 8 . They are pretty much done and are the  backbone of this new  song.  How do I get these regions   over to  a new  Logic  9 project  when  9 is finally downloaded and on- board  the new computer.
    Step by step instructions  would really be appreciated. Thank you.
    Any tips/caveats  regarding the logic 9 download are also appreciated

    When  you say "move logic 8 from the applications folder"  do you mean to click and drag somewhere? 
    Where would I drag  it so that the project  only  opens up in  the newly installed logic 9?
    Thank you. (I thought logic 9 would be empty and not automatically incorporate the existing   logic 8 projects).

  • How does I resize a pdf file page using Acrobat Pro?

    In Acrobat Pro, how can one resize a pdf file page (21.38'' x 26.75'') into one measuring 6'' x 9'', to be submitted as the trim size? Is there a feature that allows this to be done? How does one set all print options from the Application print dialog box to enable one to adjust the dimensions of any customized file page?

    I want to scale the 21.4'' by 26.8'' content down to one that can be fitted inside a 6'' by 9'' book.
    I have this pdf that was created from the InkFlow app, and I'm using Acrobat Pro to merge three files into one (about 300MB), which I needed to submit to Amazon's CreateSpace, but they needed the trim size of 6'' by 9'', while the pdf is 21.4''' by 26.8'', and I can't amend the source file size of the InkFlow files.
    I tried fiddling with the Crop and Print options, but I'm unable to resize the pdf to match the trim size. The problem on my side isn't so much on printing but to resize the pdf file page to 6'' by 9'' to satisfy Amazon's requirement for their trim size. Could this be done with Acrobat Pro? The message that appears is: Full print options of Acrobat Pro, set all print options from the Application print dialog box. Thank for the help.

Maybe you are looking for