Flex Ant Error Permgen Space
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have ant default memory settings Meta Discuss the workings and policies of this site About Us ant java.lang.outofmemoryerror: java heap space Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads ant increase heap size with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers,
Ant Java.lang.outofmemoryerror: Permgen Space
just like you, helping each other. Join them; it only takes a minute: Sign up MXMLC Ant task results in java.lang.OutOFMemoryError up vote 5 down vote favorite I'm making a change to a set of code for a Flex project that I didn't write and was set up to compile using ant tasks. I assume that ant build out of memory the codebase was stable at the last checkin but I'm running into memory issues when trying to build a project using MXMLC and ant (see stack trace below). Before, I was just getting an out of memory error. I tried using a different machine and got this more verbose exception (including problems with the image fetcher). I've tried using various versions of the SDK, I've tried replacing the
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with your peersError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. https://forums.adobe.com/thread/560702 Please turn JavaScript back on and reload this page. Please enter a title. https://benjaminwss.wordpress.com/2009/12/16/ant-java-permgen-heapsize-outofmemoryerror-solution-compiling-flex-java-can-be-painful-to-say-the-least-good-learn-exp-tho/ You can not post a blank message. Please type your message and try again. More discussions in Flex All CommunitiesFlex 1 Reply Latest reply on Jan 22, 2010 4:48 AM by cardician23 Weird Permgen error, can't solve... cardician23 Jan 21, 2010 12:03 PM This being an entirely different problem I decided permgen space to create a seperate posting.I've been moving up from Flex 2 to Flex 3 on a project. Had a few problems at first but slowly getting there. I'm using an ant build script to compile everything. This is a project made up of quite a few other projects. Now I'm encountering an error that occurs about 3/4 of the way through the the compilation java heap space of all the projects. The error is:compile: [mxmlc] Loading configuration file /apps/flex_sdk_340/frameworks/flex-config.xml [mxmlc] Error: PermGen space [mxmlc] java.lang.OutOfMemoryError: PermGen spaceBUILD FAILED/apps/project_builds/05/checkout-flex3_server_testing_RC1/ProjectSearchFlex/build.xml:90: mxmlc task failedSo, after doing some research I changed the jvm.config file under /apps/flex_sdk_340/bin to the following:# Arguments to VMjava.args=-Xms1024m -Xmx2048m -XX:PermSize=1024m -XX:MaxPermSize=2048m -Dsun.io.useCanonCaches=falseOf course, this resulted in no change at all. If anyone has any ideas of what else I can do, or if you need more info, please let me know. I really need to get this done for work and am absolutey lost as to where to go next. Thanks. I have the same question Show 0 Likes(0) 1262Views Tags: none (add) This content has been marked as final. Show 1 reply 1. Re: Weird Permgen error, can't solve... cardician23 Jan 22, 2010 4:48 AM (in response to cardician23) Anyone have any thoughts? Like Show 0 Likes(0) Actions Actions More Like This Retrieving data ... Legend Correct Answers - 10 points © 2016 Adobe Systems Incorporated. All Rights Reserved. | Powered by Help | Terms of Use | Privacy Policy and Cookies (UPDATED) | Forum Help | Tips for AskingJive Software Version: 8.0.3.0 , revision: 20160218075410.6eafe9c.release_8.0.3.x
Solution. Compiling Flex & Java can be painful to say the least. Good Learn exptho December 16, 2009 Benjamin Wong Posterous Post Leave a comment I recently came across this issue while using Apache ANT to compile my Flex projects. The error is shown below : [mxmlc] Error: PermGen space [mxmlc] java.lang.OutOfMemoryError: PermGen space Naturally the error is much longer than that but those two messages should be sufficient for this blog post. The issue faced here would be that the JVM probably had too much to handle and threw this error. The way around this would be to allocate more memory for ANT so this issue would not happen anymore. This can be accomplished (at least in Windows, never did this on Linux or Mac OS X) by adding an environment variable. Setting your environment variable as seen below should solve this issue, it worked for me🙂 Variable Name : ANT_OPTS Variable Value : -Xms512m -Xmx786m -XX:MaxPermSize=786m I had to run my ANT build using command line because this only applies to the ANT install I got from the Apache website. I have not quite figured out how to do this directly on eclipse yet as putting in the PermSize VM argument into the eclipse.ini file does not seem to work. Will post the solution for Eclipse 3.4.2 when I get one. Like this:Like Loading... Related Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. (LogOut/Change) You are commenting using your Twitter account. (LogOut/Change) You are commenting using your Facebook account. (LogOut/Change) You are commenting using your Google+ account. (LogOut/Change) Cancel Connecting to %s Notify me of new comments via email. Sorting date columns in a DataGrid | FlexExamples VLC for Mac in its dying throes due to lack of developers. Poor Mac sods:p The Tweet Box Cake and Whisky from old friends :) instagram.com/p/BLD_2VaBmPo/ 1weekago Desert @ Roost KL instagram.com/p/BLBSSF4B2qG/ 2weeksago Full Birthday Meal! @ Roost KL instagram.com/p/BLBQEeMBs-C/ 2weeksago Scenes from a balcony @ Roost KL instagram.com/p/BLBP0w2hBEA/ 2weeksago Birthday Beer #tipsygypsy @ Roost KL