Skip to content

"The stack size specified is too small, Specify at least 328k" for aarch64  #174

Closed

Description

@ZiluTian

Hello,
I get the same error as described here but for aarch64: https://issues.apache.org/jira/browse/CASSANDRA-13345

Currently the modification of the stack size is done by checking if the architecture is ppc64le. Can you please include aarch64 as well?

Thanks

Activity

  1. tianon commented on Jan 15, 2019

    @tianon
    Member

    Are you referring to this block?

    RUN set -ex; \
    \
    dpkgArch="$(dpkg --print-architecture)"; \
    case "$dpkgArch" in \
    ppc64el) \
    # https://issues.apache.org/jira/browse/CASSANDRA-13345
    # "The stack size specified is too small, Specify at least 328k"
    if grep -q -- '^-Xss' "$CASSANDRA_CONFIG/jvm.options"; then \
    # 3.11+ (jvm.options)
    grep -- '^-Xss256k$' "$CASSANDRA_CONFIG/jvm.options"; \
    sed -ri 's/^-Xss256k$/-Xss512k/' "$CASSANDRA_CONFIG/jvm.options"; \
    grep -- '^-Xss512k$' "$CASSANDRA_CONFIG/jvm.options"; \
    elif grep -q -- '-Xss256k' "$CASSANDRA_CONFIG/cassandra-env.sh"; then \
    # 3.0 (cassandra-env.sh)
    sed -ri 's/-Xss256k/-Xss512k/g' "$CASSANDRA_CONFIG/cassandra-env.sh"; \
    grep -- '-Xss512k' "$CASSANDRA_CONFIG/cassandra-env.sh"; \
    fi; \
    ;; \
    esac; \
    \
    # https://issues.apache.org/jira/browse/CASSANDRA-11661
    sed -ri 's/^(JVM_PATCH_VERSION)=.*/\1=25/' "$CASSANDRA_CONFIG/cassandra-env.sh"

  2. tianon commented on Jan 15, 2019

    @tianon
    Member

    (I'm not able to reproduce any issues here -- I can run cassandra:latest on arm64 just fine as-is without any modifications. 😕)

  3. ZiluTian commented on Jan 15, 2019

    @ZiluTian
    Author

    Hi,
    Thanks for getting back to me. I have attached my server config, docker version, and a screenshot below. The server existed immediately and the content of the trace complains about the stack size. I suspect that it is related to the code snippet you have pointed at, but it is only a speculation. If you have any other suggestion, let me know. Thanks!

    Server config:

    NAME="CentOS Linux"
    VERSION="7 (AltArch)"
    ID="centos"
    ID_LIKE="rhel fedora"
    VERSION_ID="7"
    PRETTY_NAME="CentOS Linux 7 (AltArch)"
    ANSI_COLOR="0;31"
    CPE_NAME="cpe:/o:centos:centos:7"

    CENTOS_MANTISBT_PROJECT="CentOS-7"
    CENTOS_MANTISBT_PROJECT_VERSION="7"
    REDHAT_SUPPORT_PRODUCT="centos"
    REDHAT_SUPPORT_PRODUCT_VERSION="7"

    Docker version:
    Docker version 18.09.0, build 4d60db4

    screen shot 2019-01-15 at 09 37 44

  4. tianon commented on Jan 15, 2019

    @tianon
    Member
  5. ZiluTian commented on Jan 15, 2019

    @ZiluTian
    Author

    Yes to both. You mentioned that you were not able to reproduce the same error. Do you have the same system config?

  6. tianon commented on Jan 15, 2019

    @tianon
    Member
  7. ZiluTian commented on Jan 20, 2019

    @ZiluTian
    Author

    Hi, I recently brought it up on qemu (aarch64) Ubuntu 16.04.2 LTS, and there was no such issue. Maybe it is due to the OS rather than aarch64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions