diff --git a/cars/v1/vanilla/templates/config/jvm.options b/cars/v1/vanilla/templates/config/jvm.options index bd808b9..6e19bb3 100644 --- a/cars/v1/vanilla/templates/config/jvm.options +++ b/cars/v1/vanilla/templates/config/jvm.options @@ -104,7 +104,11 @@ {%- endif %} # specify an alternative path for JVM fatal error logs +{%- if log_path is defined %} +-XX:ErrorFile={{log_path}}/hs_err_pid%p.log +{%- else %} # ${error.file} +{%- endif %} ## JDK 8 GC logging