Skip to content

Update Debug JVM Parameters From Latest Lambda Settings #524

Closed

Description

@jaimm

https://github.com/awslabs/aws-sam-cli/blob/9ae4b80313d094d3eded4c5ca61731481b36c950/samcli/local/docker/lambda_container.py#L180-L182
Please see the corresponding issue (and commit) with docker-lambda for the latest values:
lambci/docker-lambda#102
The JVM memory parameters are currently out of date with what Lambda uses in production. docker-lambda has updated their settings, but you override them when users pass the debugging flags.

Activity

  1. jfuss commented on Jul 3, 2018

    @jfuss
    Contributor

    @jaimm Thanks for the issue. Would you be up for send a PR with the updated values?

  2. jaimm commented on Jul 3, 2018

    @jaimm
    Author

    Sorry, I'm pretty busy right now, otherwise I would. I just wanted to give you guys a heads-up with this issue since I already convinced docker-lambda to make the change.

  3. jason-riddle commented on Aug 12, 2018

    @jason-riddle
    Contributor

    Looks like the values are set here:

    https://github.com/lambci/docker-lambda/blob/8eb1919506c9a947bda11770fbbe764ea6f1d9ec/java8/run/Dockerfile#L20-L22

    ENTRYPOINT ["/usr/bin/java", "-XX:MaxHeapSize=2834432k", "-XX:MaxMetaspaceSize=163840k", "-XX:ReservedCodeCacheSize=81920k", \
      "-XX:+UseSerialGC", "-Xshare:on", "-XX:-TieredCompilation", "-Djava.net.preferIPv4Stack=true", \
      "-jar", "/var/runtime/lib/LambdaJavaRTEntry-1.0.jar"]

    I'll open a PR for this.

  4. added
    stage/waiting-for-release
    on Aug 14, 2018
  5. jfuss commented on Aug 29, 2018

    @jfuss
    Contributor

    Closing this as it was released in 0.6.0

  6. removed
    stage/waiting-for-release
    on Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions