{"id":129,"date":"2017-11-20T23:23:13","date_gmt":"2017-11-20T23:23:13","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=129"},"modified":"2020-05-10T22:25:02","modified_gmt":"2020-05-10T22:25:02","slug":"error-occurred-during-initialization-of-vm-could-not-reserve-enough-space-for-object-heap-could-not-create-the-java-virtual-machine","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/error-occurred-during-initialization-of-vm-could-not-reserve-enough-space-for-object-heap-could-not-create-the-java-virtual-machine\/","title":{"rendered":"Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine."},"content":{"rendered":"<h1>How to resolve\u00a0VM Could not reserve enough space<\/h1>\n<p>The following &#8220;Error occurred during initialization of VM&#8221; is occur due to memory size assigned to Tomcat service is full.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>Error occurred during initialization of VM<\/p>\n<p>Could not reserve enough space for object heap<\/p>\n<p>Could not create the Java virtual machine.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>You need to run following commands from Shell<\/p>\n<p><strong><span style=\"color: #800000;\">root@admin[\/usr\/local\/jakarta\/tomcat\/bin]# export _JAVA_OPTIONS=&#8221;-Xms20m -Xmx64m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:NewSize=10m -XX:MaxNewSize=10m -XX:SurvivorRatio=6 -XX:TargetSurvivorRatio=80 -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled&#8221;<\/span><br \/>\nOnce you run above command restart the Tomcat service<\/strong><\/p>\n<p><strong><span style=\"color: #800000;\">root@admin[\/usr\/local\/jakarta\/tomcat\/bin]#.\/shutdown.sh<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #800000;\">root@admin[\/usr\/local\/jakarta\/tomcat\/bin]#.\/startup.sh<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #800000;\">root@admin[\/usr\/local\/jakarta\/tomcat\/bin]#.\/catalina.sh<\/span><\/strong><\/p>\n<p>The above steps resolve the error occurred during initialization of vm.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>How to resolve\u00a0VM Could not reserve enough space The following &#8220;Error occurred during initialization of VM&#8221; is occur due to memory size assigned to Tomcat <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/error-occurred-during-initialization-of-vm-could-not-reserve-enough-space-for-object-heap-could-not-create-the-java-virtual-machine\/\" title=\"Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":6637,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,52],"tags":[354,353,352],"class_list":["post-129","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-tomcat-web-server","tag-tomcat-memory-issue","tag-vm-could-not-reserve-enough-space","tag-vm-memory-issue"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/129"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":21,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":6514,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions\/6514"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media\/6637"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}