Answers.Body: <p>Java applications can be started <a href="https://alvinalexander.com/blog/post/java/java-xmx-xms-memory-heap-size-control/" rel="nofollow noreferrer">using a command line argument to specify the maximum amount of memory to allocate</a>.</p>
  <p>For example, <em>DocFetrcher</em> on a particular Windows PC uses a batch file with the following arguments:</p>
  <pre><code>java -enableassertions -Xmx1g -Xss2m -cp %libclasspath% -Djava.library.path=lib net.sourceforge.docfetcher.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
  </code></pre>
  <p><code>-Xmx1g</code> (or <code>-Xmx1G</code>) specifies 1 gigabyte as the maximum heap size</p>
  <p><code>-Xss2m</code> (or <code>-Xss2M</code>) specifies 2 megabytes as the maximum Java thread stack size</p>
  <p>Consider experimenting with variously sized batch startup files for <em>EPUBCheck</em>, and consult with their tech support for help on that.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-02T01:37:54.463Z
Answers.LastActivityDate: 2022-02-02T01:37:54.463Z
Answers.UserDisplayName: DrMoishe Pippik
Answers.Body: <p>When I run epubcheck via command line on Windows with java installed, I used to get those error messages. Then following some release notes for epubcheck, I began to run the command this way:</p>
  <pre><code>java -Xss1024k -jar epubcheck.jar myebook.epub
  </code></pre>
  <p>From that point, it worked correctly every time.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-11T22:39:15.253Z
Answers.LastActivityDate: 2022-02-11T22:39:15.253Z
Answers.UserDisplayName: idiotprogrammer
Body: <p>Below is error am facing when loading epub file in pagina EPUB checker.</p>
  <p>EPUBCheck aborted! The system lacks sufficient memory! Make sure that Java is installed as 64bit application. Error code: 99</p>
  <p>Please let me know if there is solution for it.</p>
  <p>Regards,
  Anil</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-02-01T14:59:50.337Z
Comments.Text: What OS what type of CPU What version of Java? How do you call EpubChecker? What is pagina EPUB checker? I assume EPUBCheck is https://www.w3.org/publishing/epubcheck/
Comments.UserDisplayName: mmmmmm
Tags: <epub>
Title: EPUBCheck aborted! The system lacks sufficient memory! Make sure that Java is installed as 64bit application. Error code: 99
UserDisplayName: Anil Bakshi
ThreadText: # EPUBCheck aborted! The system lacks sufficient memory! Make sure that Java is installed as 64bit application. Error code: 99
  
  (Asked by: username_0 on 2022-01-31)
  
  Below is error am facing when loading epub file in pagina EPUB checker.
  
  EPUBCheck aborted! The system lacks sufficient memory! Make sure that Java is installed as 64bit application. Error code: 99
  
  Please let me know if there is solution for it.
  
  Regards,
  Anil
  
  **Tags:** epub
  
  > **Comments:**
  > **username_1**: What OS what type of CPU What version of Java? How do you call EpubChecker? What is pagina EPUB checker? I assume EPUBCheck is https://www.w3.org/publishing/epubcheck/  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2022-02-02. Score: 2
  
  Java applications can be started using a command line argument to specify the maximum amount of memory to allocate.
  For example, DocFetrcher on a particular Windows PC uses a batch file with the following arguments:
  java -enableassertions -Xmx1g -Xss2m -cp %libclasspath% -Djava.library.path=lib net.sourceforge.docfetcher.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
  
  -Xmx1g (or -Xmx1G) specifies 1 gigabyte as the maximum heap size
  -Xss2m (or -Xss2M) specifies 2 megabytes as the maximum Java thread stack size
  Consider experimenting with variously sized batch startup files for EPUBCheck, and consult with their tech support for help on that.
  
  
  ---
  
  ### Answer by username_3 on 2022-02-11. Score: 1
  
  When I run epubcheck via command line on Windows with java installed, I used to get those error messages. Then following some release notes for epubcheck, I began to run the command this way:
  java -Xss1024k -jar epubcheck.jar myebook.epub
  
  From that point, it worked correctly every time.
  
  
  ---
  
  