diff --git a/bin/scripts/unix/idea.sh b/bin/scripts/unix/idea.sh index 0f451cb36a5d..a4e545509029 100755 --- a/bin/scripts/unix/idea.sh +++ b/bin/scripts/unix/idea.sh @@ -148,7 +148,7 @@ if [ "$IS_EAP" = "true" ]; then OS_NAME=`echo $OS_TYPE | "$TR" '[:upper:]' '[:lower:]'` AGENT_LIB="yjpagent-$OS_NAME$BITS" if [ -r "$IDE_BIN_HOME/lib$AGENT_LIB.so" ]; then - AGENT="-agentpath:$AGENT_LIB=disablej2ee,disablealloc,delay=10000,sessionname=@@system_selector@@" + AGENT="-agentlib:$AGENT_LIB=disablej2ee,disablealloc,delay=10000,sessionname=@@system_selector@@" fi fi diff --git a/build/scripts/utils.gant b/build/scripts/utils.gant index 021f55175897..b090f7a84dd5 100644 --- a/build/scripts/utils.gant +++ b/build/scripts/utils.gant @@ -64,7 +64,7 @@ binding.setVariable("vmOptions32", { "$mem32 ${vmOptions()}".trim() }) binding.setVariable("vmOptions64", { "$mem64 ${vmOptions()}".trim() }) binding.setVariable("yjpOptions", { String systemSelector, String platformSuffix = "" -> - "-agentpath:yjpagent$platformSuffix=probe_disable=*,disablealloc,disabletracing,onlylocal,disableexceptiontelemetry,delay=10000,sessionname=$systemSelector".trim() + "-agentlib:yjpagent$platformSuffix=probe_disable=*,disablealloc,disabletracing,onlylocal,disableexceptiontelemetry,delay=10000,sessionname=$systemSelector".trim() }) binding.setVariable("vmOptions32yjp", { String systemSelector -> "${vmOptions32()} ${yjpOptions(systemSelector)}".trim()