I have had a server crash with the following stack trace:
java.lang.OutOfMemoryError: Java heap space at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57) at java.nio.ByteBuffer.allocate(ByteBuffer.java:331) at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:195) at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:175) at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:59) at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:111) at java.io.PrintWriter.<init>(PrintWriter.java:148) at java.io.PrintWriter.<init>(PrintWriter.java:131) at com.objectdb.o.STH.M(STH.java:660) at com.objectdb.o.LGR.n(LGR.java:375) at com.objectdb.o.LGR.h(LGR.java:205) at com.objectdb.o.LGR.g(LGR.java:181) at com.objectdb.o.HND.M(HND.java:263) at com.objectdb.o.HND.run(HND.java:150) at java.lang.Thread.run(Thread.java:722)
I don't understand why this should happen - a server process has full control of its resources, and so should never end up in a situation where it runs out of memory like this. This could be a serious problem for out deployment of objectdb in production situations.