https://bugzilla.redhat.com/show_bug.cgi?id=1144270
Bug ID: 1144270
Summary: SBT doesn't start correctly in some 32-bit machines
due to low memory
Product: Fedora
Version: 20
Component: sbt
Assignee: willb(a)redhat.com
Reporter: dugucloud(a)qq.com
QA Contact: extras-qa(a)fedoraproject.org
CC: java-sig-commits(a)lists.fedoraproject.org, s(a)shk.io,
willb(a)redhat.com
Description of problem:
When starting SBT, Java reports cannot start VM because it cannot reserve
enough heap.
Version-Release number of selected component (if applicable):
0.13.1
How reproducible:
Every time on my machine.
Steps to Reproduce:
Run command sbt in console and see the console output.
Actual results:
'''
$ sbt
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
'''
Expected results:
SBT works fine.
Additional info:
My machine is 32-bit. When I start SBT, my memory usage is 0.8 GiB / 2.5 GiB,
swap usage 0 GiB / 3.8GiB.
But after I modified the memory settings of Java in my SBT script
(/usr/bin/sbt), I can run it. These are the last few lines of my modified:
'''
export BASE_CLASSPATH=$(build-classpath scala ivy sbt ${JLINE} jansi
test-interface sbinary)
export JAVA_OPTS="-Xms256m -Xmx1024m -Xss1M -XX:+CMSClassUnloadingEnabled
-XX:MaxHeapSize=1000m -XX:MaxPermSize=256m"
java ${JAVA_OPTS} -Dfedora.sbt.boot.dir=${SBT_BOOT_DIR}
-Dfedora.sbt.ivy.dir=${SBT_IVY_DIR}
-Dsbt.boot.properties=${SBT_BOOT_PROPERTIES} -cp ${BASE_CLASSPATH}
xsbt.boot.Boot "$@"
'''
This is the StackOverflow question where I found my way:
https://stackoverflow.com/questions/4401396/could-not-reserve-enough-spac...
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=sZuZ0ALIyT&a=cc_unsubscribe