Out of Memeory Eroors Whn Saving My Huge Applications

I am now constantly getting an out of memory error every time I try to save changes to an application I've made. Something to do with java heap space. The app is very big, almost 15,000 lines long in code with over 50 embedded png images, but this problem makes it too hard to go back and try to trim it down.
Is there any way around this problem or a workaround of some sort?

If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex / AIR Development, Training, and Support Services
See this link:
http://livedocs.adobe.com/flex/3/html/help.html?content=configuring_environment_3.html
And also this from the Flex Builder help systems:
Allocating enough memory and solving OutOfMemoryErrors
By default, Eclipse will allocate up to 256 megabytes of Java heap memory. This should be ample for all typical development tasks. However, depending on the JRE that you are running, the number of additional plug-ins you are using, and the number of files you will be working with, you could conceivably have to increase this amount. Eclipse allows you to pass arguments directly to the Java VM using the -vmargs command line argument, which must follow all other Eclipse specific arguments. Thus, to increase the available heap memory, you would typically use:
eclipse -vmargs -Xmx<memory size>
with the <memory size> value set to greater than "256M" (256 megabytes -- the default).
When using a Sun VM, you may also need to increase the size of the permanent generation memory. The default maximum is 64 megabytes, but more may be needed depending on your plug-in configuration and use. When the VM runs out of permanent generation memory, it may crash or hang during class loading. This failure is less common when using Sun JRE version 1.5.0_07 or greater. The maximum permanent generation size is increased using the -XX:MaxPermSize=<memory size> argument:
eclipse -vmargs -XX:MaxPermSize=<memory size>
This argument may not be available for all VM versions and platforms; consult your VM documentation for more details.
Note that setting memory sizes to be larger than the amount of available physical memory on your machine will cause Java to "thrash" as it copies objects back and forth to virtual memory, which will severely degrade your performance.

