--
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Heap dump file created [703409076 bytes in 4,691 secs]
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.jar.Attributes.read(Attributes.java:394)
at java.util.jar.Manifest.read(Manifest.java:199)
at java.util.jar.Manifest.<init>(Manifest.java:69)
at java.util.jar.JarFile.getManifestFromReference(JarFile.java:199)
at java.util.jar.JarFile.getManifest(JarFile.java:180)
at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:780)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:422)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.orientechnologies.orient.core.serialization.OMemoryStream.<clinit>(OMemoryStream.java:51)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.serializeExceptionObject(ONetworkProtocolBinary.java:1623)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.sendError(ONetworkProtocolBinary.java:657)
at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.sendErrorOrDropConnection(OBinaryNetworkProtocolAbstract.java:238)
at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:218)
at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:65)
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import com.orientechnologies.orient.client.remote.OServerAdmin;
public class Test {
public static void main(String args[]) throws IOException, InterruptedException {
for (int i = 0; i < 1000; i ++) {
String dbName = "oom_" + i;
OServerAdmin admin = new OServerAdmin("remote:localhost").connect("root","root");
admin.createDatabase(dbName, "graph", "plocal");
admin.close();
System.out.println("created " + dbName);
admin = new OServerAdmin("remote:localhost/" + dbName).connect("root","root");
admin.dropDatabase("plocal");
admin.close();
System.out.println("dropped " + dbName);
TimeUnit.MILLISECONDS.sleep(2000); // the sleep actually does not make a difference
}
}
}
I'll create an issue for this.
Xander