On Wed, Nov 05, 2014 at 10:25:16AM -0500, Cody Dunne wrote:

> You could always give JabRef more memory. For example: java -Xms1024m
> -Xmx1024m -jar JabRef.jar

I also have the problem of JabRef loading very slowly because of large
.bib files. So this suggestion was helpful, but it left questions in my
mind.

First, -Xms sets the initial heap size and so would appear to address
the slow loading problem. However, the value is supposed to be expressed
in bytes. It looks like this example would make the initial heap a
terabyte! Would this not produce an out of memory error on any sane
machine?

Second, I'm not sure whether setting the -Xms value does anything under
Linux. I lack the expertise to know, but so I hear. I don't know how to
ascertain the default heap values in java. Under Linux, would the slow
loading problem be addressed simply by setting a higher -Xmx value?

Third, I gather this value needs to be set by looking at its actual
effect on performance by trial and error, for it depends on how the
virtual machine handles garbage collection. I hear that too high a value
can hurt performance. Again, I lack expertise.

Haines Brown


------------------------------------------------------------------------------
_______________________________________________
Jabref-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jabref-users

Reply via email to