0

I'm using a package built on sbt, and following the instruction, which is: run sbt dist in the package folder.

After the process, i got a .zip file that contains the bin file if i unzip it. (Windows system)

However, I'd like to increase the heap size/memory allocated for this package/program.

I've tried all methods as listed below, but none of them worked.

I've searched a lot, including all methods listed here. But seems like they use sbt directly, like sbt run, sbt project_name, etc, which are not very related to my problem i guess?

Thank you all for the comments! Here is the link to the documentation about how to "Build and Link" of the project I tried to use https://github.com/anskarl/LoMRF/blob/develop/docs/7_1_build_and_link_lomrf.md

  • 2
    The heap size is not hardcoded in a program, rather when you run it you can specify that property. – Luis Miguel Mejía Suárez Jan 23 '23 at 19:42
  • 1
    How do you run the program given the zip file? I guess there's a file like a `.bat` or something like that that runs `java` under the hood. You'll want to customize this file. – Gaël J Jan 23 '23 at 20:52
  • You should give us more details as what SBT plugins you are using that does the "DIST" part. For example sbt-pack allows customisation directly from `build.sbt` (https://github.com/xerial/sbt-pack) but I assume that's not what you are using. – Gaël J Jan 23 '23 at 20:54

1 Answers1

0

The author of that project answered the question and here is the solution: https://github.com/anskarl/LoMRF/issues/24.

For example, to set it to 8GB, run in the shell the following:

LOMRF_JVM_ARGS="-Xmx8g" lomrf

Magnus
  • 1,152
  • 8
  • 20