{"id":730,"date":"2019-12-13T15:21:56","date_gmt":"2019-12-13T07:21:56","guid":{"rendered":"http:\/\/prayerlaputa.com\/?p=730"},"modified":"2019-12-13T15:22:44","modified_gmt":"2019-12-13T07:22:44","slug":"spring-boot%e5%90%af%e5%8a%a8%e5%a4%b1%e8%b4%a5%ef%bc%8cjvm-%e6%8a%a5%e9%94%99%ef%bc%9awarning-insufficient-space-for-shared-memory-file","status":"publish","type":"post","link":"http:\/\/prayerlaputa.com\/?p=730","title":{"rendered":"spring boot\u542f\u52a8\u5931\u8d25\uff0cJVM \u62a5\u9519\uff1awarning Insufficient space for shared memory file"},"content":{"rendered":"<h2 id=\"%E9%97%AE%E9%A2%98%E4%B8%8E%E5%8E%9F%E5%9B%A0\" class=\"mume-header\">\u95ee\u9898\u4e0e\u539f\u56e0<\/h2>\n<p>\u542f\u52a8spring boot\u7a0b\u5e8f\u65f6\uff0c\u62a5\u5f02\u5e38\uff0c\u5bfc\u81f4\u7a0b\u5e8f\u542f\u52a8\u5931\u8d25\uff0c\u9047\u5230\u5f62\u5982\u4e0b\u9762\u7684\u9519\u8bef\uff1a<\/p>\n<pre class=\"language-\" data-role=\"codeBlock\" data-info=\"\"><code>A child container failed during start\r\njava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[\/Integration]]\r\nat java.util.concurrent.FutureTask.report(FutureTask.java:122)\r\nat java.util.concurrent.FutureTask.get(FutureTask.java:192)\r\nat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)\r\nat org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)\r\nat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\u2026\u2026\r\n<\/code><\/pre>\n<p>\u7136\u800c\uff0c\u8fd9\u4e2a\u53ea\u662f\u7ed3\u679c\uff0c\u5b9e\u9645\u4e0a\u5e76\u4e0d\u80fd\u5b9a\u4f4d\u95ee\u9898\uff0c\u7b14\u8005\u7ee7\u7eed\u627e\u5f02\u5e38\uff0c\u770b\u5230\u7c7b\u4f3c\u4e0b\u9762\u7684\u9519\u8bef\uff1a<!--more--><\/p>\n<pre class=\"language-\" data-role=\"codeBlock\" data-info=\"\"><code>org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat\r\n at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137) ~[spring-boot-1.5.13.RELEASE.jar:1.5.13.RELEASE]\r\n at org.springframework.context.support.AbstractApplicationContext.__refresh(AbstractApplicationContext.java:537) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]\r\n at org.springframework.context.support.AbstractApplicationContext.jrLockAndRefresh(AbstractApplicationContext.java:40002) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]\r\n at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:41008) ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE]\r\n\u2026\u2026\r\n<\/code><\/pre>\n<p>\u8fd8\u662f\u641c\u4e0d\u51fa\u4ec0\u4e48\u7ed3\u679c\uff0c\u5b9e\u5728\u5d29\u6e83\u4e4b\u9645\uff0c\u53d1\u73b0spring boot\u7a0b\u5e8f\u542f\u52a8\u65f6\uff0c\u7b2c\u4e00\u53e5log\u6709\u8fd9\u4e48\u4e00\u53e5\uff1a<\/p>\n<pre class=\"language-\" data-role=\"codeBlock\" data-info=\"\"><code>warning Insufficient space for shared memory file\r\n\u2026\u2026\r\n<\/code><\/pre>\n<p>\u5e76\u4e14\u53d1\u73b0\uff0c\u4f7f\u7528jps\u7b49\u547d\u4ee4\u65f6\uff0c\u4e5f\u4f1a\u62a5\u8fd9\u4e2a\u8b66\u544a\uff0c\u624d\u53d1\u73b0\u539f\u6765\u662f<strong>\u786c\u76d8\u6ee1\u4e86<\/strong>\uff0c\u53ef\u4ee5\u4f7f\u7528<\/p>\n<pre class=\"language-\" data-role=\"codeBlock\" data-info=\"\"><code>df -h\r\n<\/code><\/pre>\n<p>\u67e5\u770b\u76ee\u524d\u670d\u52a1\u5668\u786c\u76d8\u60c5\u51b5\u3002<br \/>\n\u5176\u4ed6\u547d\u4ee4\uff1a<br \/>\n\u67e5\u770b\u4e00\u4e2a\u6587\u4ef6\u5939\u4e2d\u6240\u6709\u6587\u4ef6\u7684\u5927\u5c0f\uff08\u4e0d\u542b\u5b50\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff09\uff1adu -Sh\u6216du -Ssh<br \/>\n\u67e5\u770b\u4e00\u4e2a\u6587\u4ef6\u5939\u4e2d\u6240\u6709\u6587\u4ef6\u7684\u5927\u5c0f\uff08\u5305\u542b\u5b50\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff09\uff1adu -h\u6216\u8005du -sh<\/p>\n<p>S\uff1a\u8868\u793a\u4e0d\u7edf\u8ba1\u5b50\u76ee\u5f55\uff0cs\uff1a\u8868\u793a\u4e0d\u8981\u663e\u793a\u5176\u4e0b\u5b50\u76ee\u5f55\u548c\u6587\u4ef6\u5360\u7528\u7684\u78c1\u76d8\u7a7a\u95f4\u5927\u5c0f\u4fe1\u606f\uff0c\u53ea\u663e\u793a\u603b\u7684\u5360\u7528\u7a7a\u95f4\u5927\u5c0f<br \/>\n\u67e5\u770b\u6587\u4ef6\u5939\u4e2d\u6bcf\u4e00\u4e2a\u6587\u4ef6\u7684\u5927\u5c0f\uff1adu -ah \u6216\u8005ls -lRh<\/p>\n<h2 id=\"%E8%A7%A3%E5%86%B3\" class=\"mume-header\">\u89e3\u51b3<\/h2>\n<p>\u5b9a\u4f4d\u95ee\u9898\u540e\uff0c\u6e05\u7406\u786c\u76d8\uff0c\u5373\u53ef\u907f\u514d\u5f02\u5e38\u3001\u542f\u52a8\u7a0b\u5e8f\u3002<\/p>\n<h2 id=\"%E5%8F%82%E8%80%83%E6%96%87%E6%A1%A3\" class=\"mume-header\">\u53c2\u8003\u6587\u6863<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.cnblogs.com\/21summer\/p\/11016584.html\">linux\u4e2d\u5982\u4f55\u67e5\u770b\u6587\u4ef6\/\u6587\u4ef6\u5939\u7684\u5927\u5c0f<\/a><\/li>\n<li><a href=\"https:\/\/blog.csdn.net\/u012965373\/article\/details\/51984806\">Java HotSpot(TM) 64-Bit Server VM warning: Insufficient space for shared memory file:<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u4e0e\u539f\u56e0 \u542f\u52a8spring boot\u7a0b\u5e8f\u65f6\uff0c\u62a5\u5f02\u5e38\uff0c\u5bfc\u81f4\u7a0b\u5e8f\u542f\u52a8\u5931\u8d25\uff0c\u9047\u5230\u5f62\u5982\u4e0b\u9762\u7684\u9519\u8bef\uff1a A child  <a href='http:\/\/prayerlaputa.com\/?p=730' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[6,75],"tags":[33,76],"_links":{"self":[{"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/posts\/730"}],"collection":[{"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=730"}],"version-history":[{"count":1,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/posts\/730\/revisions"}],"predecessor-version":[{"id":731,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/posts\/730\/revisions\/731"}],"wp:attachment":[{"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=730"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}