انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-008-L02

Java Flight Recorder

  • الدرس 2 من 8
  • Mid-level
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

record JFR data from a running service.

الموضوعات المخطط لها

  • JFR is a low-overhead event recorder built into the JVM, with a continuous mode.
  • Start at launch: -XX:StartFlightRecording=filename=shop.jfr,duration=120s, or on a live process: jcmd <pid> JFR.start, then JFR.dump.
  • Events: CPU samples, allocation, GC, locks, I/O, thread states, exceptions.
  • Profiles (default vs profile settings) trade detail against overhead.
  • Verify option details for your JDK before recording.
تفاصيل المخطط المبدئي

عرض عملي

text
jcmd <pid> JFR.start name=shop settings=profile duration=120s filename=shop.jfr

اختبر فهمك

Why is JFR suitable for production?

أظهر الإجابة

Low overhead and built into the JVM.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.