Rate This Document
Findability
Accuracy
Completeness
Readability

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

  1. Go to the /home/cobar-server-1.2.8-SNAPSHOT/bin directory.
    1
    cd /home/cobar-server-1.2.8-SNAPSHOT/bin
    
  2. Open the startup.sh file.
    1
    vim startup.sh
    
  3. Press i to enter the insert mode and replace line 38 with the following content:
    1
    JAVA_OPTS="-server -Xms10240m -Xmx10240m -Xmn8g -Xss328k"
    
  4. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Run ./startup.sh again to start the Cobar process.
     ./startup.sh