Similar Messages

  • Not able to open adobe XI Pro after I have filled out a documents and trying saving it. The program stops working & won't open up again.  Tried to complete a repair, rebooting nothing works. Help please.

    Not able to open adobe XI Pro after I have filled out a documents and trying saving it. The program stops working & won't open up again.  Tried to complete a repair, rebooting nothing works. Help please.

    Hi,
    Can you pls. provide more details of the issue?
    OS/Platform
    It would be great if you can provide the MSI logs for repair from the %temp% directory.
    Thanks,

  • How do I  "mask" or blurr out sections of movie clips saved in windows media format in After Effects

    I was informed that I needed to use After Effects to "mask" or blurr out sections of movie clips saved in windows media format.
    I have the movie clip in composition, I see the effects and presets drop box on the lower right.
    How do I insert the text blocks to mask certain areas of the movie clip?
    Thank you,
    Preston

    Getting started with After Effects (CS4, CS5, CS5.5, CS6, & CC) | After Effects region of interest
    There's seriously nothing more to say. Watch some tutorials, read the help, learn the program.
    Mylenium

  • Program times out while looping at internal table with huge records - Needs fine tuning suggestions

    Hi,
    I am trying to execute a report. It times out while looping at vbap internal table. This internal table has 140000  records and does the validation within this loop and geenrates data for the output. Due to this huge volume, the program times out when executed foreground.
    There are no nested loops, so I cannot apply 'Parallel Cursor' here.
    Is there any way I can fine tune the program so that it doesn't timeout? Is it possible to apply 'Parallel Processing' . If yes, how?
    Thanks,
    Pavan

    Hi Pavan ,
                  ->sort your internal table by all primary key for vbap.
                  ->Read a Record from the table (use your condition here)
                  ->if record satisfys your where condition ,get that record index .
                  ->loop the table from the index (without condition) .
                  its like parallel cursor only but for single loop .;-)
                  ->use field symbols ,wherever possible .
               if still dump is coming ,contact your basis team .
    regards,
    Krishna.

  • Out of Memory Error when Saving SequenceFile generated using API

    I am currently developing an application that creates a SequenceFile using .NET 4.0, C# (2010), Windows 7 Pro x64, Dual Core 2.5 GHz, 3.0Gb Memory.  Using the API EngineClass, I create a complete SequenceFile based on user/file inputs and then save it to disk.  When I'm done, I save using SequenceFile.Save() and then release using ReleaseSequenceFileEx().
    For smaller files, there is no problem.  For larger files, I sporadically get the following error:
    System.Runtime.InteropServices.COMException (0xFFFFBD98): Out of memory.
    When the file does save, it is ~2.8Mb.  Breaking the file up is not an option.  I am not looping, this is one shot.  I've tried shutting down VS2010 and restarting the computer.  It is still inconsistent on saving.
    I also had to set the Embed Interop Types to False per guidance from NI.  They said that it is unstable in 4.0.
    Questions
    1. Is there a file limit size to the Save() API function?
    2. Is there a workaround to using the Save()?
    Best Regards
    Solved!
    Go to Solution.

    I am using C#.NET.  I called them in my save method immediately prior to the actual test save sequence.
    GC.Collect();
    GC.WaitForPendingFinalizers();
    GC.Collect();
    GC.WaitForPendingFinalizers();
    try
           CurrentSequenceFile.Save(outputPath);
           catch (Exceptionerror)
           FireLogEvent(ParserLogType.Parsing_Error, string.Format("{0}", error));
    Factory.TSEngine.ReleaseSequenceFileEx(CurrentSequenceFile, ReleaseSeqFileOptions.ReleaseSeqFile_UnloadFile);
    Hope this helps

  • Images and text blacked out upon joining pdfs and saving

    Hola all,
       Let me preface this by saying I'm a complete noob to Acrobat, so sorry if this will be a stupid question.
    Currently I'm attempting to join two pdfs together for a product on a few of my websites, upon doing so certain sections of the PDF are blacked out and the images are scrambled... I didn't have this issue with the Acrobat Pro 8 that was on my old system, but the most recent release (11.0.07) is causing issues.  Am I missing a setting somewhere?  It was pretty random doing this prior to today, now it seems to do it every time.  The blacked out areas are fine prior to saving, but as soon as I save, close, reopen it does this.
    Original on the right, final product on the left...
    Thanks in advance

    Tools -> insert from file
    But it doesn't matter, actually I can just save the larger of the 2 files and it creates the same issue, worked with support yesterday and they had me print to PDF the PDF causing an issue and it was fine after that.
    No answer on why exactly.  Just an extra step I guess I'll have to take...

  • PreE V8: In/Out Clip Set Points Not Saved in Preview Screen

    After I set set in/out points in the Preview area on a clip then click on the X to close it, when I reopen the clip or when I drag the clip to the timeline/sceneline the set points are gone. I have to first drag the clip to the timeline then trim it. But then the trim points are not kept with the clip for reuse if I drag the clip a second time to the timeline.
    How can I get the set in/out points to be saved with the clip when I set them in the Preview panel?

    I am using a Canon HF20 and imported the video files into an a Photoshop album using the Elements 8 Organizer like I always do.
    I can clip in the timline with no problem. Just not in the Preview window and have it save the in/out points.

  • Problem -How to figure out "message could not be saved" alternate location?

    Hmmmm.... what could be causing this?
    Does Mail or the computer do an 'auto-save' somewhere when I get the message "The message could not be saved." It's very frustrating as I don't know how to tell if a message has gone, or who it's gone to. It only starting doing this recently; any possible solutions?
    I checked autosave (not there). Any other place to look?
    I'm concerned because I did not want an email to reply to cc: all and I may have done that unintentionally. Any way to tell if I have egg on my face?
    Thanks!!
    Mac Mini Dual   Mac OS X (10.4.9)  

    > The account is Mail (sometimes synced with .Mac) on an outgoing smtp server through Comcast.
    Does this mean the account in question is a .Mac account and you are accessing the account with the Mail application as a .Mac type account?
    And if yes to both, you are storing Drafts and Sent messages on the server?
    If so, your account in Mail is not sometimes synched with the .Mac server - all server stored mailboxes in Mail are automatically synchronized with the server when first launching Mail when connected to the internet and there is no way to turn this off. And when selecting a server stored mailbox in the mailboxes drawer, the selected mailbox is re-synchronozed with the server.
    The error message provided does not include or involve the account's Drafts mailbox - it is the account's server stored Sent mailbox only and successfully sent messages are not being saved on the server?

  • Out of Memeory Error

    Hi All,
    My application is RMI based running in JDK .1.3.1_12 And JRE 1.3.1_09, Server is Windows 2000, 6GB RAM.
    Four different RMI services are running. 2 services are configured as JVM heap size intial memory as 1100 Mb and Max mem as 1600 Mb. Remaining are Max is 64 Mb only.
    When i change one of the sevice(1600 mb ) Max memeory is 1700 Mb, during the RMI service start up,i'm geeting this error.
    NFO | jvm 2 | 2005/10/14 08:26:34 | Error occurred during initialization of VM
    INFO | jvm 2 | 2005/10/14 08:26:34 | Could not reserve enough space for object heap
    What could be the problem, Eventhough i'm having 6 Gb Ram.Please advise me

    Hi,
    eventhouif u set maxheap sizeof JVM to 1700 MB, may be JVM failing to get the enugh memoryfrom OS.
    and also if u change the minimum heap size of JVM then other processes will effect. so itis not advisable to change the minimum heap size of JVM.
    i sugget that better keep minimum heap size as 256MB max heap size as 100MB.
    ex:
    -Xms256MB -Xmx1700MB

  • "out of memeory" error with Adobe Reader x & IE8

    Hello,
    Getting an "out of memory" error with Adobe Reader X & IE8. This is a locked down bank environment so upgrading to a higher version of Adobe is out of the question.
    I looked around on the web and noticed that many people are experiencing this "out of memory error" but no fix has been provided.
    Can you help?

    Thanks for the reply and suggestion - unfortunately, I get this error when I open Adobe Reader X itself in addition to launching a pdf within IE9 (my OS is Win7x64 Ultimate).  I can launch Adobe Reader X, but when I open any kind of PDF file (local copy, remote, web, etc...) the error dialog box pops up.  Everything seems functional with Reader, it's just a frustrating (er, irritating!) thing!  I think after the weekend I will 'give up' and remove the Reader X and go back to my 'old' (but functioning!) Reader - thanks for the comment and suggestion tho!

  • TS1347 My college cancelled my outlook/exchange email account because I graduated. Turns out all my contacts were saved to outlook and I didn't know, is there a way I can get them back without being able to restore the email account?

    Because I graduated, IT support at my college deactivated my email account with outlook/exchange. I wasn't aware, but all my contacts were saved to that account and now they are gone. I have tried to contact my college to see if they can restore it and they haven't responded so I am wondering if there is a way to get them back without having the exchange email account restored. I have looked on iCloud and there are nowhere near as many contacts as I should have saved there. Thanks in advance for your help!!!

    If you do not have the contacts accessible on a computer, iOS device or service like iCloud then they are gone unless you can get them from your school's IT department.

  • Installation - out of memeory

    I am trying to install oracle 9i for evaluation purposes but am having trouble with the installation.
    When installing the Oracle Database Configuration Assistant it fails with an "out of Memory" error, all the other configuration tools install OK.
    I am trying to install onto a machine running NT Server with 128 megs of ram. NB - this is only for evaluation purposes. Is there any way I can install on this machine and can I install the missing tool without going through the whole installation process.
    TIA
    Chris J

    Could you pls provide more info
    version number of the products you are using,
    how long your run the app to get the out of memory error.
    does the the behavior vary with different heap size for the jvm ..
    any other setails will help.
    -Prasad

  • Out of memeory error while converting images

    public class PcxToJpgConverter
    private void convertUsingJimi(String sourceFilePath, String destinationFilePath)
    try
    Image image = Jimi.getImage(sourceFilePath);
    Jimi.putImage(image, destinationFilePath);
    catch (JimiException ex)
    System.out.println("Oops!!! Error occured during conversion...");
    ex.printStackTrace();
    public static void main(String[] args)
    PcxToJpgConverter converter = new PcxToJpgConverter();
    converter.convertUsingJimi("F:/mypcx.pcx", "F:/myjpg.jpg");
    while running this code i am getting tthe message
    java PcxToJpgConverter
    java.lang.OutOfMemoryError
    <<no stack trace available>>
    help me to resolve this

    Could you pls provide more info
    version number of the products you are using,
    how long your run the app to get the out of memory error.
    does the the behavior vary with different heap size for the jvm ..
    any other setails will help.
    -Prasad

  • 'Out of Memeory'

    Hi, I own a G5 that runs Final Cut Express and Photoshop Elements. The problem is that for a while now my computer has been performing slower than usual. And now in the past two days I cannot capture video on my FCE - Anytime I try it, it suddenly freezes and I have to force quit the programme. The same happens whenever I render an effect. The confusing thing is that I have cleared space on my hard disk but it still coming up with 'Out of memory' message.
    I run a I-MAC with 512MB RAM and a Hard drive of 148GB - I would be very appreciative if anyone has a solution to this problem - Thanks

    Hello and welcome to the forum.
    What version of FCE? Current version requires 1GB of RAM. Also, what versions of OS and QuickTime? There have been reports of OS/QT updates goobering up older versions of FCE. Did the slowdown/freeze problems follow Software Update?
    If nothing above seems likely, one thing to try any time FCE is behaving strangely is to trash your FCE Preferences. Here's how:
    http://www.fcpbook.com/Misc1.html

  • Why is a 10-bit image paded out to 16-bits when saving?

    My question comes in responce to Mr. Elliotts answers. When saving a 10-bit image why are more zeros added to create a 16-bit image and then have it saved to *.png format? With the more zeros added why can it not save it in *.tif format?

    Hello.
    I am not exactly sure which other post you are referring to, but I can clarify that the 'zeros' are added because computers cannot represent 10-bit numbers, they are either 8-bit or 16-bit integers. Therefore, you get the padded zeroes effect. You should be able to save a 10-bit mono image into png or tif format, but there is no 'standard' for 16-bit TIFF images, so they may not open in all editing software.
    Hope this helps.
    Regards,
    Colin C.
    Applications Engineering
    Colin Christofferson
    Community Web Marketing
    Blog

Maybe you are looking for

  • Application Design Assitance

    Hello, I am in need of some assistance for the following: I am currently creating an app that stores messages posted by users which are then stored on a server. What would be the best way to display 20 posts per page, without showing the same post? I

  • Unzip - zip file

    Can any one give some info regarding extracting a uploaded zip file on server from my web application.. my environment is... IBM websphere Struts frame work. My uploaded zip file contains some excel sheets and some images. each image name is mentione

  • Selecting objects AFTER they have a clipping mask applied.

    Hi There, What really disturbs me about Illustrator is that after I apply a clipping mask to a set of objects, the program assumes that I would want to actually select that object if the cursor hovers above that masked object if it is outside the bou

  • FND_VIEWOBJECT_NOT_FOUND

    I am trying to make a stand alone region that I can embed into custom or seeded pages. This particular region does an employee search, though I will be dding more functionality after I get the basic version working properly. I made a test page and ex

  • Cannot see actionscript 3.0 animation in Captivate

    Has anyone had this problem? I cannot see the animation in preview mode or published. in fact, when i published the animation, i cannot see anything in the slide with the animation is (there is also textboxes and graphics). any one experienced this?