Search code examples
javaeclipsedebuggingdb4o

Db4o is extremely slow in Eclipse debug mode


I'm working with a db4o database and have a database of approximately 1000-5000 objects on Mac OS X, developing in Eclipse Helios.

Currently, I'm retrieving all objects of a certain class:

ObjectSet<Task> query = m_container.query(Task.class);

But then, when I need to put it into a real ArrayList, it is awfully slow. Funnily enough, that only is in Debug mode in Eclipse - it never finished (in approx. 5 min running at 100% CPU), hanging at the toArray method in the Constructor of ArrayList.

When I run it in normal mode, the same operation completes in a matter of seconds.

Has anyone of you experienced this or knows how to fix it?

Thanks!


Solution

  • I suggest taking a look at the breakpoints. These are the things that make the JVM work slower in the debug mode.