Thus I am expecting that after 5 minutes it will be created performance snapshot and at the JVM exit it should be created another snapshot.
However, in addition to two mentioned snapshots from time to time I see some strange snapshots named like {date}-{pid}-shutdown.snapshot which are rather big (like 815MB).
Did you try opening that snapshot? Perhaps it's a memory snapshot which is automatically captured on exit because object allocation recording is still running at the moment. If this is the case, it is not related with your trigger (i.e. it would be captured even if there was no JVMExitListener). Please see description of "onexit=memory" and "onexit=snapshot" at https://www.yourkit.com/docs/java/help/ ... ptions.jsp