File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
core/deployment/src/main/java/io/quarkus/deployment/pkg/steps Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -890,13 +890,15 @@ public NativeImageInvokerInfo build() {
890
890
addExperimentalVMOption (nativeImageArgs , "-H:+AllowVMInspection" );
891
891
}
892
892
893
+ List <NativeConfig .MonitoringOption > monitoringOptions = new ArrayList <>();
894
+ monitoringOptions .add (NativeConfig .MonitoringOption .HEAPDUMP );
893
895
if (nativeConfig .monitoring ().isPresent ()) {
894
- List <NativeConfig .MonitoringOption > monitoringOptions = nativeConfig .monitoring ().get ();
895
- if (!monitoringOptions .isEmpty ()) {
896
- nativeImageArgs .add ("--enable-monitoring=" + monitoringOptions .stream ()
897
- .map (o -> o .name ().toLowerCase (Locale .ROOT )).collect (Collectors .joining ("," )));
898
- }
896
+ monitoringOptions .addAll (nativeConfig .monitoring ().get ());
899
897
}
898
+ nativeImageArgs .add ("--enable-monitoring=" + monitoringOptions .stream ()
899
+ .distinct ()
900
+ .map (o -> o .name ().toLowerCase (Locale .ROOT )).collect (Collectors .joining ("," )));
901
+
900
902
if (nativeConfig .autoServiceLoaderRegistration ()) {
901
903
addExperimentalVMOption (nativeImageArgs , "-H:+UseServiceLoaderFeature" );
902
904
//When enabling, at least print what exactly is being added:
You can’t perform that action at this time.
0 commit comments