In posts one and two within this series we created and deployed Spring-Boot Microservices in Oracle’s Application Container Cloud Service (ACC). Usually, after deploying an application and enabling user traffic an application must be monitored to ensure a high level of service and identify approaching problems. This blog post describes how monitoring in Oracle Application Container Cloud can be achieved using standard features.  The focus will be on Java applications.

Accessing Monitoring Information using Service Console

The simplest indication regarding application health can be retrieved directly within Oracle ACC service console. After opening service console, one must access service overview page to get the application’s average memory usage over all running instances presented. For each application instance an additional indicator is displayed below including a timestamp the metric was captured.

Monitoring in Oracle Application Container Cloud - Service Console Metrics

Service Console Metrics

The second application monitoring feature resides within the application’s Administration tab, as it enables an administrator to download application logs. One must click on the Get Log button and Oracle ACC collects  logs from all application instances within the specified time frame. The logs collected are stored on the configured Oracle Storage Cloud Service. After the process is finished all logs can be downloaded from either Storage Cloud or Application Container Cloud service consoles.

ACC Service Console Application Logs

ACC Service Console Application Logs

Thirdly, Java Flight Recordings can be created and downloaded from within the service console’s Administration section. More precisely a 60 seconds recording can be started and downloaded. If multiple application instances are running, a recording for each instance is created. To create recordings one just must click on the Get Recording button to start data capturing. After 60 seconds the recording can be downloaded.

Recording & Downloading Java Flight Recordings

Recording & Downloading Java Flight Recordings

Within service console there is a hint regarding longer recordings (> 60 seconds) if Java Flight Recorder (JFR) is not running in continuous mode. Nevertheless, we could not find any option to enable continuous recording. Moreover, according to Oracle ACC’s documentation only 60 second recordings are possible. Have you found any documented option? We suppose one might be able to activate continuous mode using command line parameters.

The downloaded recording can be analysed using Oracle Java Mission Control. Java Developers should be familiar with this tool. It enables developers and operations to analyse a Java application’s JVM statistics including memory and CPU utilisation, JVM options, hot classes and many more.

JFR Analysis in Java Mission Control

JFR Analysis in Java Mission Control

Summary

Within this blog post we briefly discussed which features Oracle ACC provides to monitor deployed applications. With its memory usage and log features very simple tools to monitor running applications are provided. If some issues are recognised within a running deployment, Java Flight Recorder and Java Mission Control can be used to do an in-depth analysis of a Java application running in the application container. Overall the existing features should be sufficient for simple applications running on Oracle ACC. If more advanced monitoring is required, it is possible to extend your deployed applications with more sophisticated monitoring solutions such as Oracle Management Cloud or third-party solutions.

Links

Oracle ACC and Java Mission Control – http://docs.oracle.com/en/cloud/paas/app-container-cloud/dvcjv/java-mission-control-and-java-flight-recorder.html#GUID-70D59FA2-04D3-40B1-8F8E-8131300E25C7
Oracle ACC Administration Workflow – https://docs.oracle.com/en/cloud/paas/app-container-cloud/csjse/typical-workflow-administering-applications.html
Oracle ACC Service Metrics – https://docs.oracle.com/en/cloud/paas/app-container-cloud/csjse/viewing-service-metrics-application.html
Java Mission Control User’s Guide – http://docs.oracle.com/javacomponents/jmc-5-5/jmc-user-guide/toc.htm
Java Flight Recorder Runtime Guide – http://docs.oracle.com/javacomponents/jmc-5-5/jfr-runtime-guide/toc.htm
SoapUI Website – https://www.soapui.org