Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-13345

Increasing the per thread stack size to atleast 512k

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Incomplete
    • None
    • Local/Config
    • None

    Description

      Hi All,

      I followed the below steps

      ```
      $ git clone https://github.com/apache/cassandra.git
      $ cd cassandra/
      $ ant
      $ bin/cassandra -f

      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.
      ```

      After getting this , i had to upgrade the thread stack size to 512kb in 'conf/jvm.options'
      ```
      $ git diff conf/jvm.options
      diff --git a/conf/jvm.options b/conf/jvm.options
      index 49b2196..00c03ce 100644
      — a/conf/jvm.options
      +++ b/conf/jvm.options
      @@ -99,7 +99,7 @@
      -XX:+HeapDumpOnOutOfMemoryError

      1. Per-thread stack size.
        --Xss256k
        +-Xss512k
      1. Larger interned string table, for gossip's benefit (CASSANDRA-6410)
        -XX:StringTableSize=1000003
        ```
        Thereafter i was able to start the Cassandra server successfully.
        Could you please consider increasing the stack size to '512k' in 'conf/jvm.options.

      Similar to "https://issues.apache.org/jira/browse/CASSANDRA-13300". Let me know if we can increase the stack size in the Apache Cassandra trunk.

      Thanks for support provided so far , and let me know

      Regards,
      Amit

      Attachments

        Activity

          People

            Unassigned Unassigned
            amitkumar_ghatwal Amitkumar Ghatwal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: