Java Flashcards

1
Q

When building a container for a Java application, use a JRE base image instead of a JDK. JREs are smaller and all you need

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

By default, Java will allocate 25% of the memory available to a container for its heap. However, we can override this default by specifying the JVM’s heap size. Just make sure the heap size is not greater than the available memory allocated to the container.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Java 8 and earlier versions do not adhere to resource contraints specified by Docker containers. The only exception is a spcific Java 8 build, 8u191. It ws backported to adhere to resrouce contstraints.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly