"Could not reserve enough space for object heap"

13 views
Skip to first unread message

-rr

unread,
Dec 21, 2009, 2:29:22 PM12/21/09
to EtherPad Open Source Discussion

I get the following output from running bash -x bin/run_local.sh

+ java -classpath appjet-eth-dev.jar:data:lib/dnsjava-2.0.6.jar:lib/
jbcrypt-0.2.jar:lib/jcommon-1.0.15.jar:lib/jfreechart-1.0.12.jar -
server -Xmx1G -Xms1G -Djava.awt.headless=true -XX:MaxGCPauseMillis=500
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -
XX:CMSIncrementalSafetyFactor=50 -XX:+PrintGCDetails -XX:
+PrintGCTimeStamps -Xloggc:./data/logs/backend/jvm-gc.log -
Dappjet.jmxremote=true net.appjet.oui.main --configFile=./etc/
etherpad.localdev-default.properties
Error occurred during initialization of VM
Could not reserve enough space for object heap

And running strace -fi I get the following output that seems related:

[pid 20971] [ 335a6d085a] mmap(0x2aaab3910000, 986513408,
PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS,
-1, 0) = -1 ENOMEM (Cannot allocate memory)
[pid 20971] [ 335b20d54b] write(1, "Error occurred during
initializa"..., 43Error occurred during initialization of VM
)

My kernel.shmax is high enough. I don't understand what could be
happening here.

Anyone have any insight?

Centos5.4 btw.

-rr

-rr

unread,
Dec 21, 2009, 2:33:54 PM12/21/09
to EtherPad Open Source Discussion
I found the problem elswhere here. Should have searched more.

I am on a slicehost that has up to 4GB of ram, but that changes. I am
only guaranteed 256Mb.

Passing 128m to the startup script got me past that point to a null
pointer exception

Startup execution failed with error.
java.lang.NullPointerException
at net.appjet.oui.AutoUpdateFile.update(files.scala:258)
at net.appjet.oui.DiskLibrary.updateExecutable(files.scala:
303)
at net.appjet.oui.DiskLibrary.executable(files.scala:318)
at net.appjet.oui.ScopeReuseManager$.preambleExecutable
(servermodel.scala:73)
at net.appjet.oui.ScopeReuseManager$$anonfun$newRunner$1.apply
(servermodel.scala:124)
at net.appjet.oui.ScopeReuseManager$$anonfun$newRunner$1.apply
(servermodel.scala:122)
at net.appjet.oui.NoninheritedDynamicVariable.withValue
(dynamicvar.scala:38)
at net.appjet.oui.ExecutionContextUtils$.withContext
(execution.scala:328)
at net.appjet.oui.ScopeReuseManager$.newRunner
(servermodel.scala:122)
at net.appjet.oui.ScopeReuseManager$$anonfun$getRunner$1.apply
(servermodel.scala:140)
at net.appjet.oui.ScopeReuseManager$$anonfun$getRunner$1.apply
(servermodel.scala:137)
at net.appjet.oui.ScopeReuseManager$.readLocked
(servermodel.scala:85)
at net.appjet.oui.ScopeReuseManager$.getRunner
(servermodel.scala:137)
at net.appjet.oui.execution$.runOutOfBand(execution.scala:600)
at net.appjet.oui.main$.runOnStartup(main.scala:102)
at net.appjet.oui.main$.main(main.scala:264)
at net.appjet.oui.main.main(main.scala)
Heap

Sigh.

Reply all
Reply to author
Forward
0 new messages