3 ms·
To truly set up a Java application in a production-ready way (not just running something quickly), you need to be sure of all these things: 1. A compatible JVM
by adrianmonk 9y ago
To truly set up a Java application in a production-ready way (not just running something quickly), you need to be sure of all these things:
1. A compatible JVM is installed somewhere.
2. When you run your application, it uses that JVM and not some other JVM.
3. You have the right flags passed to the JVM. For example, max heap size matching your application's actual usage, garbage collector tuning, thread stack size, and any properties that are set via -D.
4. Your jar file is there.
5. There is a place to write log files, and your application's logging system knows to write them there.
6. If you are using any native libraries through JNI, they need to be installed, and the JVM must be able to find them and use them.
7. If you listen on port, an available port number is found, your application knows what it is, and the rest of the world knows where to find you.
I believe Docker addresses all these points.