If a user has _JAVA_OPTIONS set, at runtime JVM will ignore our -Xmx4G flag and use the user's setting. Due to unpredictable picard heap space, this was causing unreproducible crashes for me. To fix, we can explicitly set _JAVA_OPTIONS before calling Picard, just like we do in atac.bds: https://github.com/kundajelab/bds_atac/blob/master/atac.bds#L814
If a user has
_JAVA_OPTIONS
set, at runtime JVM will ignore our-Xmx4G
flag and use the user's setting. Due to unpredictable picard heap space, this was causing unreproducible crashes for me. To fix, we can explicitly set_JAVA_OPTIONS
before calling Picard, just like we do in atac.bds: https://github.com/kundajelab/bds_atac/blob/master/atac.bds#L814