WebLogic & JRockit FlightRecording scheduling

As part of an analysis during a longer period of time, I wanted to investigate on a deeper level and for a longer period, JRockit JVM level.

Besides using WLDF embedded FlightRecording, it is also possible to separately record using jrcmd commandline. Within JRockit JDK you have this recording option you can use to take recordings for a certain period or a certain amount of time. These options are available in JRockit Command line (jrcmd.sh — a shell script shipped within your JDK installation directory).

The script collects a recording for an hour but you can set your time as you wish. Now, let’s see how the script is built up.

 

  • First, some parameters are set to identify which JVM you’d like to collect from.jfr2
  • Next, we define a period of time of how long recording should run, the actual jrcmd command and name of the compressed file.jfr3
  • We set some limits such as maxsize and compress to relieve your filesystem.
  • Last part of the script will take care of some cleaning up. All recorded files older than N days are removed, as well as the tmp folders on your managed server volumes! jfr4

I used a remote JRockit MC Console, in which I can see the recordings. Usually you can download them if they have a green light, but because I cleaned the tmp dir of the managed server, I needed to copy the JFR’s manually and load them into my console.

jfr1

I scheduled this script via crontab: 15 5-22 * * 1-5 nohup /u01/app/oracle/admin/general/wls/jrcmd.sh & >> /u01/app/oracle/admin/general/wls/jrcmdstart.log 2>&1 & Using this approach we were able to get a day to day analysis on how applications were doing at JVM level, and we were able to solve our perfomanceproblem :)   The script was partly based on this article: https://blogs.oracle.com/knutvatsendvik/entry/jra_recordings_with_jrockit

OVER DE AUTEUR

Started in pharmacy, Michel made the change to IT in 1996, on a UNIX TTY terminal based computer and the MUMPS language. These days he is an Oracle Fusion Middleware Architect at Qualogy, as member of the Exalogic Squad team, with focus on technical infrastructure, Serverside solutions, installing, administering, configuring the Oracle Fusion Middleware stack. He started in 2000 as a support analyst for a big bank with BEA Tuxedo 6.5 and WebLogic 6. His experience is from integrations at telco´s. He now works mainly with Oracle WebLogic 11g and 12c, plus releases with practically all Oracle products running on top of it. In 2012 he became an Oracle ACE and wrote 2 books about WebLogic: http://www.packtpub.com/oracle-weblogic-server-11gr2-administration-essentials/book http://www.packtpub.com/oracle-weblogic-server-12c-first-look/book.

3 Reacties op WebLogic & JRockit FlightRecording scheduling

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Verplichte velden zijn gemarkeerd met *

De volgende HTML-tags en -attributen zijn toegestaan: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Contact

Hebt u vragen of suggesties?

Mail info@qualogy.com!


De Bruyn Kopsstraat 9

2288EC Rijswijk (ZH)

The Netherlands

+31.(0)70 319 5000

  • Blog

  • Tags

  • @qualogy_news

  • @qresources

  • Reacties

  • Blijf in contact

    +31.(0)70 319 5000