import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.blueprints.impls.orient.OrientGraph;
public class MemoryTest {
public static void main(String[] args) {
OrientGraph graph = new OrientGraph("local:test1");
for (int i = 0; i < Integer.MAX_VALUE; i++) {
Vertex v = graph.addVertex("class:Test");
// set some properties just to make it grow faster
// removing this, will has the same effect, although grows slower
for (int x = 0; x < 100; x++) {
v.setProperty("name" + x, "unknown" + x);
}
graph.commit();
}
}
}
Thank you.