{"id":55,"date":"2012-05-31T14:58:55","date_gmt":"2012-05-31T14:58:55","guid":{"rendered":"http:\/\/www.milesweb.com\/blog\/?p=55"},"modified":"2023-02-01T19:02:01","modified_gmt":"2023-02-01T13:32:01","slug":"error-occurred-during-initialization-of-vm","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/","title":{"rendered":"Error occurred during initialization of VM"},"content":{"rendered":"<p><strong>Using CATALINA_BASE:&nbsp;&nbsp; \/usr\/local\/jakarta\/tomcat<br \/>\nUsing CATALINA_HOME:&nbsp;&nbsp; \/usr\/local\/jakarta\/tomcat<br \/>\nUsing CATALINA_TMPDIR: \/usr\/local\/jakarta\/tomcat\/temp<br \/>\nUsing JRE_HOME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/usr\/local\/jdk<br \/>\nUsing CLASSPATH:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/usr\/local\/jakarta\/tomcat\/bin\/bootstrap.jar<br \/>\nError occurred during initialization of VM<br \/>\nCould not reserve enough space for object heap<br \/>\nCould not create the Java virtual machine.<\/strong><\/p>\n<p>You will receive error above the time you stop\/start tomcat on linux cPanel servers. This is because the assigned heap size is insufficient. An alternative is to increase the heap size depending on the RAM allocated to your server.<\/p>\n<p>There are 2 ways you can increase the heap size. Login to your server via SSH &amp; use one of the command below.<\/p>\n<p><strong>export CATALINA_OPTS=&#8221;-Xms1024m -Xmx1024m&#8221;<\/strong><\/p>\n<p style=\"text-align: center;\"><strong>OR<\/strong><\/p>\n<p><strong>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;<\/strong><\/p>\n<p>Once done you will need to restart tomcat.<\/p>\n<p>[root@server ~]$ \/usr\/local\/jakarta\/tomcat\/bin\/shutdown.sh<br \/>\n[root@server ~]$ \/usr\/local\/jakarta\/tomcat\/bin\/startup.sh<br \/>\n[root@server ~]$ \/usr\/local\/jakarta\/tomcat\/bin\/catalina.sh run<\/p>\n<p>For <a href=\"https:\/\/www.milesweb.in\/hosting\/vps-hosting\/\">VPS hosting<\/a> service, <a href=\"https:\/\/www.milesweb.in\/hosting\/vps-hosting\/unmanaged-vps\" target=\"_blank\" rel=\"noopener\">unmanaged VPS hosting<\/a> and also all other type of hosting solutions, you can consider <a href=\"https:\/\/www.milesweb.in\/\">MilesWeb<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using CATALINA_BASE:&nbsp;&nbsp; \/usr\/local\/jakarta\/tomcat Using CATALINA_HOME:&nbsp;&nbsp; \/usr\/local\/jakarta\/tomcat Using CATALINA_TMPDIR: \/usr\/local\/jakarta\/tomcat\/temp Using JRE_HOME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/usr\/local\/jdk Using CLASSPATH:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/usr\/local\/jakarta\/tomcat\/bin\/bootstrap.jar Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. You will receive error above the time you stop\/start tomcat on linux cPanel servers. This is because the assigned&#8230; <a class=\"read-more\" href=\"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[365],"tags":[10,11],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-vps","tag-java-heap-size","tag-tomcat-errors"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Error occurred during initialization of VM<\/title>\n<meta name=\"description\" content=\"Resolve the error ocurred during VM (Virtual machine) initialization via SSH and easy commands.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Error occurred during initialization of VM\" \/>\n<meta property=\"og:description\" content=\"Resolve the error ocurred during VM (Virtual machine) initialization via SSH and easy commands.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting Blogs by MilesWeb | WordPress, Cloud &amp; SEO Tips\" \/>\n<meta property=\"article:published_time\" content=\"2012-05-31T14:58:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-01T13:32:01+00:00\" \/>\n<meta name=\"author\" content=\"Neha Khanna\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Neha Khanna\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/\",\"url\":\"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/\",\"name\":\"Error occurred during initialization of VM\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/blog\/#website\"},\"datePublished\":\"2012-05-31T14:58:55+00:00\",\"dateModified\":\"2023-02-01T13:32:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/blog\/#\/schema\/person\/92e28debc55550c9cf3d9eb47af1d6e7\"},\"description\":\"Resolve the error ocurred during VM (Virtual machine) initialization via SSH and easy commands.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Error occurred during initialization of VM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/blog\/#website\",\"url\":\"https:\/\/www.milesweb.in\/blog\/\",\"name\":\"Web Hosting Blogs by MilesWeb | WordPress, Cloud &amp; SEO Tips\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/blog\/#\/schema\/person\/92e28debc55550c9cf3d9eb47af1d6e7\",\"name\":\"Neha Khanna\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2024\/12\/neha.jpeg\",\"contentUrl\":\"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2024\/12\/neha.jpeg\",\"caption\":\"Neha Khanna\"},\"description\":\"Neha Kahnna is a professional content writer associated with MilesWeb. She curates articles on web hosting, latest SEO trends and technology topics. Her insightful content captivates the reader\u2019s attention and deliver a higher learning ROI.\",\"sameAs\":[\"https:\/\/www.milesweb.com\/\"],\"url\":\"https:\/\/www.milesweb.in\/blog\/author\/neha-khanna\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Error occurred during initialization of VM","description":"Resolve the error ocurred during VM (Virtual machine) initialization via SSH and easy commands.","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:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/","og_locale":"en_US","og_type":"article","og_title":"Error occurred during initialization of VM","og_description":"Resolve the error ocurred during VM (Virtual machine) initialization via SSH and easy commands.","og_url":"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/","og_site_name":"Web Hosting Blogs by MilesWeb | WordPress, Cloud &amp; SEO Tips","article_published_time":"2012-05-31T14:58:55+00:00","article_modified_time":"2023-02-01T13:32:01+00:00","author":"Neha Khanna","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Neha Khanna","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/","url":"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/","name":"Error occurred during initialization of VM","isPartOf":{"@id":"https:\/\/www.milesweb.in\/blog\/#website"},"datePublished":"2012-05-31T14:58:55+00:00","dateModified":"2023-02-01T13:32:01+00:00","author":{"@id":"https:\/\/www.milesweb.in\/blog\/#\/schema\/person\/92e28debc55550c9cf3d9eb47af1d6e7"},"description":"Resolve the error ocurred during VM (Virtual machine) initialization via SSH and easy commands.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/blog\/hosting\/vps\/error-occurred-during-initialization-of-vm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Error occurred during initialization of VM"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/blog\/#website","url":"https:\/\/www.milesweb.in\/blog\/","name":"Web Hosting Blogs by MilesWeb | WordPress, Cloud &amp; SEO Tips","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/blog\/#\/schema\/person\/92e28debc55550c9cf3d9eb47af1d6e7","name":"Neha Khanna","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2024\/12\/neha.jpeg","contentUrl":"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2024\/12\/neha.jpeg","caption":"Neha Khanna"},"description":"Neha Kahnna is a professional content writer associated with MilesWeb. She curates articles on web hosting, latest SEO trends and technology topics. Her insightful content captivates the reader\u2019s attention and deliver a higher learning ROI.","sameAs":["https:\/\/www.milesweb.com\/"],"url":"https:\/\/www.milesweb.in\/blog\/author\/neha-khanna\/"}]}},"views":50988,"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":13,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":19913,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions\/19913"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}