Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Formatting was changed.

...

Code Block
languagebash
titlejfr_snapshot.sh
#!/bin/bash
PID=$(ps -ef | grep '[e]nterpriseedition' | awk '{print $2}')
JCMD=/opt/mailarchiva/jre64/bin/jcmd

DATE=$(date +%F_%H-%M-%S)

$JCMD $PID VM.unlock_commercial_features
$JCMD $PID JFR.start name=MyRecording settings=profile delay=1s duration=5m filename=/home/valentinuser_name/$DATE.jfr