Question 3
An e-commerce web site currently consists of a 2-tier web application (app server + DB) deployed on IBM Cloud: 1 webapp instance for the Java front-end and 1 Cloudant instance for the DB.
Immediately after deployment on Bluemix, the application fails to start. When reviewing the application logs the following excerpt is found:
App instance exited with guid 549fb650-8ded-43aa-b895-f230692be4b0 payload:
{... "index"=>0, "reason"=>"CRASHED", "exit_status"=>255,
"exit_description"=>"out of memory",...}
How can the problem be fixed?
It looks like an internal Bluemix problem, open a ticket with IBM Support so they can fix it for you.
Use the IBM Static Analyzer for Bluemix to run a static code analysis on the entire web application to identify memory leaks.
Not enough memory is allocated to the application. Increase the memory either via the command line, in the manifest.yml file, or through the Bluemix console.
The application is overloaded with more requests than it can handle. Increase the number of instances either via the command line, in the manifest.yml file or through the Bluemix console.
Correct answer: C
Explanation:
As the application fails to start the most likely cause of the problem is that the application does not have enough memory. Note: Receiving an OutOfMemoryError normally means one of two things:You heap size is not large enough for the memory requirement of the application. You have a memory leak The quickest thing to try would be to increase the memory allowance for your application, which will also increase the Java heap size for you. You can do this using a "memory" entry in the manifest.yml. For the second, you really need to generate a heapdump so that you can analyse the problem using Memory Analyzer. References: https://developer.ibm.com/answers/questions/29036/out-of-memory-error-on-bluemix-app.html
As the application fails to start the most likely cause of the problem is that the application does not have enough memory.
Note: Receiving an OutOfMemoryError normally means one of two things:
You heap size is not large enough for the memory requirement of the application.
You have a memory leak
The quickest thing to try would be to increase the memory allowance for your application, which will also increase the Java heap size for you. You can do this using a "memory" entry in the manifest.yml.
For the second, you really need to generate a heapdump so that you can analyse the problem using Memory Analyzer.
References: https://developer.ibm.com/answers/questions/29036/out-of-memory-error-on-bluemix-app.html