Failed to Start the Cobar Process
Symptom
The Cobar process fails to be started. Run the ./startup.sh command and check the stdout.log file. The following warning is reported:
OpenJDK 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely removed in a future release. The stack size specified is too small, Specify at least 328k Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Key Process and Cause Analysis
The stack memory is too small for Java startup.
Conclusion and Solution
- Go to the /home/cobar-server-1.2.8-SNAPSHOT/bin directory.
1cd /home/cobar-server-1.2.8-SNAPSHOT/bin
- Open the startup.sh file.
1vim startup.sh - Press i to enter the insert mode and replace line 38 with the following content:
1JAVA_OPTS="-server -Xms10240m -Xmx10240m -Xmn8g -Xss328k"
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Run ./startup.sh again to start the Cobar process.
./startup.sh
Parent topic: Troubleshooting