在安装OrientDB的过程中,我遇到一个错误,说我没有足够的内存来运行应用程序(根据它的当前配置),并要求我在java上使用命令-Xmx更改应用程序的最大缓存使用内存限制:
2015-11-19 13:28:38:658 WARNI Not enough physical memory available for `enter code here`DISKCACHE: 2.006MB (heap=455MB). Set lower Maximum Heap (-Xmx setting on JVM) and restart OrientDB. Now running with DISKCACHE=256MB [orientechnologies]
2015-11-19 13:28:38:660 INFO OrientDB config DISKCACHE=-497MB (heap=455MB os=2.006MB disk=54.664MB) [orientechnologies]
2015-11-19 13:28:38:786 INFO Loading configuration from: /home/jeferson/orientdb-community-2.1.5/config/orientdb-server-config.xml... [OServerConfigurationLoaderXml]
2015-11-19 13:28:39:149 INFO OrientDB Server v2.1.5 (build 2.1.x@r; 2015-10-29 16:54:25+0000) is starting up... [OServer]
2015-11-19 13:28:39:210 INFO Databases directory: /home/jeferson/orientdb-community-2.1.5/databases [OServer]
2015-11-19 13:28:39:275 INFO Listening binary connections on 0.0.0.0:2424 (protocol v.32, socket=default) [OServerNetworkListener]
2015-11-19 13:28:39:281 INFO Listening http connections on 0.0.0.0:2480 (protocol v.10, socket=default) [OServerNetworkListener]
2015-11-19 13:28:39:307 INFO Installing dynamic plugin 'studio-2.1.zip'... [OServerPluginManager]
2015-11-19 13:28:39:447 INFO Installing GREMLIN language v.2.6.0 - graph.pool.max=50 [OGraphServerHandler]
2015-11-19 13:28:39:447 INFO [OVariableParser.resolveVariables] Error on resolving property: distributed [orientechnologies]
2015-11-19 13:28:39:451 INFO Installing Script interpreter. WARN: authenticated clients can execute any kind of code into the server by using the following allowed languages: [sql] [OServerSideScriptInterpreter]
2015-11-19 13:28:39:452 INFO OrientDB Server v2.1.5 (build 2.1.x@r; 2015-10-29 16:54:25+0000) is active. [OServer]问题是,似乎有必要将命令指向某个类或jarfile,但他们没有说明是什么,无论如何,我尝试了jarfiles orientdb-core-2.1.5.jar和orientdb-core-2.1.5.jar。
因此,我得到了以下错误:
nenhum atributo de宣言主体em /home/jeferson/orientdb-community-2.1.5/lib/orientdb-core-2.1.5.jar
java -Xmx300m -jar /home/jeferson/orientdb-community-2.1.5/lib/orientdb- server-2.1.5.jar
Exception in thread "main" java.lang.NoClassDefFoundError: com/orientechnologies/orient/core/exception/OConfigurationException
at com.orientechnologies.orient.server.OServerMain.create(OServerMain.java:26)
at com.orientechnologies.orient.server.OServerMain.main(OServerMain.java:40)
Caused by: java.lang.ClassNotFoundException: com.orientechnologies.orient.core.exception.OConfigurationException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)你知道怎么解决这个问题吗?
发布于 2015-12-01 07:29:57
如果您仔细查看输出,您将看到消息被分类为警告,而不是错误。此消息试图传达没有足够的空闲系统内存来支持OrientDB创建的“磁盘缓存”的默认大小。磁盘缓存实际上是OrientDB独立于JVM堆创建和使用的系统内存。
我不确定OrientDB在选择磁盘缓存的默认大小时到底使用了什么计算方法,但它是基于JVM heapsize设置的,这就是为什么它说要降低堆大小。
您还会在消息中看到它为diskcache选择了一个较小的大小。在此较小的磁盘缓存大小下,OrientDB将继续运行,但警告表明性能可能不是最佳的。
https://stackoverflow.com/questions/33808971
复制相似问题