Increase memory allocated to flash

Hi,
i have created a MX file with size 7.5MB.
when i try to oen the file again then its showing a popus
saying that there is not enough memory to open the current scene.
to increse the memory allocated to flash type get info
command in finder windw.
but i am unabel to understand which finder window.
i tried opening the file in flash 7 and 8 , it gives the same
error.
can some one help me out???
regards Prashant

"PrashantP" <[email protected]> wrote in
message news:e5jcvu$lvt$[email protected]..
>
> Hi,
>
> i have created a MX file with size 7.5MB.
> when i try to oen the file again then its showing a
popus saying that there is
> not enough memory to open the current scene.
> to increse the memory allocated to flash type get info
command in finder windw.
> but i am unabel to understand which finder window.
> i tried opening the file in flash 7 and 8 , it gives the
same error.
>
> can some one help me out???
>
> regards Prashant
It's a corrupted fla file most likely. Windows assigns memory
dynamically.. that stupid message about assigning more memory to
Flash is really annoying because it is not possible to do
your own memory assignments. If you run too many other applications
at
the same time you might use up the needed ram memory though.
If you aren't running too many other things then it's not the
problem,
it's the fla file. If you have Windows XP, you can open up
the Task Manager and see how much memory is in use, before and
after you
load your files in Flash. To bring up the Task Manager, press
CTRL-ALT-DEL Under the Performance tab you can look at CPU load and
ram usage. Under the Processes tab you can see how much ram
each program is using. Anyway, almost certainly something wrong
with
the fla file.
tralfaz

