run-jupiter.sh
You can adjust the default run-jupiter.sh:
#!/bin/bash
# The path to the jupiter config file (required)
export jupiter_config_path="./jupiter-config.toml"
# Move to the correct workdir to prevent path issues
cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Source the notarb_java.sh script with the specified VM arguments
# We highly recommend you increase the -Xmx value to better fit your system. Refer to other VM args here:
# https://docs.oracle.com/en/java/javase/22/docs/specs/man/java.html#standard-options-for-java
. "./libs/notarb_java.sh" \
-Xmx2048m \
-XX:+UseSerialGC
Increase Heap Memory for Jupiter:
-Xmx2048m: argument increases the maximum heap memory allocated to the Java Virtual Machine (JVM) to 2048 MB (2 GB). Adjusting this value allows you to control how much memory the Java application can use.
Other values you can use:
1g = 1 GB
1024m = 1 GB / 1024 MB
-XX:+UseSerialGC
specifies a garbage collector configuration for the JVM, in this case enabling the Serial Garbage Collector, which is suitable for small applications or those with single-threaded memory allocation patterns.
Add Logging:
You can add logging by adding 2>&1 | tee -a jupiterlogs.txt
at the end of -XX:+UseSerialGC
Example: -XX:+UseSerialGC 2>&1 | tee -a jupiterlogs.txt
This will generate a jupiterlogs.txt file where all the logs will be saved. You can use this for debugging purposes.
Last updated