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




5 comments:

Unknown said...

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.

htop said...

thanks for sharing this information
azure training in chennai
azure training in sholinganallur
best data science training in sholinganallur
best data science training in omr
best devops training in chennai
best devops training institute in omr
best java training in chennai

Karthick Ganesan said...

Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
Top Software IT Training Institutes in Chennai
Contact SLAJobs in Chennai | Top Software Training Center in Chennai
Top Placements Training Institutes in Chennai | Apptitude Softskills Training Institutes in Chennai

Kale Co Jakim said...

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.

Kale Co Jakim said...

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.