Monday, April 15, 2019

AWS Lamdba: Exception in thread "main" java.lang.Error: java.lang.OutOfMemoryError: Metaspace

Execution of newly created Lambda gives below error

Exception in thread "main" java.lang.Error: java.lang.OutOfMemoryError: Metaspace

Bydefault the Memory allocated to Lambda is 128MB this needs to be increased

Solution:









Navigate to your Lambda in AWS and update the Basic setting increase the Memory and test it out




8 comments:

  1. Buy your products online at low rates in Auckland Newzealand.We Provide you quality household items, outdoor furniture nz, gazeboz nz, items and all the items at low rates.

    ReplyDelete
    Replies
    1. The article offers a quick and practical solution to resolving the OutOfMemoryError: Metaspace issue in AWS Lambda by adjusting the allocated memory for serverless functions. Developers interested in building scalable cloud-native applications can explore Cloud Computing Projects to gain hands-on experience with AWS services, serverless computing, resource optimization, and cloud deployment strategies.

      Delete
    2. Efficient resource allocation and performance tuning are essential for maintaining reliable cloud applications, particularly in serverless environments where memory and execution time directly impact performance. Students can further strengthen their expertise through Cloud Security Projects, which cover secure cloud architectures, workload optimization, access management, and resilient enterprise cloud solutions.

      Delete
  2. Great job explaining everything step by step.service now trainings

    ReplyDelete
  3. DataStage learning provides a structured path for mastering enterprise ETL and data warehousing concepts. This datastage learning covers data extraction, transformation, loading, workflow automation, and reporting. Students gain practical knowledge through coding exercises and projects.

    ReplyDelete
  4. Thanks for sharing this valuable information on MuleSoft training courses. Practical training with real-time projects can help learners gain expertise in API development, data transformation, and application integration while building a strong career in MuleSoft technology.mulesoft training courses

    ReplyDelete