How to set java heap size on Openshift Origin PAAS

I recently received my copy of Openshift Origin. I deployed my first application. I am creating a diy (do-it-yourself) cartridge. I added a Cassandra cartridge to this application and tried to run it. Unfortunately, I get the following error:

xss =  -ea -Xss4m -javaagent:./cassandra/versions/1.2.5/bin/../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms256M -Xmx256M -Xmn80M    -XX:+HeapDumpOnOutOfMemoryError -Xss180k
[test-dsx.dsx.org 5283b2358000fdc2a100023a]\> 
The stack size specified is too small, Specify at least 228k
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I am not familiar with using PAAS and trying to figure out how to install my java options in this environment?

+4
source share
2 answers

I fixed it by editing /etc/cassandra/cassandra-env.sh

I changed JVM_OPTS="$JVM_OPTS -Xss180k"toJVM_OPTS="$JVM_OPTS -Xss256k"

and he worked.

See my question and answer

+1
source

, java . : -Xss180k. , -Xss4m.

URL- cassandra, .

0

All Articles