Your comments

Thanks a lot, in fact Komga (which I use for comics) also recommends using the Xmx argument 

Now it would be useful to know more or less how many books equal how many memory usage.