Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8159377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:53:23+00:00 2026-06-06T17:53:23+00:00

We have deployed a java webapplication in Elastic Beanstalk with the minimum instance count

  • 0

We have deployed a java webapplication in Elastic Beanstalk with the minimum instance count 1 and max instance count 2 for Autoscaling. The custom AMI we are using is c1.medium with Sun JDK 6.

The environment status changed to yellow and then red. After checking into the log file from the snapshot logs we found a exception – Caused by: java.lang.OutOfMemoryError: Java heap space. Assuming this could be one of the possible reason for the Environment failure.
The settings that we have configured in the Environment Container option are

Initial JVM Heap Size (MB) – 256M

Maximum JVM Heap Size (MB) – 512m
The maximum heap size the java virtual machine will ever consume, specified on the JVM launch command line using -Xmx.

Maximum JVM Permanent Generation Size (MB) – 512m

Should i increase the Heap size from 512m to more or is it fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:53:26+00:00Added an answer on June 6, 2026 at 5:53 pm

    I think your maximum JVM Permanent Generation Size is too big. Here is the documentation of AWS:

    JVM Options

    The heap size in the Java Virtual Machine affects how many objects can
    be created in memory before garbage collection—a process of managing
    your application’s memory—occurs. You can specify an initial heap size
    and a maximum heap size. A larger initial heap size allows more
    objects to be created before garbage collection occurs, but it also
    means that the garbage collector will take longer to compact the heap.
    The maximum heap size specifies the maximum amount of memory the JVM
    can allocate when expanding the heap during heavy activity.

    In the Edit Configuration window, you can set the initial and the
    maximum JVM heap sizes using the Initial JVM Heap Size (MB) and
    Maximum JVM Heap Size (MB) boxes. The available memory is dependent on
    the Amazon EC2 instance type. For more information about the Amazon
    EC2 instance types available for your AWS Elastic Beanstalk
    environment, go to Instance Families and Types in the Amazon EC2 User
    Guide.

    The permanent generation is a section of the JVM heap that is used to
    store class definitions and associated metadata. To modify the size of
    the permanent generation, type the new size in the Maximum JVM
    Permanent Generation Size (MB) box

    I found this Rimuhosting how-to article quite good in explaining Xmx settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have deployed our Restlet services to a Jetty Java Application server using the
I'm using sun java app server 8.0 PE, I have created webapplication and added
i have my java webapplication deployed on tomcat. I am able to access it
I have devoloped a WebService (WS1) in Java which is deployed in a Tomcat
I have deployed a PHP application on my tomcat server(Tomcat 6.0).Previously I was using
I have a Java web application leveraging JPA. The database instance is specified in
I have developed a java 1.4 web application.Application is deployed on jboss(tomcat). suppose my
I have a problem with Tomcat 5.5 and Java EE webapp libraries. I'm using
I have a web application deployed in WebLogic. In one of my java file,
I am using tomcat6 running on Ubuntu server. I have deployed three Grails 1.3.7

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.