AWS ElasticBeanstalk Heap size and permgen size
===

I deployed a java webapplication in AWS elastic beanstalk. Our current configuration on beanstalk is c1.medium with 
Initial Heap size - 256m
Maximum Heap size - 768m
Maximum perm gen size - 512m

we upgraded the configuration to m1.medium by creating a new environment with the above settings.
Initial Heap size - 2536m
Maximum Heap size - 1536m
Maximum perm gen size - 1536m

But the Status changes to Red and is inaccesible.
Please suggest me a solution for this.

--
Thanks