Skip to content

Consider adding a minimum stack size #228

@youngm

Description

@youngm

I've discovered that java8 requires a minumum of 228k for Xss in order for the jvm to start. Perhaps openjdk config should be adjusted to add that minimum to enable more success with memory scaling.

memory_calculator:
  memory_sizes:
    stack: 228k..

To verify minumum simply try to start java with a smaller stack size:

java -version
openjdk version "1.8.0_45-internal"
OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)

java -Xss128k

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions