-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: increase the default value of -Xss #726
Comments
Is it a bug in epubcheck? Or in Pipeline? Will |
I'd say it's a bug in epubcheck. The exception occurs when the NCX is really big. I think a linked list is used internally in epubcheck to represent the reading order when parsing the NCX, and Java hits some recursion limit when I bet you could construct an EPUB that breaks epubcheck even at |
I read somewhere that a downside is that if you have a lot of threads, a large @rdeltour What do you think? A good idea to change the default value, or leave it up to users to set the |
@josteinaj the recursive algo that would causing OOME was replace by an iteration, so that particular issue should have beenfixed since v5.0.0 (see w3c/epubcheck#1434). Do you still encounter OOME with recent versions of EPUBCheck, and were you able to clearly identify this an issue with NCX reading order checks? If yes, would you mind opening an issue on
I wasn't aware of that. Do you think our use of threading would make that an issue for the Pipeline?
If increasing the default reduces the probability of memory issues, and can still be reverted by the user (with manual configuration), I think it does make sense. |
We don't create that much threads, so I don't think so. I think it's fine to add the |
I have not tried with epubcheck v5.0.0. We are setting -Xss on our end now, so this is not an issue for us anymore. |
I faced this epubcheck issue, which Romain described a solution for: w3c/epubcheck#1094
It failed with
-Xss1024k
, which is the default, but it succeeded with-Xss2048k
. I've now set JAVA_OPTS to-Xss4096k
for all our Pipeline 2 instances, just to be safe.Could the default be increased? I don't know what the best way would be. Maybe set it in
DEFAULT_JAVA_OPTS
inbin/pipeline2
?The text was updated successfully, but these errors were encountered: