openjdk 64位服务器vm警告:无法保留共享内存(错误=1),(错误=12),(错误=12)

uemypmqf  于 2021-06-27  发布在  Java
关注(0)|答案(0)|浏览(758)

我一直在运行solr的数字海洋滴1gb内存+1vcpu。它突然停止工作了。当我浏览不同的日志时,我发现以下错误:未能保留共享内存。
为了更好地分析内存问题,我在digitalocean创建了两个lemp服务器,并在ubuntu 20.04上安装了solr 8.7.0:
5美元一滴1gb ram+1vcpu
80美元16gb内存+2vCPU
我发现/var/solr/logs/solr-8983-console.log在两台服务器上都显示以下错误。如何解决这个问题?

OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error = 1)
OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error = 12)
OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error = 12)
2020-12-29 18:21:50.206 INFO  (main) [   ] o.e.j.u.log Logging initialized @1178ms to org.eclipse.jetty.util.log.Slf4jLog
2020-12-29 18:21:50.305 WARN  (main) [   ] o.e.j.x.XmlConfiguration Ignored arg: <Arg name="threadpool">
    <New id="threadpool" class="com.codahale.metrics.jetty9.InstrumentedQueuedThreadPool"><Arg name="registry">
        <Call id="solrJettyMetricRegistry" name="getOrCreate" class="com.codahale.metrics.SharedMetricRegistries"><Arg>solr.jetty</Arg></Call>
      </Arg></New>
  </Arg>
2020-12-29 18:21:50.449 INFO  (main) [   ] o.e.j.s.Server jetty-9.4.27.v20200227; built: 2020-02-27T18:37:21.340Z; git: a304fd9f351f337e7c0e2a7c28878dd536149c6c; jvm 11.0.9.1+1-Ubuntu-0ubuntu1.20.04
2020-12-29 18:21:50.474 INFO  (main) [   ] o.e.j.d.p.ScanningAppProvider Deployment monitor [file:///opt/solr-8.7.0/server/contexts/] at interval 0
2020-12-29 18:21:50.849 INFO  (main) [   ] o.e.j.w.StandardDescriptorProcessor NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet
2020-12-29 18:21:50.863 INFO  (main) [   ] o.e.j.s.session DefaultSessionIdManager workerName=node0
2020-12-29 18:21:50.864 INFO  (main) [   ] o.e.j.s.session No SessionScavenger set, using defaults
2020-12-29 18:21:50.867 INFO  (main) [   ] o.e.j.s.session node0 Scavenging every 600000ms
2020-12-29 18:21:50.944 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter Using logger factory org.apache.logging.slf4j.Log4jLoggerFactory
2020-12-29 18:21:50.950 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 8.7.0
2020-12-29 18:21:50.951 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port 8983
2020-12-29 18:21:50.951 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: /opt/solr
2020-12-29 18:21:50.953 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2020-12-29T18:21:50.953065Z

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题