{"id":62,"date":"2009-02-04T18:39:19","date_gmt":"2009-02-05T00:39:19","guid":{"rendered":"http:\/\/www.n8williams.com\/devblog\/?p=62"},"modified":"2009-02-09T22:53:15","modified_gmt":"2009-02-10T04:53:15","slug":"cruise-control-andor-ant-out-of-memory-error","status":"publish","type":"post","link":"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error","title":{"rendered":"Cruise Control and\/or ANT out of memory error"},"content":{"rendered":"<p>When setting up a flex app auto build task, I started getting the following error consistently.<\/p>\n<div class=\"text-box\"><code>Error: null<br \/>\njava.lang.OutOfMemoryError<\/code><\/div>\n<p><strong>THE FIX, for me was: Add to ant.bat, antRun.bat<\/strong><\/p>\n<div class=\"text-box\"><strong><code>set ANT_OPTS=-Xmx512m<br \/>\nset ANT_OPTS=-Xms64m -Xmx512m<\/code><\/strong><\/div>\n<p>First I tried changing the Cruise Control memory settings in cruisecontrol.bat (CC_OPTS=-Xms256m -Xmx768m -Xmn256m).But I think it was less likely for the cruise control process to have memory issues than the ant tasks I was using (as Jeffrey pointed out before I could clean this up a bit &#8211; thanks). <\/p>\n<p>I was noticing that the java.exe service that was handling the process would go up to 100 MB of memory usage, and then stop there, and then tank. The following article points out how to change the ant task memory settings. Because of the way cruise control was calling the ant task, it made it necessary to modify the the .bat files in the ant folder (You can use the <code>&lt;ant&gt;&lt;jvmarg&gt;<\/code>&#8230; tag, as per the links below, in some cases). Once the .bat&#8217;s had the ANT_OPTS memory settings in place, the process would use more memory and build the flex app. Nice.<\/p>\n<p>Check out the following articles:<\/p>\n<p><a href=\"http:\/\/confluence.public.thoughtworks.org\/display\/CC\/OutOfMemoryError\" target=\"_blank\">http:\/\/confluence.public.thoughtworks.org\/display\/CC\/OutOfMemoryError<\/a><\/p>\n<p><a href=\"http:\/\/cruisecontrol.sourceforge.net\/main\/configxml.html#ant\" target=\"_blank\">http:\/\/cruisecontrol.sourceforge.net\/main\/configxml.html#ant<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When setting up a flex app auto build task, I started getting the following error consistently. Error: null java.lang.OutOfMemoryError THE FIX, for me was: Add to ant.bat, antRun.bat set ANT_OPTS=-Xmx512m set ANT_OPTS=-Xms64m -Xmx512m First I tried changing the Cruise Control memory settings in cruisecontrol.bat (CC_OPTS=-Xms256m -Xmx768m -Xmn256m).But I think it was less likely for the &hellip; <a href=\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Cruise Control and\/or ANT out of memory error&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,7],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.11 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cruise Control and\/or ANT out of memory error - The Dev Pages<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cruise Control and\/or ANT out of memory error - The Dev Pages\" \/>\n<meta property=\"og:description\" content=\"When setting up a flex app auto build task, I started getting the following error consistently. Error: null java.lang.OutOfMemoryError THE FIX, for me was: Add to ant.bat, antRun.bat set ANT_OPTS=-Xmx512m set ANT_OPTS=-Xms64m -Xmx512m First I tried changing the Cruise Control memory settings in cruisecontrol.bat (CC_OPTS=-Xms256m -Xmx768m -Xmn256m).But I think it was less likely for the &hellip; Continue reading &quot;Cruise Control and\/or ANT out of memory error&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error\" \/>\n<meta property=\"og:site_name\" content=\"The Dev Pages\" \/>\n<meta property=\"article:published_time\" content=\"2009-02-05T00:39:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2009-02-10T04:53:15+00:00\" \/>\n<meta name=\"author\" content=\"Nate Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@admin\" \/>\n<meta name=\"twitter:site\" content=\"@admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nate Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error#article\",\"isPartOf\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error\"},\"author\":{\"name\":\"Nate Admin\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"headline\":\"Cruise Control and\/or ANT out of memory error\",\"datePublished\":\"2009-02-05T00:39:19+00:00\",\"dateModified\":\"2009-02-10T04:53:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error\"},\"wordCount\":216,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"articleSection\":[\"Flex\",\"General Dev\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error\",\"url\":\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error\",\"name\":\"Cruise Control and\/or ANT out of memory error - The Dev Pages\",\"isPartOf\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#website\"},\"datePublished\":\"2009-02-05T00:39:19+00:00\",\"dateModified\":\"2009-02-10T04:53:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/n8williams.com\/devblog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cruise Control and\/or ANT out of memory error\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#website\",\"url\":\"https:\/\/n8williams.com\/devblog\/\",\"name\":\"The Dev Pages\",\"description\":\"A knowledge base for web applications development (and beyond)\",\"publisher\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/n8williams.com\/devblog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\",\"name\":\"Nate Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g\",\"caption\":\"Nate Admin\"},\"logo\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/n8williams.com\",\"https:\/\/twitter.com\/admin\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cruise Control and\/or ANT out of memory error - The Dev Pages","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error","og_locale":"en_US","og_type":"article","og_title":"Cruise Control and\/or ANT out of memory error - The Dev Pages","og_description":"When setting up a flex app auto build task, I started getting the following error consistently. Error: null java.lang.OutOfMemoryError THE FIX, for me was: Add to ant.bat, antRun.bat set ANT_OPTS=-Xmx512m set ANT_OPTS=-Xms64m -Xmx512m First I tried changing the Cruise Control memory settings in cruisecontrol.bat (CC_OPTS=-Xms256m -Xmx768m -Xmn256m).But I think it was less likely for the &hellip; Continue reading \"Cruise Control and\/or ANT out of memory error\"","og_url":"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error","og_site_name":"The Dev Pages","article_published_time":"2009-02-05T00:39:19+00:00","article_modified_time":"2009-02-10T04:53:15+00:00","author":"Nate Admin","twitter_card":"summary_large_image","twitter_creator":"@admin","twitter_site":"@admin","twitter_misc":{"Written by":"Nate Admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error#article","isPartOf":{"@id":"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error"},"author":{"name":"Nate Admin","@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"headline":"Cruise Control and\/or ANT out of memory error","datePublished":"2009-02-05T00:39:19+00:00","dateModified":"2009-02-10T04:53:15+00:00","mainEntityOfPage":{"@id":"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error"},"wordCount":216,"commentCount":0,"publisher":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"articleSection":["Flex","General Dev"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error#respond"]}]},{"@type":"WebPage","@id":"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error","url":"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error","name":"Cruise Control and\/or ANT out of memory error - The Dev Pages","isPartOf":{"@id":"https:\/\/n8williams.com\/devblog\/#website"},"datePublished":"2009-02-05T00:39:19+00:00","dateModified":"2009-02-10T04:53:15+00:00","breadcrumb":{"@id":"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/n8williams.com\/devblog\/flex\/cruise-control-andor-ant-out-of-memory-error#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/n8williams.com\/devblog\/"},{"@type":"ListItem","position":2,"name":"Cruise Control and\/or ANT out of memory error"}]},{"@type":"WebSite","@id":"https:\/\/n8williams.com\/devblog\/#website","url":"https:\/\/n8williams.com\/devblog\/","name":"The Dev Pages","description":"A knowledge base for web applications development (and beyond)","publisher":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/n8williams.com\/devblog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757","name":"Nate Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g","caption":"Nate Admin"},"logo":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/n8williams.com","https:\/\/twitter.com\/admin"]}]}},"_links":{"self":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts\/62"}],"collection":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/comments?post=62"}],"version-history":[{"count":0,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts\/62\/revisions"}],"wp:attachment":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/media?parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/categories?post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/tags?post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}