Configuring Java containers using Amazon Toolkit for Eclipse - Amazon Elastic Beanstalk
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Configuring Java containers using Amazon Toolkit for Eclipse

The Container/JVM Options panel lets you fine-tune the behavior of the Java Virtual Machine on your Amazon EC2 instances and enable or disable Amazon S3 log rotation. You can use the Amazon Toolkit for Eclipse to configure your container information. For more information on the options available for Tomcat environments, see Configuring your Tomcat environment.

Note

You can modify your configuration settings with zero downtime by swapping the CNAME for your environments. For more information, see Blue/Green deployments with Elastic Beanstalk.

To access the Container/JVM options panel for your Elastic Beanstalk application
  1. If Eclipse isn't displaying the Amazon Explorer view, in the menu choose Window, Show View, Amazon Explorer. Expand the Elastic Beanstalk node and your application node.

  2. In the Amazon Explorer, double-click your Elastic Beanstalk environment.

  3. At the bottom of the pane, click the Configuration tab.

  4. Under Container, you can configure container options.

Remote debugging

To test your application remotely, you can run your application in debug mode.

To enable remote debugging
  1. Select Enable remote debugging.

  2. For Remote debugging port, specify the port number to use for remote debugging.

    The Additional Tomcat JVM command line options setting is filled automatically.

To start remote debugging
  1. In the Amazon Toolkit for Eclipse menu, choose Window, Show View, Other.

  2. Expand the Server folder, and then choose Servers. Choose OK.

  3. In the Servers pane, right-click the server your application is running on, and then click Restart in Debug.