Similar Messages

  • Can't increase memory allocation

    For a previous question it was recommended that I allocate more memory to an application. However, when I attempt to do that with Get Info, I only get the options of "General Information" or "Sharing". "Memory" is never listed. Any ideas on what I'm doing wrong?

    Under General Information, check what the file's kind is listed as; if it is 'application program package', control-click it and choose Show Package Contents. Open the folder Contents and then MacOSClassic, or MacOS if there isn't a MacOSClassic folder. Inside this folder, locate the application and increase the memory allocation.
    (9936)

  • IOS app crashes on return from cameraUI - a memory allocation problem?

    hey all
    trying to finish my first app
    when running on iOS, the app SOMETIMES crashes after returning from cameraUI (either "use"/MediaEvent.COMPLETE or "cancel"/Event.CANCEL).
    when i exit some other running apps on my iPhone 3Gs (and not that many are open), the problem goes away, which makes me think this is some memory allocation problem
    in that aspect, can i trust the iOS to exit inactive applications to allocate more memory for my, currently active, AIR app?
    (there is no memory leak)
    this is an iPhone 3Gs running os version 4.3.5
    the app was made with Flash Pro 5.5 overlayed with the AIR 3.1 sdk, and deployed using the "deploy for app store" type (which should be the most bug-free)
    (no crashes on Android or desktop versions)
    anyone had this cameraUI problem or a similar one where an app crashes if more then some numbers of apps are open?
    thanx
    Saar

    I don't get this. Its beyond frustrating:
    we are not talking about using an uncommon phone capability, access to a phones camera is about the most basic native level of access you would be looking for in a mobile framework
    we are not talking about an edge case in usage, just trying to take a simple picture consistently
    we are not talking about a feature issue where it doesn't quite work the way you want, it crashes the whole app hard! 
    we are not talking about a hard to recreate, only happening to a few people case - it seems from what I have read the Camera integration is fundamentally broken and I have spent days researching this and only found frustration from people out there
    we are not talking about an issue that does not have consequences - in several places on this forum and others people have emphasized how it is affecting their platform decisions, ability to submit apps. You even have people on this board recommending that not to use Flex Mobile and move to other platforms. Not what you want to be happening to when you are at the adoption phase of a new product.
    And that is the response - on this thread and here http://forums.adobe.com/message/4125590#4125590 - we know its an issue but we don't know when it will be fixed and no proactive communication on status - only a growing body of people like me getting increasingly frustrated. What does it take for an issue to be a show stopper? priority 1? affecting customer decisions priority?
    In my case I am in place where I am trying to make a platform decision and since this experience has happened I have subscribed to the live feed for this forum and as many relevant Adoble blogs, news feed etc. as I could find. I did this to get a feel for how well Adobe is supporting the mobile development on the AIR platform. Something increasingly important given recent decisions.
    My perception so far is quite poor especially for a recently released product, i.e. 4.6 release. In fact the release that finally addresses performance enough to make AIR mobile development a risk free decision. You would expect Adobe to be all over the boards like this - with core developers, platform experts contributing actively. My perception, rightly or wrongly, is of a community trying to support itself without much help, or clear communication from Adobe. In fact if you look at the the articles coming out of Adobe recently its all phonegap, html5 etc. It does not fill you with confidence for the future.
    To be clear - I have had a great experience with actionscript, flex etc and as a company we have developed the backend portion of our platform solely on Flex. I don't believe that we could have done it any other way and even now when I look at the alternatives for web development I feel vindicated in our decision.
    However, this rant is caused by a genuine frustration and fear. I don't expect this to get a meaningful response but maybe if there are enough voices it will create an overall improvement.
    Sean

  • Memory leak in Flash with Win7, IE9, 64bit

    I have been having an issue for quite some time on 2 different computers. Both of them are Windows 7 64bit and use IE9.
    Generally I have 1 - 5 tabs open in IE at any given time. Usually one of them is a tab for Yahoo Mail. Other tabs are related to whatever I may be searching for or doing at that time, so pretty varied. Throughout the day at random times I will begin to get a grey icon for anywhere on some tabs where there is supposed to be a flash video (like the ad in the right side of the Yahoo Mail tab)... When it happens I can open Task Manager in windows and I notice that 1 or two "iexplore.exe *32" processes have memory consumed in excess of 600,000K. When I end those processes I am again able to see any flash videos that need to be viewed.
    If I leave Task Manager open throughout the day I can see the memory consumption increase on various tabs until I cannot see any more flash videos or even open new tabs in IE until I end those processes. Further, the memory does not get released if I just close the tabs in IE, but I must either end the specific process or close all tabs in IE so that IE is completely unloaded.
    I have since uninstalled the Flash player and the issue has gone away. I can re-install the flash player and the issue returns. Can you please help? This has been a huge annoyance and I had hoped that it would be fixed sooner or later. Unfortunately it has not been fixed and has finally prompted me to post something....

    First, I just wanted to follow up on this thread and let you guys know that we'll continue to look into it.  I also want to clarify some player behavior, and provide tips for helping to identify a defect that we can take action on.
    Whenever you refresh/reload a tab, the browser should signal to us that our process is being destroyed, at which point we would release all of our resources and shut down.  SergeStone's comment above makes it sound like this might not be happening in a particular case.  I'm going to build out a few tests this week to explore this in more detail, and I'll follow up with results.
    Also, it's worth discussing the difference between memory consumption and memory leaks.  Flash Player is designed to consume a percentage of your available memory.  If you have a 32-bit machine with 2GB of RAM, we're going to consume a lot less memory than a 64-bit system with 16GB of RAM. 
    Not all Flash content is authored well.  If the ActionScript developer is continuously loading objects into their SWF and never releasing them (a slide-show is a good simplistic example), you'll see a steady usage increase as each new object loads in.  You should also see that evenutally, our automatic Garbage Collection process will kick in.  Memory will peak out, and then you'll see a short CPU spike as we look at all of the available objects and cull as many unused ones as possible, consumed memory will dip down significantly (as long as we can cull stuff), and then start growing again until the next time GC kicks in.  We tend to do this judiciously, as poorly-timed GC can cause games to stutter if it happens when lots of things are moving around on the display and you don't have a lot of available CPU.
    If it's our bug, it should be straightforward to fix, and I can follow up to this thread with a beta build for you guys to evaluate once we have one available.  In the meantime, it would be interesting to know if you're seeing the problem on our current Beta builds (which is where we would do the work). 
    Here's a link to the latest Beta download:
    http://labs.adobe.com/downloads/flashplayer11-5.html
    Also, the simplest example is the most actionable.  If you can find a situation where a site in a single tab reproduces the problem, that's a quick and easy thing to deal with.  If the repro case involves opening seven tabs and waiting six hours, someone needs to repeat that over and over, until they can isolate what content experiences the problem and then iterate a bunch more with a debugger attached to try and isolate the root cause.  The more complicated the content, the more difficult that is.
    Secondly, I wanted to offer some actionable suggestions that you could use now to work around this issue. 
    Try Firefox or Chrome.  Both of these browsers run Flash Player as a separate process.
    For those of you using Performance Monitor and other tools to measure, you can directly observe the resources used by Flash Player
    For the folks concerned about Bookmarks synchronization, both Firefox and Chrome provide native bookmark syncing and import from IE mechanisms. 
    Xmarks is a really nice, free utility that provides cross-browser, cross-platform bookmark synchronization.
    Thanks,
    Jeromie Clark

  • ICMP Timeout Alarm due to TCP Protocol Memory Allocation Failure ?

    Hello Experts ,
      >> Device uptime suggests there was no reboot
    ABCSwitch uptime is 28 weeks, 13 hours, 50 minutes
    System returned to ROM by power-on
    System restarted at 13:09:45 UTC Mon Aug 5 2013
    System image file is "flash:c2950-i6k2l2q4-mz.121-22.EA12.bin"
    >> But observed logs mentioning Memory Allocation Failure for TCP Protocol Process ( Process ID 43) due to Memory Fragmentation
    003943: Feb 18 02:14:27.393 UTC: %SYS-2-MALLOCFAIL: Memory allocation of 36000 bytes failed from 0x801E876C, alignment 0
    Pool: Processor Free: 120384 Cause: Memory fragmentation
    Alternate Pool: I/O Free: 682800 Cause: Memory fragmentation
    -Process= "TCP Protocols", ipl= 0, pid= 43
    -Traceback= 801C422C 801C9ED0 801C5264 801E8774 801E4CDC 801D9A8C 8022E324 8022E4BC
    003944: Feb 18 02:14:27.397 UTC: %SYS-2-CFORKMEM: Process creation of TCP Command failed (no memory).
    -Process= "TCP Protocols", ipl= 0, pid= 43
    -Traceback= 801E4D54 801D9A8C 8022E324 8022E4BC
    According to Cisco documentation for Troubleshooting Memory issues on Cisco IOS 12.1 (http://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-software-releases-121-mainline/6507-mallocfail.html#tshoot4 ), which suggests the TCP Protocols Process could not be started due to Memory being fragmented
    Memory Fragmentation Problem or Bug
    This situation means that a process has consumed a large amount of processor memory and then released most or all of it, leaving fragments of memory still allocated either by this process, or by other processes that allocated memory during the problem. If the same event occurs several times, the memory may fragment into very small blocks, to the point where all processes requiring a larger block of memory cannot get the amount of memory that they need. This may affect router operation to the extent that you cannot connect to the router and get a prompt if the memory is badly fragmented.
    This problem is characterized by a low value in the "Largest" column (under 20,000 bytes) of the show memory command, but a sufficient value in the "Freed" column (1MB or more), or some other wide disparity between the two columns. This may happen when the router gets very low on memory, since there is no defragmentation routine in the IOS.
    If you suspect memory fragmentation, shut down some interfaces. This may free the fragmented blocks. If this works, the memory is behaving normally, and all you have to do is add more memory. If shutting down interfaces doesn't help, it may be a bug. The best course of action is to contact your Cisco support representative with the information you have collected.
    >>Further TCP -3- FORKFAIL logs were seen
    003945: Feb 18 02:14:27.401 UTC: %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    -Traceback= 8022E33C 8022E4BC
    003946: Feb 18 02:14:27.585 UTC: %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    -Traceback= 8022E33C 8022E4BC
    003947: Feb 18 02:14:27.761 UTC: %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    -Traceback= 8022E33C 8022E4BC
    003948: Feb 18 02:14:27.929 UTC: %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    -Traceback= 8022E33C 8022E4BC
    003949: Feb 18 02:14:29.149 UTC: %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    -Traceback= 8022E33C 8022E4BC
    According to Error Explanation from Cisco Documentation (http://www.cisco.com/c/en/us/td/docs/ios/12_2sx/system/messages/122sxsms/sm2sx09.html#wp1022051)
    suggests the TCP handles from a client could not be created or initialized
    Error Message %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    Explanation The system failed to create a process to handle requests  from a client. This condition could be caused by insufficient  memory.
    Recommended Action Reduce other system activity to ease  memory demands.
    But I am still not sure about the exact root cause is as
    1.The GET/GETNEXT / GET BULK messages from SNMP Manager (Here, IBM Tivoli Netcool  ) uses default SNMP Port 161 which is
       UDP and not TCP
    2. If its ICMP Polling failure from IBM Tivoli Netcool , ICMP is Protocol Number 1 in Internet Layer of TCP/IP Protocol Suite  and TCP is Protocol                 Number 6 in the Transport Layer of TCP/IP Protocol Suite .
    So I am still not sure how TCP Protocol Process Failure could have caused ICMP Timeout . Please help !
    Could you please help me on what TCP Protocol Process handles in a Cisco Switch ?
    Regards,
    Anup

    Hello Experts ,
      >> Device uptime suggests there was no reboot
    ABCSwitch uptime is 28 weeks, 13 hours, 50 minutes
    System returned to ROM by power-on
    System restarted at 13:09:45 UTC Mon Aug 5 2013
    System image file is "flash:c2950-i6k2l2q4-mz.121-22.EA12.bin"
    >> But observed logs mentioning Memory Allocation Failure for TCP Protocol Process ( Process ID 43) due to Memory Fragmentation
    003943: Feb 18 02:14:27.393 UTC: %SYS-2-MALLOCFAIL: Memory allocation of 36000 bytes failed from 0x801E876C, alignment 0
    Pool: Processor Free: 120384 Cause: Memory fragmentation
    Alternate Pool: I/O Free: 682800 Cause: Memory fragmentation
    -Process= "TCP Protocols", ipl= 0, pid= 43
    -Traceback= 801C422C 801C9ED0 801C5264 801E8774 801E4CDC 801D9A8C 8022E324 8022E4BC
    003944: Feb 18 02:14:27.397 UTC: %SYS-2-CFORKMEM: Process creation of TCP Command failed (no memory).
    -Process= "TCP Protocols", ipl= 0, pid= 43
    -Traceback= 801E4D54 801D9A8C 8022E324 8022E4BC
    According to Cisco documentation for Troubleshooting Memory issues on Cisco IOS 12.1 (http://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-software-releases-121-mainline/6507-mallocfail.html#tshoot4 ), which suggests the TCP Protocols Process could not be started due to Memory being fragmented
    Memory Fragmentation Problem or Bug
    This situation means that a process has consumed a large amount of processor memory and then released most or all of it, leaving fragments of memory still allocated either by this process, or by other processes that allocated memory during the problem. If the same event occurs several times, the memory may fragment into very small blocks, to the point where all processes requiring a larger block of memory cannot get the amount of memory that they need. This may affect router operation to the extent that you cannot connect to the router and get a prompt if the memory is badly fragmented.
    This problem is characterized by a low value in the "Largest" column (under 20,000 bytes) of the show memory command, but a sufficient value in the "Freed" column (1MB or more), or some other wide disparity between the two columns. This may happen when the router gets very low on memory, since there is no defragmentation routine in the IOS.
    If you suspect memory fragmentation, shut down some interfaces. This may free the fragmented blocks. If this works, the memory is behaving normally, and all you have to do is add more memory. If shutting down interfaces doesn't help, it may be a bug. The best course of action is to contact your Cisco support representative with the information you have collected.
    >>Further TCP -3- FORKFAIL logs were seen
    003945: Feb 18 02:14:27.401 UTC: %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    -Traceback= 8022E33C 8022E4BC
    003946: Feb 18 02:14:27.585 UTC: %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    -Traceback= 8022E33C 8022E4BC
    003947: Feb 18 02:14:27.761 UTC: %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    -Traceback= 8022E33C 8022E4BC
    003948: Feb 18 02:14:27.929 UTC: %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    -Traceback= 8022E33C 8022E4BC
    003949: Feb 18 02:14:29.149 UTC: %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    -Traceback= 8022E33C 8022E4BC
    According to Error Explanation from Cisco Documentation (http://www.cisco.com/c/en/us/td/docs/ios/12_2sx/system/messages/122sxsms/sm2sx09.html#wp1022051)
    suggests the TCP handles from a client could not be created or initialized
    Error Message %TCP-3-FORKFAIL: Failed to start a process to negotiate options.
    Explanation The system failed to create a process to handle requests  from a client. This condition could be caused by insufficient  memory.
    Recommended Action Reduce other system activity to ease  memory demands.
    But I am still not sure about the exact root cause is as
    1.The GET/GETNEXT / GET BULK messages from SNMP Manager (Here, IBM Tivoli Netcool  ) uses default SNMP Port 161 which is
       UDP and not TCP
    2. If its ICMP Polling failure from IBM Tivoli Netcool , ICMP is Protocol Number 1 in Internet Layer of TCP/IP Protocol Suite  and TCP is Protocol                 Number 6 in the Transport Layer of TCP/IP Protocol Suite .
    So I am still not sure how TCP Protocol Process Failure could have caused ICMP Timeout . Please help !
    Could you please help me on what TCP Protocol Process handles in a Cisco Switch ?
    Regards,
    Anup

  • How to increase memory allowed for an application

    Before in OS 9 and below we can expand the quantity of memory for an application, we can't do same in OS X.
    OS X is able to set himself the amount of memory for an application. This seems to work but I think there is a limit sets by OS X.
    My question is how to increase this amount of memory ?
    I tried to increase it in terminal using "ulimit -d unlimited" but this is not working enough.
    I use to do calculation with matrix systems and iterations in Mapple software but on my iMac with 4 GB of RAM memory, when application reaches 450 MB, I get a memory error message. Activity monitor at same time says there is more than 2 GB free !
    Has somebody a solution to free this limit, even for a small time or for only an application ?
    Thanks for your help.

    The full message is :
    "Kernel connection has been lost. The kernel returned the following message :
    Execution stopped : Memory allocation failed.
    Please sea ?alloc for more detail.
    You should save this worksheet and restart Maple
    Executing commands in Mapple requires a connection to the Maple kernel.
    Firewalls have been known to cause problems with kernel connections in Maple. Please ensure that any firewall software is configured to allow Maple to create connections to the kernel. Consul the FAQ for more information."
    I checked the firewalls of OS X, they are shutdown and no restrictions seems to be set for processes.
    We are expecting for a new version of Maple with some modifications due to Snow.

  • Memory Leak with Flash Game - video of incident - Fix?

    My hypothesis:
    There is a memory leak in Flash Player that leads to Flash crashing, predictably and repeatedly, when used.
    My question:
    When will this problem be fixed?
    Evidence:
    Observe the progression in the following single-take video of me playing my favorite Flash game, posted to Youtube.  Skip to the times indicated in the "About" description for the video to observe the increase in use of physical memory, as observed in Windows Task Manager, until there isn't anything left.
    http://www.youtube.com/watch?v=gNIJvTuUitU
    My computer gets bogged down, the game stalls out, and Flash needs to be closed to enable my computer to function once more.  It makes it impossible to play this specific game for very long, and is an insidious problem lurking in the background every time I watch a video, play a game, or use Flash Player for any purpose.  My computer always slows down, with the problem worsening as time passes until I need to close everything and start again.
    Details:
    Flash Player Version: 11.7.700.224
    Operating System: Windows Vista (32-bit)
    Browser: Mozilla Firefox
    (Also happens when using Google Chrome)
    Conclusion:
    If you need further information about my specific computer, please feel free to ask.
    If this problem is specific to my computer, I would appreciate knowing this and determining a way to solve the problem.  My suspicion is that the problem originates in Flash Player itself and is experienced by many people in a variety of circumstances.  It is my hope that an articulate response indicating how long it will take to correct this bug in Flash Player can be provided.
    Thanks in advance for your help.

    My hypothesis:
    There is a memory leak in Flash Player that leads to Flash crashing, predictably and repeatedly, when used.
    My question:
    When will this problem be fixed?
    Evidence:
    Observe the progression in the following single-take video of me playing my favorite Flash game, posted to Youtube.  Skip to the times indicated in the "About" description for the video to observe the increase in use of physical memory, as observed in Windows Task Manager, until there isn't anything left.
    http://www.youtube.com/watch?v=gNIJvTuUitU
    My computer gets bogged down, the game stalls out, and Flash needs to be closed to enable my computer to function once more.  It makes it impossible to play this specific game for very long, and is an insidious problem lurking in the background every time I watch a video, play a game, or use Flash Player for any purpose.  My computer always slows down, with the problem worsening as time passes until I need to close everything and start again.
    Details:
    Flash Player Version: 11.7.700.224
    Operating System: Windows Vista (32-bit)
    Browser: Mozilla Firefox
    (Also happens when using Google Chrome)
    Conclusion:
    If you need further information about my specific computer, please feel free to ask.
    If this problem is specific to my computer, I would appreciate knowing this and determining a way to solve the problem.  My suspicion is that the problem originates in Flash Player itself and is experienced by many people in a variety of circumstances.  It is my hope that an articulate response indicating how long it will take to correct this bug in Flash Player can be provided.
    Thanks in advance for your help.

  • Can't use memory allocated in C to write then read BitmapData in AS

    Hi all,
    I've been attempting to use Alchemy to allocate a chunk of memory in C, and then write a bitmap to the memory (via getPixels) which is I would then be able to modify using my super fast C image processing functions.  I've been following the "Memory allocation in C with direct access in Actionscript (FAST!!)" section from here.
    The problem is that when I allocate the memory in C, then try to display the image using setImage, all I see is a black box on the screen.  The code below shows how I use getPixels to fill the C memory region with my bitmap data, then use setPixels to fill the BitmapData object which is displayed on the screen.  Does anyone know what I'm doing wrong here?  I've been really stuck on this
    ActionScript variables, and event function which runs after my Bitmap is loaded
            private var _dataPosition:uint;
            private var displayedImage:Image;
            private var bmp:Bitmap;
    public function loaded(e:Event):void {
                bmp = e.target.content as Bitmap;
                // A setImage at the beggining of this function properly displays my image
                displayedImage.setImage(bmp.bitmapData);
                var loader:CLibInit = new CLibInit();
                var lib:Object = loader.init();
                var ns:Namespace = new Namespace("cmodule.alchemyrgr");
                var byteArray:ByteArray = (ns::gstate).ds; //point to memory
                var tmpByteArray:ByteArray = new ByteArray();
                var imgSize:int = bmp.width * bmp.height * 4;
                _dataPosition = lib.initByteArray(imgSize); //This is the position of the data in memory           
                var bounds:Rectangle = new Rectangle(0, 0, bmp.width, bmp.height);
                tmpByteArray = bmp.bitmapData.getPixels(bounds);
                byteArray.readBytes(tmpByteArray, 0, imgSize);
                byteArray.position = _dataPosition;
                bmp.bitmapData.setPixels(bounds, byteArray);
                displayedImage.setImage(bmp.bitmapData);
                //lib.clearByteArray(); //Free the bytearray
    C memory allocation function
    static AS3_Val initByteArray(void* self, AS3_Val args)
        AS3_ArrayValue(args, "IntType", &bufferSize);
        //Allocate buffer of size "bufferSize"
        buffer = (unsigned char*)malloc(bufferSize*sizeof(char));
        //return pointer to the location in memory
        return AS3_Int((int)buffer);
    Thanks in advance!
    Mark

    Hi Mark,
    I too attempted to use a method similar to yours to no avail. I posted my solution for passing bytearray data to/from alchemy here:
    http://forums.adobe.com/thread/773517?tstart=0
    There is full flash code and C++ code so you should be able to answer all your questions just by reading my post. However, one thing I see about how you're passing your pointer back to flash is:
        //return pointer to the location in memory
        return AS3_Int((int)buffer);
    I think should be:
        //return pointer to the location in memory
        return AS3_Ptr(buffer);
    You shouldn't be casting your char array as an int and returning it, just use AS3_Ptr(buffer) and that will return the actual memory address as an int to flash. I'm not 100% sure but I think this could be an issue. I use this method also in my code you can find in the link above so you can see the full implementation there. Hope that helps.

  • Dynamic memory allocation on HP-UX for multiple instances on one host

    Hi everyone,
    I was wondering what the current possibilities are nowadays on running multiple SAP instances on one very large host with regard to resource sharing. Normally, for each instance, using PHYS_MEMSIZE etc you have to set the memory to a fixed size and then optimize it.
    Preferrably we would like the memory to be allocated based upon actual usage. Is that possible at all? on HP-UX? Using third party techniques?
    Thank you
    Marcel Rabe

    Hello Marcel,
    As Juan said you may not be able to change the parameters at runtime.
    The only parameters that can be dynamically switched are :
    ztta/roll_first
    ztta/roll_extension
    ztta/roll_area
    abap/heap_area_dia
    abap/heap_area_nondia
    abap/heap_area_total
    em/stat_log_size_MB
    em/stat_log_timeout
    These parameters would put a cap on memory allocations, however they wouldn't help increase the total addressable memory area.
    I would suggest that you consider Adaptive Computing for dynamic use of resources.
    Adaptive Computing
    Regards,
    Siddhesh

  • Variable scope & memory allocation.

    Traditional wisdom normally says keep variables in the smalled scope you can (or atlest I think it does, feel free to correct me if I'm wrong from the offset).
    However memory allocation on J2ME is going to be slow. So...
              int noRects = readCard32();
              int pixel = readCard8();
              drawOnMe.draw( (pixel >>0 &7) * 36, (pixel >>3 &7) * 36,
                          (pixel >>6 &3) * 85, mx, my, w, h );
              for( int r = 0; r<noRects; r++ ) {
                  pixel = readCard8();
                  int lx = readCard8();
                  int ly = readCard8();
                  int lw = readCard8();
                  int lh = readCard8();
                  drawOnMe.draw( (pixel >>0 &7) * 36, (pixel >>3 &7) * 36,
                           (pixel >>6 &3) * 85, mx + lx, my + ly,
                           lw, lh );            
    // or
              int noRects = readCard32();
              int pixel = readCard8();
              drawOnMe.draw( (pixel >>0 &7) * 36, (pixel >>3 &7) * 36,
                          (pixel >>6 &3) * 85, mx, my, w, h );
              int lx;
              int ly;
              int lw;
              int lh;
              for( int r = 0; r<noRects; r++ ) { /* ... */ }Mike

    And as far as the difference - even though I'm not sure there is a performance increase, I'm sure that declaring them outside has no negative effects so I do it just in case.
    Plus, I remember reading somewhere that Java had some optimized access support for the first 4 (I think it's 4, and I think it also include the parameters) locals declared in a function, some kind of "fast register" thingie - so in functions that have tight inner loops I always declare the most "accessed" variables right at the top of the function. I don't know how much this holds true for KVMs, but again, it can't hurt.
    shmoove

  • Memory Allocation problem when using JNI

    For a Project we need to interface Labwindows-CVI/ Teststand with an application written in Java. we are using JNI. The code uses JNI_CreateJavaVM to start a JVM to run the Java interface code. The code did run for some time , but now ( without any obvious change nor on the CVI side neither on the Java side) JNI_CreateJavaVM fails with -4 error code, that means that the start of the JVM failed due to memory allocation failure. First investigation showed, that even if Windows Task Manager shows about 600M free physical memory, you can allocate in CVI only about 250M as a single block at the time we are calling  JNI_CreateJavaVM. That might be a little bit to less as we need to pass -Xmx192m to the JVM to run our code. Unfortunately just increasing the physical memory of that machine from 1.5G to 2G doesn't change anything. The free memory showed by Task Manager increases, but the allocatable memory block size does not. Are the any trick to optimize CVI/Teststand for that use case ?  Or maybe known problems with JNI ?
    Solved!
    Go to Solution.

    hi,
    have you tried other functions to allocate memory?
    the -Xmx command only sets the maximum heap size. You can try to use -Xms. This command sets the initial Java heap size. 

  • Memory Allocation in database ...

    These are the parameters which i given to my database .Actualy my db version is 11.1.0 but compatible is 10.2.0...thats why i am using these parameters in my init.ora...
    *.java_pool_size=110102400
    *.large_pool_size=110102400
    *.shared_pool_size=536870912
    *.shared_pool_reserved_size=31457280
    *.db_cache_size=512670912
    *.streams_pool_size=0
    *.log_buffer=32768
    *.pga_aggregate_target=50M
    *.sga_max_size=1695483648
    But when i am connecting to database my total SGA
    SQL> show sga (((11.1.6)))
    Total System Global Area 1704132608 bytes
    Fixed Size 2089304 bytes
    Variable Size 1174412968 bytes
    Database Buffers 520093696 bytes
    Redo Buffers 7536640 bytes
    Actually i created this database as per other db which was there in 8.1.6...
    But when i am comparing with the 8i db my SGA which i given has too much different ...
    SQL> show sga (((8.1.6 SGA)))
    Total System Global Area 1718366368 bytes
    Fixed Size 73888 bytes
    Variable Size 406507520 bytes
    Database Buffers 1310720000 bytes
    Redo Buffers 1064960 bytes
    Here i dont know there is too much difference in FIXED SIZE,VARIABLE SIZE, DATABASE BUFFERS and REDO BUFFERS...
    COuld some one tell why its come that much differnece...My TOTAL RAM IS 2GB ...Please let me know how I can set my 11g db Memory .. like 8i database memory
    Please give your valuable suggestions ..It helps a lot ..

    Pavan,
    hi memory allocation should always depends on how many transactions hitting your database. it is not appropriate to set 1.5GB or less than that if your database is getting only 1-2 lakh tx's per day.
    You have any reference doc to prove this point? On what basis one would assume his memory sizes when the transactions everyday are increasing in a database?
    i remember 11g is having a wonderful parameter called MEMORY_TARGET. if possible please use that
    I agree its a good parameter.Just an additional note for it It has a different algorithm to allocate the memory. You need to tweak your machine some times a bit to make this parameter work. The memory allocations of /dev/shm needs some time to be tweaked.
    Aman....

  • Can't get Memory allocation, FPS, ActionScript, ...

    Hello,
    I'm using Flash Develop 4.4.2 with Flash Player content debugger 11.7
    I enabled avanced telemetry with a pluging but in Adobe Scout I didn't get Memory allocating, actionscript, etc.
    I also enabled Memory allocating, actionscript and the Advanced telemetry is enabled in Adobe Scout session.
    I succeed to get the memory allocating just 1 time at the first session but now I got nothing.

    Thanks for the response Michael.
    Hmmmm, weeeeird, just tried it again and it works! Notice in the previous screenshot that "Memory Allocation Tracking" was checked but yet "Disabled" on the Session Info panel.
    The thing that got it to work was checking the "Stage 3D Recording" setting and then turning it off. However, notice in the following screenshot that although unchecked, the Session Info panel still has Stage 3D Recording as "Enabled".
    I dunno, it works now.
    Thanks again for the help/knowledge.

  • 9400 Graphics Memory Allocation

    For the GeForce 9400M chip is it possible to increase the graphics memory allocation if I were to upgrade the system memory?
    In other words: Does the GeForce 9400M chip and Mac OS Leopard+ support dynamic memory allocation for the graphics memory?
    If I increase the system RAM from 2GB to 4GB will the 9400 graphics memory allocation increase from 256MB to 512MB?
    (The Intel graphics chipset supported it)

    No. The 9400 uses 256 MBs of RAM, no more.

  • SQL Workbench/J Increase Memory Using -Xmx?

    If I'm on the wrong forum, apologies.
    Very recently, I have to use SQL Workbench/J which I am not too familiar with, it has a habit of running out of memory when I run queries.
    Apparently I can edit the workbench.settings file in the .sqlworkbench directory and increase the allocated memory by adding a line with -Xmx1024
    Does anyone know the exact syntax?

    Just in case anyone is interested, I created a .bat file with one line, like this:
    java -Xmx1024m -jar c:\<the directory where you put the sqlworkbench.jar>
    Put it on the desktop and click on it, the java VM will allocate more memory.
    It worked for me, I can run bigger queries now.

Maybe you are looking for

  • OMWB transaction key Issue

    Dear All, As per our customer's requirements we have created a new transaction/event key & assigned the same in existing Cal.Schema. The G/L A/C for the new trans key is also defined in OBYC. After all the these when we Checked in OMWB transaction -

  • Video loses sound then pauses

    Hello everyone! I've recently encountered a problem in watching videos online. The video works well at first then after a couple of minutes it suddenly loses sound and then it pauses, this occurs randomly until the video is done. no matter which site

  • How to connect time machine to newly migrated MBP

    Just migrated to a newer MBP and want to have it appear as the same machine to time machine.  This would keep all my TM history intact and not begin again with a full backup.  Any ideas?

  • CS4 Exporting Trouble - Audio / Video Sync

    I'm having a lot of trouble exporting from Premiere CS4. I have a 5 minute video project shot in 1920x1080 and I'm just trying to export it into a format that can support its HD. When I try the H.264 BluRay preset, though, the audio and video are hug

  • Heirarchy loading from DBconnect

    Hi, Can we load heirarchies from DB connect or other source systems. Thanks,