Liberty in Containers Recipe
- Review the Java in Containers recipes
- Execute
configure.shas the last step in your Containerfile to make it fit-for-purpose and initialize the shared class cache. - Review the Configuring Security best practices
- If using IBM or Semeru Java, mount a shared volume for the shared
class cache in
${WLP_OUTPUT_DIR}/.classCache - Consider logging in JSON format for consumption by centralized logging.
- If using IBM or Semeru Java and startup time is highly variable, review the potential impact of the maximum heap size on the shared class cache.
- Unless an application uses 2 phase commit (2PC) and transaction logs
are properly handled (e.g. in
a database, peer
recovery, on
a shared disk, etc.), then consider setting the JVM option
-Dcom.ibm.tx.jta.disable2PC=trueso that an application doesn't accidentally use 2PC and risk unrecoverable transactions. - OpenShift:
- Review the Application Monitoring options.
- Review the Liberty recipe
- Review the Java recipes
- Review the Operating System Recipes
For details, see the Liberty in Containers chapter.