{"id":2102,"date":"2017-12-07T10:35:06","date_gmt":"2017-12-07T10:35:06","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2102"},"modified":"2020-01-09T09:29:08","modified_gmt":"2020-01-09T09:29:08","slug":"where-can-you-set-change-the-ant_opts-in-hudson","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/where-can-you-set-change-the-ant_opts-in-hudson\/","title":{"rendered":"Where can you set\/change the ANT_OPTS in Hudson"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Where can you set\/change the ANT_OPTS in Hudson<\/strong><br \/>\nWhere can you set\/change the ANT_OPTS in Hudson<\/p>\n<p>Questions:<br \/>\nI&#8217;m using Hudson and Maven and also Ant to make a build.<\/p>\n<p>I need to set the ANT_OPTS to pass additional JVM arguments. But where can I<br \/>\nset\/change the ANT_OPTS in Hudson for a project?<\/p>\n<p>When I configure a project I press button &#8216;ADVANCED&#8217; in the build section.<br \/>\nIn there I can set the MAVEN_OPTS, but actually I&#8217;m searching for the<br \/>\nANT_OPTS.<\/p>\n<p>Because at the moment the JunitReport code which is being called by ant<br \/>\nwithin Maven I&#8217;m running out of permgen memory.<\/p>\n<p>At the moment this is what I pass to MAVEN_OPTS:<br \/>\n-Xmx1024m -Xms1024m -XX:MaxPermSize=512m -XX:+CMSPermGenSweepingEnabled<br \/>\n-XX:+CMSClassUnloadingEnabled<\/p>\n<p>but I really need to set the ANT_OPTS somewhere.<\/p>\n<p>Answer<br \/>\nTry the &#8220;java options&#8221; field in the advanced section.<br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <strong>twitter.com\/RajeshKumarIn<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Where can you set\/change the ANT_OPTS in Hudson Where can you set\/change the ANT_OPTS in Hudson Questions: I&#8217;m using Hudson and Maven and also Ant to&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[42],"tags":[429],"class_list":["post-2102","post","type-post","status-publish","format-standard","hentry","category-jenkins","tag-hudson"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2102"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2102\/revisions"}],"predecessor-version":[{"id":2103,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2102\/revisions\/2103"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}