{"id":2508,"date":"2017-10-11T06:43:33","date_gmt":"2017-10-11T06:43:33","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=2508"},"modified":"2017-10-11T06:46:23","modified_gmt":"2017-10-11T06:46:23","slug":"error-occurred-during-initialization-of-vm-could-not-resolve-enough-space-for-object-maven","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/error-occurred-during-initialization-of-vm-could-not-resolve-enough-space-for-object-maven\/","title":{"rendered":"error occurred during initialization of vm could not resolve enough space for object maven"},"content":{"rendered":"<p>This is caused by setting something too large on a 32-bit HotSpot vm, for example:If you have running the x86 JVM instead of the 64 bit you may end up with this issue<\/p>\n<p>While running Maven Sure fire plugin you may endup with this problem mostly when you are using 32 bit version of Java<\/p>\n<plugin>\n    <groupId>org.apache.maven.plugins<\/groupId><br \/>\n    <artifactId>maven-surefire-plugin<\/artifactId><br \/>\n    <version>2.7.2<\/version><br \/>\n    <configuration><br \/>\n        <argLine>-Xms1024m -Xmx1024m -XX:MaxPermSize=512m<\/argLine><br \/>\n    <\/configuration>\n<\/plugin>\n<pre>\r\n set \"JAVA_OPTS=-Xms512m -Xmx512m -XX:MaxPermSize=512m\r\n<\/pre>\n<p><em><br \/>\nThe MaxPermSize allowed is 512m, but it still throws error when you try to run a build setting to max of 512m.<\/em><\/p>\n<p>Set MaxPermSize less than 500m<\/p>\n<p><strong>Solution<\/strong><\/p>\n<pre>\r\n set \"JAVA_OPTS=-Xms512m -Xmx400m -XX:MaxPermSize=512m\r\n<\/pre>\n<p>This may also happen if maven is not using the right JVM if more that one JVM is installed in the system or set <em>MAVEN_OPTS = -Xmx512m -XX:MaxPermSize=128m<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is caused by setting something too large on a 32-bit HotSpot vm, for example:If you have running the x86 JVM instead of the 64 bit you may end up with this issue While running Maven Sure fire plugin you may endup with this problem mostly when you are using 32 bit version of Java&hellip; <a href=\"https:\/\/codethataint.com\/blog\/error-occurred-during-initialization-of-vm-could-not-resolve-enough-space-for-object-maven\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[215],"tags":[],"class_list":["post-2508","post","type-post","status-publish","format-standard","hentry","category-maven"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=2508"}],"version-history":[{"count":5,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2508\/revisions"}],"predecessor-version":[{"id":2513,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2508\/revisions\/2513"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=2508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=2508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=2508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}