Skip to content
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

PDF compilation on a RAM-limited machine (Windows with 8GB) #246

Open
ronaldtse opened this issue Dec 5, 2024 · 6 comments
Open

PDF compilation on a RAM-limited machine (Windows with 8GB) #246

ronaldtse opened this issue Dec 5, 2024 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@ronaldtse
Copy link
Contributor

On a user's desktop machine, it only has 8GB RAM and is running Windows 11.

The default 4GB seems to be unable to compile the Document 01 PDF.

We are clearly not able to use 8GB because of this failure:

Error: Could not create the Java Virtual Machine.
A fatal exception has occurred.

@Intelligent2013 I wonder if we can further lower the memory needs of PDF compilation, by using Document 01 as an example?

@ronaldtse ronaldtse added the question Further information is requested label Dec 5, 2024
@Intelligent2013
Copy link
Contributor

Looks like something wrong in the JVM starting, but not PDF compilation.

Questions:

  1. how do you run the PDF compilation? Please provide the command line.
  2. please run java -version

@ReesePlews
Copy link
Contributor

hello @Intelligent2013

i dont know the command line for PDF compilation; please ask @ronaldtse for that

normally we use:
bundle exec metanorma sources/001-v4/document.adoc
or
bundle exec metanorma site generate --agree-to-terms

the java version information, is shown here

image

@ReesePlews
Copy link
Contributor

i think the clean machine may have been win10 not win11; @AIS-RyoMukai please confirm the OS on the "clean machine" we tested today. thank you.

@Intelligent2013
Copy link
Contributor

@ReesePlews thank you for the additional information. The java -version output doesn't contain the 64-bit. It means that the 32-bit version of JVM installed. The maximum 32-bit JVM heap size limited to 1.6-1.8Gb (https://www.oracle.com/java/technologies/hotspotfaq.html#:~:text=The%20maximum%20theoretical%20heap%20limit,1.4G%20to%201.6G.). To solve the issue, please upgrade the JVM to the 64-bit version (and use the JVM update 241 or higher (8u241)).

@Intelligent2013
Copy link
Contributor

For instance, java -version on my machine (Win10 64-bit):

java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)

@ReesePlews
Copy link
Contributor

thank you @Intelligent2013 ; on my windows machine (Win 10 64-bit) i have this version of Java installed;

PS C:\Users\admin> java -version
openjdk version "17.0.13" 2024-10-15
OpenJDK Runtime Environment Temurin-17.0.13+11 (build 17.0.13+11)
OpenJDK 64-Bit Server VM Temurin-17.0.13+11 (build 17.0.13+11, mixed mode, sharing)

i have had no problems running metanorma with the plateau documents on my local install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants