Q: Increase the heap space for ant...set ANT_OPTS..where??

In trying to resolve the out of memory error I get when running Ant on a large project of mine I cam across this post
http://tech.groups.yahoo.com/group/flexcoders/message/102140
set the following environment variable before the build depending on
your platform.
//CODE START
set ANT_OPTS=-Xmx500M
or
set ANT_OPTS=-Xmx500M ; export ANT_OPTS
//CODE STOP
My question is, where does one make this change (set ANT_OPTS)??

short answer:
In command prompt or cygwin.
long answer:
if you are uisng comman prompt call
set ANT_OPTS=-Xmx500M
before calling the ant command.
if you using cygwin use
export ANT_OPTS=-Xmx500M
before calling the ant command.
In case you are using unix based OS. use
export ANT_OPTS=-Xmx500M
before calling the ant command.
Also you can set ANT_OPTS as an enviornment variable.
Thanks,
Gaurav Jain
Flex SDK Team

Similar Messages

  • How to increase the Heap space of Jdeveloper for about more than 512 MB?

    When starting JDeveloper, the application within JDeveloper is throwing the error message:
    "could not reserve enough space for object heap"
    and a windows popup with the following error message:
    "Unable to create an instance of the Java Virtual Machine Located at path: ..\..\jdk\jre\bin\client\jvm.dll "
    To resolve these issues, i know that adding the following in ide.conf , jdev.conf will help.
    AddVMOption -XX:MaxPermSize=512M
    AddVMOption -Xmx512M
    AddVMOption -Xms512M
    I have got 10 GB of RAM in my desktop machine and virtual memory of 15 GB (page size). I am not able to increse the heap space of Jdeveloper for about more than 512MB. This is really frustrating..I had to restart my jdevloper after 3 or 4 deployments.....Has anyone tried success in increasing the heap space in jdeveloper for about 2 GB?
    Regards
    Prasath.C

    Yes, i know that -XX:MaxPermSize has nothing to do with Heap Memory. I Just pasted all my configuration settings to know if some thing or the other has caused the issue.... After hearing few people who increased the heap space to more than 512m , i played with those settings again and figured out few things...Mine is Jdeveloper 11.1.1.4, 64 bit Windows 7 environment, 64 bit Java/ JDK.
    First, i was deceived by one suggestion in forum that, keeping max and min heap memory to same size always will yield in good performance...From that time on wards, i was always increasing both and was never able to move more than 512m..But this time, i kept the min memory as constand and kept on changing the max memory ..
    Jdev.conf
    AddVMOption -XX:MaxPermSize=512M
    AddVMOption -Xmx972M (I was never able to increase more than this size, though i have around 10GB RAM, if not Jdev doesnt startup)
    AddVMOption -Xms512M
    Ide.conf
    AddVMOption -Xmx2048M (here i was able to increase)
    AddVMOption -Xms512M
    But even then, i was not seeing my changed settings at the time of deployment...
    starting weblogic with Java version:
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b51)
    Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms512m -Xmx512m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer ..........
    Then i changed again into
    setDomainEnv.cmd of my default domain
    set USER_MEM_ARGS=-Xms512m -Xmx2048m -XX:MaxPermSize=512m
    Then i stared my deployment...this time i could see a real boost in deployment...and my page was launched in a fraction of minute..
    tarting weblogic with Java version:
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b51)
    Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms512m -Xmx2048m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer ..........
    This is my working configuration....Thanks guys for your replies.....
    Regards
    Prasath.C
    Edited by: Prasath C on 05-Aug-2011 04:41

  • How to increase the table space for a particular table?

    Hi Friends,
    I want to know how to increase the table space for a particular table and how to check the table space size of a particular table. Please can any one send the SQL Script. I am very much poor in DBA Part.
    Thanking You ..
    Kiran

    Kiran - you should post this question on the SQL/Database forums - this is a Forms specific forum...
    Regards
    Grant Ronald
    Forms PRoduct Management

  • How to increase the heap space size -is there any parameter to pass to JVM

    I created a memory buffering module which can be use to buffer log records and write to hard disk.disk writing is done by a separate thread so the main application won't be delayed. and memory for new errors are allocated dynamically. when i test this it gave this exception Exception in thread "Thread-62" java.lang.OutOfMemoryError: Java heap space then I test 100,000 of log records at a time and sleep the thread for 1 second to let the garbage collector do its job this works fine. but when i increase the log records count further it gave the above error. so i want to know whether is there a way to give the heap memory size to the VM as a parameter before running it.

    I created a memory buffering module which can be use to buffer log records and write to hard disk.disk writing is done by a separate thread so the main application won't be delayed. and memory for new errors are allocated dynamically. when i test this it gave this exception Exception in thread "Thread-62" java.lang.OutOfMemoryError: Java heap space then I test 100,000 of log records at a time and sleep the thread for 1 second to let the garbage collector do its job this works fine. but when i increase the log records count further it gave the above error. so i want to know whether is there a way to give the heap memory size to the VM as a parameter before running it.

  • How to increse the  heap space in tomcat  server

    Hi
    I am getiing an error like "java.lang.outofmemoryerror: Java heap space" when i ma runnig my web application.I have google the for this many people said that increse the heap space for it. Can any one tell me how to increse it.I am using through windows
    Looking for your help
    Vijay

    HI guys
    I have found solution form one of the java threds from sun forums.
    "You need to create an environment variable called CATALINA_OPTS. Set the value equal to -Xmx512m
    This will work for windows or linux."
    This is working i have tested it.
    Thank you
    Vijay

  • How to increase the Java Heap Space for a main method

    Hello all,
    after a given number of calculations inside a class with main-method, I get an OutOfMemoryError (Java Heap Size).
    So I'm just trying to increase the Heap Size Creator uses, but it won't work.
    After reading a lot of posts and online-articles, I tried the following:
    1) I changed the -Xms and -Xmx options (to 512m) both in
    $CREATOR/SunAppServer8/domains/creator/config/domain.xml and
    $CREATOR/etc/creator.conf (this file also points to the Creator built-in JDK)
    2) additionally I tried to start Creator from the console with the respective option:
    ./creator -J-Xmx512m
    The memory toolbar shows the right value, but when I use
    System.out.println("JVM maximum memory:\t"+Runtime.getRuntime().maxMemory()/1024+" KB\n");it always says 64 MB, no matter which option I chose in the config-files.
    So how can I increase this value?
    Regards,
    Felix
    Message was edited by:
    Felice
    Message was edited by:
    Felice

    Thank you very much,
    this was an important hint. Additionally I had to create a new "Java Class Library" project with a copy of the needed files (those that are not dependent on the Application Server). Then I could use the option you mentioned.
    Unfortunately, when I try to run the file with
    java -jar FILENAME.jarit won't work, because the archive is not complete: MANIFEST.MF lacks the main-class and all involved libraries.
    I managed to add the main-class attribute manually, but adding all library references seems to be very error-prone.
    So does anyone know if I did something wrong or if this is a bug of Creator?
    Regards,
    Felix

  • How to set the Heap size for JAVA

    I am facing the memory out of space problem:
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Could anyone suggest me a solution to solve the problem ?
    increase the heap size ?
    anyway to increase the heap size in the program by default without additional setup?
    Thank you.

    How to determine the program must handled with increase heap size ?
    could I know any method to know whether the program is memory leaking or need large memory heap size?

  • How to increase the heap size of the container in whioch BPEL is running ?

    Hi All,
    I recently raised an SR they have asked me to do the following,
    Can you please try and start the container running the BPEL process with max
    heap space (-Xmx) of 2 GB and the eden space (-Xmn) at about 60% of 1228m and
    the option -XX:+AggressiveHeap set. (even though this option is recommended for
    multi processor machines say 4)
    can anyone kindly explain me how to increase the Heap size and Eden size of BPEL container ?
    Thank You

    Hi Deepak I cant see any attribute or element in the oc4j_opmn.xml file regarding heap memory. In the server properties I changed the size of heap memeory how can I rollback.
    I am getting the following error
    Configuration information
    Running in C:\product\10.1.3.1\OracleAS_1
    Operation mode:Startup, App Server, No Enterprise Manager, Single Instance
    Oracle home:C:\product\10.1.3.1\OracleAS_1
    Oracle home name:Unnamed
    Instance name:SOA.01hw117905.India.TCS.com
    Instance type:allProducts
    Version:10.1.3.4.0
    Uses infrastructure:false
    Not an infrastructure instance, no infrastructure information available
    Components:[j2ee, apache, orabpel, oraesb, owsm, Wsil]
    2009-08-19 09:08:51.863--Begin log output for Mid-tier services (SOA.01hw117905.India.TCS.com)
    2009-08-19 09:08:51.863--Processing Step: starting OPMN
    2009-08-19 09:09:00.394--Processing Step: starting OPMN managed processes
    2009-08-19 09:09:35.19--End log output for Mid-tier services (SOA.01hw117905.India.TCS.com)
    An unknown OPMN error has occured
    oracle.appserver.startupconsole.model.ConsoleException: An unknown OPMN error has occured
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:121)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.control.GroupController.doStart(GroupController.java:47)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.view.controller.ControllerAdapter.start(ControllerAdapter.java:30)
         at oracle.appserver.startupconsole.view.controller.MasterControlAdapter.run(MasterControlAdapter.java:94)
         at oracle.appserver.startupconsole.view.Runner.main(Runner.java:39)
    Caused by: oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
         at oracle.ias.opmn.optic.AbstractOpmnEntity.runCommand(AbstractOpmnEntity.java:174)
         at oracle.ias.opmn.optic.AbstractOpmnEntity.start(AbstractOpmnEntity.java:110)
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:89)
         ... 6 more
    Exception caused by
    Error from opmn during process control operation
    oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
         at oracle.ias.opmn.optic.AbstractOpmnEntity.runCommand(AbstractOpmnEntity.java:174)
         at oracle.ias.opmn.optic.AbstractOpmnEntity.start(AbstractOpmnEntity.java:110)
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:89)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.control.GroupController.doStart(GroupController.java:47)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.view.controller.ControllerAdapter.start(ControllerAdapter.java:30)
         at oracle.appserver.startupconsole.view.controller.MasterControlAdapter.run(MasterControlAdapter.java:94)
         at oracle.appserver.startupconsole.view.Runner.main(Runner.java:39)
    <?xml version='1.0' encoding='WINDOWS-1252'?>
    <response>
    <msg code="-82" text="Remote request with weak authentication.">
    </msg>
    <opmn id="01hw117905:6200" http-status="206" http-response="2 of 3 processes started.">
    <ias-instance id="SOA.01hw117905.India.TCS.com">
    <ias-component id="default_group">
    <process-type id="home">
    <process-set id="default_group">
    <process id="172" pid="2176" status="Alive" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\default_group~home~default_group~1.log" operation="request" result="success">
    <msg code="0" text="">
    </msg>
    </process>
    </process-set>
    </process-type>
    <process-type id="oc4j_soa">
    <process-set id="default_group">
    <process id="173" pid="5556" status="Stopped" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\default_group~oc4j_soa~default_group~1.log" operation="request" result="failure">
    <msg code="-21" text="failed to start a managed process after the maximum retry limit">
    </msg>
    </process>
    </process-set>
    </process-type>
    </ias-component>
    <ias-component id="HTTP_Server">
    <process-type id="HTTP_Server">
    <process-set id="HTTP_Server">
    <process id="171" pid="2724" status="Alive" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\HTTP_Server~1.log" operation="request" result="success">
    <msg code="0" text="">
    </msg>
    </process>
    </process-set>
    </process-type>
    </ias-component>
    </ias-instance>
    </opmn>
    </response>

  • Plz can you help me. How to increase the Heap Size!!!!!!!!!!!

    Hi,
    i'm new to 10g appl server
    Failed to deploy web application "AGXI51". Failed to deploy web application "AGXI51". . The evaluate phase failed. The Adapter used in the evaluate may have thrown an exception.
    Resolution:
    Please call Oracle support.
    Base Exception:
    java.lang.OutOfMemoryError
    null. java.lang.OutOfMemoryError
    i'm getting this Error while deploying the application.So wat is the procedure to increase the Heap Size
    Regards,
    Niranjan.D

    Locate opmn.xml on your instance. In file locate section relevant for container you use (i.e. "home"). In next line you can see tags where startup parameters are set. You should add following parameters (this will set heap size on 512Mb)
    -Xms512m -Xmx512m
    For detailed explanation I would recommend you to check following link:
    http://download-uk.oracle.com/docs/cd/B25221_03/web.1013/b14431/troublesht.htm
    Hope this help.

  • JBuilder increase Java heap space

    How can I increase Java heap space in JBuilder ?

    devboris wrote:
    How can I increase Java heap space in JBuilder ?Seriously. The third result on Google using search terms identical to the subject of your post. [http://javahowto.blogspot.com/2006/08/set-jvm-options-in-jbuilder.html]
    - Saish

  • How to increase the waiting time for response in Adapter Engine not in IE

    Hi Experts,
                It is a SOAP to Proxy Synchronous interface. SOAP system is sending the request to PI, PI sending the same request to ECC system, After execution of some logic response back to PI in 7 minutes. In ABAP Stack(sxmb_moni) processing the response message also successfully with success flag after completion of these 7 minutes. But exactly 5 minutes later getting the error at Java Stack RWB- in communication channel monitoring i.e
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message bd2bf8d0-b2c2-11e0-c383-001cc4fb5cb7(OUTBOUND) expired.  We have set the "runtime-HTTP_TIMEOUT" parameter as 3600. thats why in Integration engine it is processing successfully.
    kindly suggest me how to increase the waiting time for response in Adapter Engine. Exactly after 5 mins getting the above error in rwb, but in Integration Engine getting successful flag after 7 mins until then it is waiting for response with  status flag Log version.
    Thanks & Regards,
    Srihari.

    Hi,
    Please see
    How To... Investigate Timeouts In Synchronous XI/PI Scenarios
    It will answer all your queries
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747?QuickLink=index&overridelayout=true

  • Is there a way to increase the font size for the "songs" and "artists" lists in the new music app for iPad 2 (iOS 5)? It is too small for me.

    Is there a way to increase the font size for the "songs" and "artists" lists in the "music" app for iPad 2 (iOS 5)? It is smaller than the previous version.

    falkner09 wrote:
    is there really no fix for this?
    It would depend on your definition of "Fix"
    Your iPod touch running OS 4.2 has a ZOOM feature which will enable you to see the screen more clearly.
    To turn Zoom on or off got to:
    Settings > General > Accessibility > Zoom and tap the Zoom On/Off switch.
    _To Zoom in or out_:
    Double-tap the screen with three fingers. By default, the screen is magnified 200 percent. If you manually change the magnification (by using the tap-and-drag gesture, described below), iPod touch automatically returns to that magnification when you zoom in by double-tapping with three fingers.
    Increase magnification: With three fingers, tap and drag toward the top of the screen (to increase magnification) or toward the bottom of the screen (to decrease magnification). The tap-and-drag gesture is similar to a double-tap, except you don’t lift your fingers on the second tap—instead, drag your fingers on the screen. Once you start dragging, you can drag with a single finger.
    _Move around the screen_:
    When zoomed in, drag or flick the screen with three fingers. Once you start dragging, you can drag with a single finger so that you can see more of the screen. Hold a single finger near the edge of the display to pan to that side of the screen image. Move your finger closer to the edge to pan more quickly. When you open a new screen, Zoom always goes to the top-middle of the screen.
    _Large Text_:
    Large Text lets you make the text larger in alerts, and in Calendar, Contacts, Mail, Messages, and Notes. You can choose 20-point, 24-point, 32-point, 40-point, 48-point, or 56-point text.
    Set the text size: In Settings, choose General > Accessibility, tap Large Text, then tap the text size you want.
    I hope this has helped a little - other than this option I think it pretty much is what it is.
    BTW - This information can be found on page 208 of the iPod Touch iOS 4.2 Users Guide.
    Best wishes..
    Ricky

  • Where can I Increase the size limit for attachments

    Good Morning:
    I am working in OCS R2 (9.0.4). Where can I Increase the size limit for attachments in the messages sent. Also can I set this parameters to user level or the change affect every user in the system?
    Thanks a lot.

    babowa wrote:
    The only way to increase the fonts on your desktop would be system wide by going down a notch on the resolution. Some people won't do it because it increases the pixel size so the fonts won't be quite as sharp; I decided I'd rather have that than having to squint continuously. Go to System Preferences > Displays > Scaled > this will give you all resolution options available. No harm in trying - just check the default (top) choice again if you don't like any of the others.
    It's a b*&^ch getting old .  I still use the screen zoom instead of decreasing resolution, but maybe soon ...

  • Getting exception after increasing the heap size

    Hi ,
    I have increased the heap size of my manged server from 512MB to 1024MB and started the server. When I tried to post the messages to queue I am getting the below exception and my managed server is going down. Weblogic server version is 10.3.0. Could you please help me to resolve this issue. It is verr urgent
    ******* EXCEPTION FROM THE MAIN METHOD -Generic Exception *******
    weblogic.jms.common.JMSException: weblogic.messaging.dispatcher.DispatcherException: weblogic.rjvm.PeerGoneException: No message was received for: '240' seconds
    at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:116)
    at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSyncTran(DispatcherAdapter.java:53)
    at weblogic.jms.client.JMSProducer.toFEProducer(JMSProducer.java:1271)
    at weblogic.jms.client.JMSProducer.deliveryInternal(JMSProducer.java:783)
    at weblogic.jms.client.JMSProducer.sendInternal(JMSProducer.java:541)
    at weblogic.jms.client.JMSProducer.sendWithListener(JMSProducer.java:394)
    at weblogic.jms.client.JMSProducer.send(JMSProducer.java:384)
    at weblogic.jms.client.WLProducerImpl.send(WLProducerImpl.java:970)
    at QueueSendConfig.send(QueueSendConfig.java:88)
    at QueueSendConfig.main(QueueSendConfig.java:126)
    Caused by: weblogic.messaging.dispatcher.DispatcherException: weblogic.rjvm.PeerGoneException: No message was received for: '240' seconds
    at weblogic.messaging.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperState.java:350)
    at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSyncTran(DispatcherAdapter.java:51)
    ... 8 more
    Caused by: weblogic.rjvm.PeerGoneException: No message was received for: '240' seconds
    at weblogic.rjvm.ResponseImpl.getThrowable(ResponseImpl.java:202)
    at weblogic.messaging.dispatcher.DispatcherProxy.unmarshalResponse(DispatcherProxy.java:253)
    at weblogic.messaging.dispatcher.DispatcherProxy.dispatchSyncTranFuture(DispatcherProxy.java:134)
    at weblogic.messaging.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperState.java:338)
    Thanks & Regards
    James

    Hi James,
    weblogic.rjvm.PeerGoneException is basically caused due to a network failure between the peers like message producer and the consumer failing to communicate in the specified time frame.
    240 seconds is the default value for the t3 connection timeout, if the peer is not getting response for 240 seconds. Then it would timed out.
    This value can be tuned, however it is not recommended.
    Can you check the network traffic and see if any network glitches causing the issue?
    Also check whether you are trying to send large messages over a slow network causing the delay.
    You can capture the thread dumps as well to get more insights on the issue.
    Cheers,
    Andy

  • How to increase java heap space on BIEE 10.1.3.3.1

    Hi All,
    I am using BIEE 10.1.3.3.1.
    while doing bursting i am getting java heap space error. how can i increase java heap space.
    Please anyone explain how to increase .. its very urgent
    Regards

    Yes, but I have not one, but TWO configurations.
    One configuration named StateTEDSTest points at the DataSource named teds_proxy_tedsdev_dasis8. Another named StateTEDSProd points at the DataSource named teds_proxy_teds_dasis8.
    What you seem to be saying is that I should only have one configuration, point it at a DataSource named, say, teds_proxyDS, then make teds_proxyDS reference the test database on the test application and the production database on the production application. I agree that that would probably work, but it negates any benefit of being able to define more than one configuration.
    What I asked is, how do I tell one deployment to use the configuration named StateTEDSTest, and another to use the configuration named StateTEDSProd?
    Looks like I'm not the first to ask this - see this thread:
    basic deployment question
    Unfortunately, no answer there either.

Maybe you are looking for

  • Formatting a Date based on the user's Locale

    I'm having some trouble formatting a date based on the user's locale. I'm aware you can do something like this:    public static String getAsString( Object dateObject, Locale locale ) {       DateFormat dateFormat = DateFormat.getDateInstance( DateFo

  • Regarding Posting data

    Hi, I have got an error while posting purchase order during MIGO regarding the allowable posting periods. Please inform as to how to change the allowable posting date in the system. Thanks.

  • Help in SPRO Tcode

    Hi all,        Can any body help regarding , how to Define the validation in the Tcode SPRO. You will get this using following seq. Financial Accounting --> Financial Account Global setting -> Document-> lineitem ---> define validation for posting. F

  • HT5731 Is Download later available in the UK?

    Is this available in the UK? I cannot get it to work/it doesn't ask me on my iPad, iPhone or Mac. It should as I have iTunes in the cloud. On my Mac it wants to download straight away, on my iPhone it says it is over 50MB (obviously it is, but if it

  • Using DOM4J XPath

    IM going nuts trying to use DOM4J to query something so simple. Here is the input XML file and the code to run the XPath. If I loop through the document using the annoying element and node map thing it works fine and I can get all the nodes. But I wa