run-bot.sh
Last updated
Last updated
You can adjust the default run-bot.sh:
-Xms256m
Sets the initial heap size to 256 MB. This specifies the starting amount of memory the JVM will allocate for the application, ensuring it has at least 256 MB from the beginning.
-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.
You can add logging by adding 2>&1 | tee -a notarblogs.txt
at the end of -XX:+UseSerialGC
Example: -XX:+UseSerialGC 2>&1 | tee -a notarblogs.txt
This will generate a notarblogs.txt file where all the logs will be saved. You can use this for debugging purposes.