Our application runs on WLP 16.0.0.2. Off late, we have seen that the application restarts as soon as a code, which uses Apache FOP 2.1, finishes execution. The code is expected to generate a PDF which is successful. We do not see any Memory Dump or any other kind of errors, exceptions in the logs. The same piece of code used to work fine when the application used to run on Tomcat 8. Trying out regular Heap Size and PermGen tunings didn't help.
Application restarts can be triggered by 2 things in Liberty:
<applicationMonitor/>
element finds an application change when it polls for an update or when the application monitor MBean receives an update request.What's probably happening in your case is scenario #2. There is probably something in your application that is writing output to the expanded application directory, and the default application monitor setting (poll for updates every 500ms) is picking up this output as an application change and thus triggers a restart.
So you have two options to fix this:
<applicationMonitor updateTrigger="mbean"/>
mbean
will cause droping applications to not start, unless you are running in WDT.