Repeat horizontal and vert regions SIZE

hi there i have used the very useful repeat region behavour from DW TEAM. is there a way to specify the size of the each table as currently they are all different sizes
code below
<table width="650" >
          <tr>
            <td><table >
              <tr>
                <?php
$Recordset2_endRow = 0;
$Recordset2_columns = 3; // number of columns
$Recordset2_hloopRow1 = 0; // first row flag
do {
    if($Recordset2_endRow == 0  && $Recordset2_hloopRow1++ != 0) echo "<tr>";
   ?>
                <td><p class="TitleBlack"><?php echo $row_Recordset2['name']; ?></p>
                  <p><span class="textwhite"><?php echo $row_Recordset2['PositionReq']; ?></span></p></td>
                <?php  $Recordset2_endRow++;
if($Recordset2_endRow >= $Recordset2_columns) {
  ?>
              </tr>
              <?php
$Recordset2_endRow = 0;
} while ($row_Recordset2 = mysql_fetch_assoc($Recordset2));
if($Recordset2_endRow != 0) {
while ($Recordset2_endRow < $Recordset2_columns) {
    echo("<td> </td>");
    $Recordset2_endRow++;
echo("</tr>");
}?>
            </table></td>
        </table>
thanks

Hi Beth - I tried adding the param in the AC_FL_RunContent function and it fixed the problem.
Thanks for your help.
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','widt h','500','height','336','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_Co mponentVersion=1&skinName=Corona_Skin_3&streamName=http://www.dadentllc.com/willisgigi/fla sh/prasad5&autoPlay=true&autoRewind=true','quality','high','scale','noscale','name','FLVPl ayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1 _Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive','wmode','transparent' );

Similar Messages

  • My screen zooms in randomly, I can go to View and and hit actual  size and it quickly corrects but then will repeat this on and off daily.

    My screen zooms in randomly, I correct it my gloing to VIEW and hit actual size which corrects it  but then it does the same thing on and off daily. How do I correct it  for good?

    Chances are you are using a mouse and are accidentally turning on screen zoom with the mouse. Please look at the Mouse Preferences and change the zoom feature if needed. Another possiblity is you are turning on Zoom accidentaly by key strokes. You can set Zoom to Off is System Preferences - Universal Access - Seeing - check Zoom to Off position. The keystroke command for Zoom on-off is Option Command 8 or FN F11. One last possibility is you are typing Command + which zooms, Command - will unzoom.

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • Center text horizontally and vertically on composition?

    Hello,
    I'm working on a short projects (15 minutes length). Every 30 seconds a title fade in/out against a blank (grey) composition. How do I go about easily centering the text (single word) on the composition both horizontally and vertically? I know I can horizontally center via the paragraphs pallet, but how do I center on the vertical at the same time?
    Right now I'm modifying the Anchor Point of the text so it's in the center (visually) of the text, and then set the Position to the center of the composition, but every time I increase the type size, I have to go through this all over again...and with different titles coming up every 30 seconds or so, a simple text size change turns into a lot of work.
    I can only image there's a better way to do this and would appreciate any advice for an AE newb!
    Thanks,
    Kristin.

    It is possible to do this via scripting, but it won't be "live", i.e. you would have to run a script to grab the dimensions of the text layer each time you want to update its vertical alignment.
    It is also possible to roughly align text vertically using expressions given three limitations:
    1) You'll have to be willing to consider the height of the text layer to only extend from the cap height of the first line to the baseline of the last line, meaning descenders and ascenders wouldn't be counted as part of the height of the text layer.
    2) You'll have to manually locate the center of the first line of text.
    3) You'll have to be happy with a consistent point size and line spacing throughout.
    Given those limitations, vertical alignment can be done as follows:
    Add a Position animator to your text layer. Delete the default range selector you won't need it. Next add the Line Spacing property to the newly-created animator (using its "Add" menu). In the Character panel, set your text layer's line spacing to 0 (it will really be set to .01, but the difference shouldn't be noticeable once we're done). In the Line Spacing animator, set the desired line spacing (unfortunately, "Auto" isn't an option).
    Now set your Text layer's anchor point such that it falls in the center of the text's cap height (the height of a capital letter with no ascender or descenders).
    Next, add the following expression to the Position property of the text animator (NOT the Position property of the text layer's Transform group):
    >STA = text.sourceText.split("\r");
    >value - [0, (STA.length-1)*propertyGroup(countUp = 2).property.lineSpacing[1]]/2
    The second line should be all one line, but the forum insists on wrapping it. Be aware that if you later decide to change the point size of the font, you'll need to temporarily disable the text animator and center up the anchor point again.
    You can also use this method to force the text layer to shift up to accommodate new lines by deleting the "/2" at the end of the second line of the expression.

  • Tile horizontal and vertical

    Hi all,
    I m using internal frame. i m showing a menu which show cascde, tile horizontal and vertical. when i click on tile horizontal it should display all open internal frame in tile horizontal same as for cascade and tile vertical.
    how do i proceed
    pls solve my problem
    regards
    Tarique

    You have to find the open internal frames. JDesktopPane has a method to do this. Then determine which are showing. JInternalFrame methods can help you here.
    For cascading the rest is simple. Pick a starting point, say (0,0) and an ofset value, say 10, iterate over the internal frames. Set the location of the first at (0,0) and then set each succeed frame at a multiple of the offets. Here's the rough code to do that
       int hPos = 0;
       int vPos = 0;
       int step = 10;
      JInternalFrame[] frames = myJDesktopPane.getAllFrames();
      for ( int i = 0; i < frames.length ; i++){
          frames.setLocation( i * step, i * step);
    Horizontal and vertical tiling can be done in a simular manner. You'll probably want to ensure that all frames are the same size ( you can't assume that, users do stupid things). Then laying out tiling will be like above but holding horizontal or vertical step constant and increasing the other by the width or height of the frame.
    This is just a quick and dirty response, you may have to adjust some things to get the result you want. But, I think, this will get you going.
    Cheers
    DB

  • Hide and Show Region Problem

    Hi,
    I have created a report with the following attributes:
    Region Definition User Interface - Hide and Show Region;
    Report template -Standard;
    Sort Columns - all checked.
    Report source - SQL Query (PL/SQL Function Body returning SQL query).
    I open a page with this report, click on (+) and show region but when I try to sort records in the column region hides. The same problem I have with some others report templates.
    Report templates Borderless and Horizontal Border do not have this problem.
    I am using Application Express 2.2.1.00.04.
    Could someone explain what it is?
    Thank you in advance.
    Val

    Report template -Standard
    Use a "Standard - PPR" template instead, that works better with a Show/Hide region template because the entire page is not re-rendered when you click on a column header to sort. Only the report region content is refreshed.

  • Add horizontal spaces between regions

    Hi everyone,
    We use APEX 4.2.
    I want to know if it's possible to add horizontal spaces between "region a" and "region b" ?
    How I can do this ? I don't want to add an extra "region c".
    I taught about adding something in the header region or in the footer region.
    Thanks in advance. Have a great day.

    Hi,
    You could add some css to the first (left?) regio.
    .rounded-corner-region {margin-right: 50px;}*.rounded-corner-region* depending on the selected regio.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.

  • Background image bottom repeating horizontally

    hi
    ive been messing around with some code for a while now and nothing seems to be working. im trying to get a 1px width image to repeat along the bottom of the page in the background, i put in;
            background-image: url(images/footer-bg.gif);
         background-position:bottom;
         background-repeat: repeat-x;
    and nothing appears
    if i repeat vertically i can see it up the centre of the page running vertically...?
            background-image: url(images/footer-bg.gif);
         background-position:bottom;
         background-repeat: repeat-y;
    can anyone help, thanks guys.

    hey thanks for your replies, heres an example link, as you can see im using tables.. yes i know tables horrible, but so is this project and i just want to get it out of the way.
    at the bottom of the page is a grey strip with some logos, basically i want to insert a grey strip running the width of the page to go behind this, i thought a background gif at the bottom of the page running horizontally would work but obviously not, could i put a div behind?
    http://runrusrun.com/sample/jefferies/recruitment.html
    thanks again

  • Preloader is now centering although horizontal and verticle slider are showing up.

    preloader is now centering although horizontal and verticle scroll are showing up. M y question is how do I get rid of the horizontal and verticle scollon the man page now that the preloader centering code has been
    added in to the edge file from dreamweaver. I dont think you can get rid of the horizontal and vertcle  scoll bars from the edge menu the stage propertie menu is blocked  once you plac the codde for the centering preload from dreamweaver.
    here is the codde I entered with dreamweaver can it be altered or somthing to get rid of scroll  bars on the main page that showed up after I placed the code in the html(created origanlly with edge) with dreamweaver.
    <body style="margin:0;padding:0;height:100%;background-image:url(back2.jpg);">
    <div id="container" style="margin:0;padding:0;height:100%;background: url(images/loader-bar.gif) no-repeat center center;">
              <div id="Stage" class="EDGE-19258028">
    </div>
    </body>
    the entire code looks like this in dreamweaver
    <!DOCTYPE html>
    <html style="height:100%;">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=IE8"/>
        <title>Untitled</title>
    <!--Adobe Edge Runtime-->
        <script type="text/javascript" charset="utf-8" src="musicwebpage_edgePreload.js"></script>
        <style>
            .edgeLoad-EDGE-7449833 { visibility:hidden; }
        </style>
    <!--Adobe Edge Runtime End-->
    </body>
    </html>
    <body style="margin:0;padding:0;height:100%;background-image:url(back2.jpg);">
    <div id="container" style="margin:0;padding:0;height:100%;background: url(images/loader-bar.gif) no-repeat center center;">
              <div id="Stage" class="EDGE-19258028">
    </div>
    </body>

    The songs that show the "note" were they downloads directly from iTunes? iTunes downloads all have artwork. If not, you will get that 50/50 chance of no album cover art. I had to look up the songs (of the ones I was importing at the time) artwork on "Google". Then I would just add the pic for the artwork myself. No more blanks ("or notes") Just beautiful pics to scroll through....

  • Is there a workaround in Acrobat that lets you flip a pdf horiz and vert for composite output?

    The flip horizontally and vertically option is grayed out for composite output and only enabled for separations. I need to be able to flip pdfs horiz and vert when using hole-punched paper in my printer because the paper has to feed from the unpunched side or the printer jams. Does anybody know of any simple workarounds (besides first flipping my source files to generate pre-flipped pdfs)? Thanks!

    As Shawn said, the share option would seem to be your best bet.
    However, take a look at this regarding the compatibility  between your older version of DVDSP and your new Intel
    MBP. https://discussions.apple.com/message/12257054?messageID=12257054
    If you instead use iDVD, you would go directly from the QT movie export to iDVD.
    Good luck,
    Russ

  • Paste notes in Piano Roll changes Region size

    Hi,
    When I copy/paste a note in the piano roll, using cmd+C, cmd+V, it also changes the Region size. Which is not convenient at all.
    When I do it with alt+mouse, it works perfectly fine. But I work mainly with keyboard commands.
    Also, sometimes it even creates a new region on its own.
    I am on LogicPro X 10.0.1, OS X 10.8.4, iMac 2.5 Ghz, 16 Gb RAM.
    I saw similar questions already, but no answer yet.
    Thank you by advance

    You shouldn't have an issue...doing what you are doing.. and I cannot recreate it here..
    But an alternative would be to simply copy the Region itself in the Arrange window....
    Hold Down the Option key and drag region using mouse or trackpad....

  • I have iMovie 8.0.6 and an iPhone 4S.  I took hours of videos on vacation (Australia and New Zealand) and want to make a movie.  I've imported the first batch into iMovie and started the project.  I just realized that I shot both horizontally and vertical

    I have iMovie 8.0.6 and an iPhone 4S.  I took hours of videos on vacation (Australia and New Zealand) and want to make a movie.  I've imported the first batch into iMovie and started the project.  I just realized that I shot both horizontally and vertically and when I preview (on full-screen) what I've combined, first it's wide-screen, then it's tall, narrow with wide black sides. 
    The film looks choppy, no flow, since it alternates horizontally and vertically.
    I can import the vertical clips two ways:  "Full-Original Size", or "Large 960x540."  But the vertical clips have very short, fat people.
    This didn't happen with my Flip HD; the movies are smooth and terrific.  My heart is breaking.....please, how can I make the videos match?

    Yes, I'd like to use all the video I shot, put it together with music, titles, etc. and make it consistant.  when it goes from full screen to this vertical, narrow clip, it's very awkward.....and it's so narrow, it's hard to see what I'm looking at; my eyes don't make the adjustment quickly.

  • Dragging midi and audio regions...  Shortcut question...

    Sometimes I have trouble dragging regions to a precise point. For example, if I enter some midi data (e.g. an organ melody or something) into a track through my computer keyboard and want to align some of the notes to the beat I can't always.
    There is the "Snap" drop down list but regardless of which option "Beat," Frames" etc. I choose the notes won't align to a beat. Always like a few frames off or something unless I max out the horizontal zoom.
    Logic seems to want to move data incrementally relative to where it was originally entered or something.
    Is there some way to override this and tell Logic to always let me drag regions exactly to a beat or bar regardless of where in the measure the region was entered?
    Also,
    Is there a keyboard shortcut for horizontal and vertical zoom in the midi editor?
    TIA!

    for precise midi editing I set my snap to ticks. I believe that Logic's default is 480 ticks per quarter note, but then again, I may be wrong
    there are many shortcuts for zooming in and out. There is of course the zoom tool, where you can select the spot you want to zoom into then just click on thew background of your window to un-zoom (is that a word?) or zoom back out again. I use the key command, hold down control and use the arrow keys on your mac keyboard
    if you open up your key command window and do a search for zoom, you will find some handy stuff. you can set up key commands for zoom memory, to recall zoom positions
    Don

  • Needed() and changed() region function

    Hello,
    I'm studying the basicBoxBlur code that comes as sample in
    PBToolkit. As I'm a beginner in code writing, I have some troubles
    understanding properly the use of needed() and changed() region
    function: are they supposed to simplify the PB calculations, since
    the filter runs even commenting those lines?
    Could you gently provide some more info about their role
    specifically in the basicBoxBlur code?
    I'm sorry if this appears as dummy question, but the my
    personal learning curve is quite steep... (my actual goal is to be
    able to rewrite some sort of Gaussian Blur, Maximum, Minimum and
    Median Photoshop filters, so this is only a initial step toward
    them - I'll be fighting with sorting algorithms later on :)
    TIA,
    Davide Barranca

    Hi Davide,
    I'm really glad you've asked this question. It's a very good
    question. Region functions would be considered one of the more
    confusing, topics with respect to Pixel Bender. Unfortunately, this
    makes it difficult to explain in words, but we'll try anyway.
    The region functions are the mechanism by which you indicate
    to the product your running in (whether it's the toolkit,
    Photoshop, or After Effects) how your filter affects the size of
    the image. Currently, Flash does not support these functions in the
    Pixel Bender source, but you do need to implement the same thing in
    the supporting ActionScript code.
    If you think about a blur or any other convolution type
    filter, you end up sampling a certain window around the pixel in
    order to get the output color. For instance, if you have a blur on
    the X axis that's one pixel in radius, you end up sampling 3 pixels
    for every output: one to the left, the pixel that's at the same
    coordinate as the output pixel, and one to the right of that.
    Simple. If you consider what happens at the edge of the image,
    though, things get more complicated. If you processing the result
    for the very left edge of the output image, say at coordinate
    (0,0), you'll need to sample three pixels, (-1, 0), (0, 0), (1, 0).
    You need to account for the negative values when sampling. There is
    a similar problem on the other edge where you will be sampling at a
    location greater than the output window on the right. This means
    that to produce an output of size 512, you actually need an input
    of size 514 (one extra pixel for the left, and one extra pixel for
    the right). This is what the needed function is calculating. The
    function answers the question: "For an output of size X, what size
    input do I need?" In most cases this will be exactly the same as
    the output, but in some examples, like BoxBlur, this is not the
    case.
    The same thing happens on the output as well. Consider the
    one dimensional box blur with a radius of 1 again. In this case,
    you provide it an input of size X. If we were interested in
    displaying any pixels that had any color at all, we would get an
    output of size X + 2. This is because the edge pixel contribute to
    the coloring of pixels outside of the input dimensions. In other
    words, we would get a non-black pixel at location (-1, 0) because
    the pixel at (0, 0) would be within the radius. This is what gives
    you a smearing of the image outside of its boundaries when you
    apply a blur to it. This is what the changed function is
    calculating. In other words, it asks the question: "If I give the
    filter an input of size X, what sized output would it produce?"
    Again, for most cases, this would be the same as the input
    size. Filters that fall into this category are color corrections.
    Additionally, for convolutions and blurs, the needed function would
    be the same as the changed function. For warps and other
    transformations, this is not the case. The best example of this is
    scaling the image by two.
    When you commented out the region functions, the output image
    became smaller by the blur radius. This was probably not very
    noticeable, but if you made the radius large, you would see the
    difference. Additionally, you are probably asking why we need this
    level of detail in the filter. In most simple examples, no one
    would ever notice this since we often have a single input image and
    execute a single filter on it. However, because these filters can
    be used as a small part of the workflow for professional graphics
    and effects applications, getting these details right is very
    important for the filter to render the correct results in all
    cases.
    Since you asked specifically about the basicBoxBlur sample,
    here's a breakdown. Note that the functions are exactly the same
    code because it's a convolution.
    float2 singlePixel = pixelSize(src);
    This is getting the pixel aspect ratio. One thing I didn't
    mention is the notion of the pixel aspect ratio and the need to
    account for this when calculating the regions (this is the subject
    of another post entirely).
    return outset(outputRegion, float2(singlePixel.x *
    ceil(blurRadius), singlePixel.y * ceil(blurRadius)));
    The next line is increasing the requested region by the size
    of the blur window radius (conceptually expand the single radius
    out to a radius of size blurRadius). We take the ceiling of the
    blur radius in case the radius is a non-integral value.
    I hope that helps clear up any confusion. Please let me know
    if you have any questions or need clarification on any points. By
    the way, I'm very impressed with your list of filters, and I wish
    you the best of luck with the sorting ones.
    Thanks,
    Brian Ronan

  • 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

Maybe you are looking for

  • Podcast episodes in wrong locations

    Hi, I have noticed a number additional unrelated Podcast episodes have appeared in a number of my subscribed Podcasts. These additional Podcasts I do subscribe to, but they appear in the wrong location. Can I 'move' these files to their appropriate l

  • How to avoid restart weblogic after I modify EJB implementation class?

    I am sure I redeploy my application after I modify EJB implementation class. It is unacceptable to restart weblogic server if I changed some EJB . Is there any way to avoid this? Thanks!

  • TS1907 Are there any additional steps I should try?

    I have tried all of these but continue to have the problem-- i.e., some messages that I did not delete and that should be in my inbox are not appearing in my Apple mail inbox on my iMac.  The missing messages do, however, appear in my iPhone and iPad

  • HOW TO SHEDULE BACKGROUND JOBS

    I HAVE ONE PGM I WANT TO SHEDULE IN BACKGROUND PLEASE TELL ME THE TCODE I WANT THIS REPORT SHOULD RUN DAILY HOW TO SET IT

  • What is the SPC Code?

    I'm on a train, going across Canada.  Yesterday my Verizon tech set up my account for more Data for Canada ( I live in the US ).  she emailed me instructions: Settings→General→Reset→Subscriber Services→Reset Account.  When I go from SubscriberServive