我在服务器上安装了OrientDB 2.2.0,但无法运行server.sh脚本启动它。以前的版本在服务器上启动良好,当前版本正在我的笔记本上运行。服务器是一个来自数字海洋的液滴,Ubuntu 15.10 32位.我得到的错误在下面。
无效的最大直接内存大小:-XX:MaxDirectMemorySize=512g指定的大小超过最大可表示大小。错误:无法创建Java虚拟机。错误:已发生致命异常。程序将退出。
更新问题与-XX:MaxDirectMemorySize=512g有关。我把它改为-XX:MaxDirectMemorySize=512m,错误就消失了。现在的问题是服务器试图启动,但是给出了下面的消息:
在线程"main“中为当前服务器java.nio.DirectByteBuffer.(DirectByteBuffer.java:123)创建系统数据库'OSystem‘:java.nio.Bits.reserveMemory(Bits.java:693)上的直接缓冲区内存(Bits.java:693)、在com.orientechnologies.common.directmemory.OByteBufferPool.allocateBuffer(OByteBufferPool.java:309) (com.orientechnologies)处的OSystemDatabaseException (OSystem)。common.directmemory.OByteBufferPool.acquireDirect(OByteBufferPool.java:228) at com.orientechnologies.orient.core.storage.cache.local.OWOWCache.cacheFileContent(OWOWCache.java:1255) at com.orientechnologies.orient.core.storage.cache.local.OWOWCache.load(OWOWCache.java:617) at com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache.updateCache(O2QCache.java:1200) at com.orientechnologies.orient.core。storage.cache.local.twoq.O2QCache.doLoad(O2QCache.java:439) at com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache.allocateNewPage(O2QCache.java:489) at com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperation.commitChanges(OAtomicOperation.java:426) at com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperationsManager.endAtomicOperation(OAtomicOperationsManager.java:420)在com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent.endAtomicOperation(ODurableComponent.java:118) at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.create(OPaginatedCluster.java:197) at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.addClusterInternal(OAbstractPaginatedStorage.java:3349) at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.doAddCluster(OAbstractPaginatedStorage.com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.create(OAbstractPaginatedStorage.java:381) at com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.create(OLocalPaginatedStorage.java:120) at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.create(ODatabaseDocumentTx.java:378) at com.orientechnologies.orient.server.OSystemDatabase.init(OSystemDatabase.java:106)在com.orientechnologies.orient.server.OSystemDatabase.(OSystemDatabase.java:42) at com.orientechnologies.orient.server.OServer.initSystemDatabase(OServer.java:1217) at com.orientechnologies.orient.server.OServer.activate(OServer.java:343) at com.orientechnologies.orient.server.OServerMain.main(OServerMain.java:41)
发布于 2016-06-09 22:45:03
(代表“任择议定书”张贴)。
现在一切都好了。我刚把-XX:MaxDirectMemorySize=512m改成了-XX:MaxDirectMemorySize=2g。
发布于 2016-06-09 12:23:13
我想您有32位JVM。应该将此值设置为-XX:MaxDirectMemorySize=2g。
https://stackoverflow.com/questions/37713814
复制相似问题