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

قراءة سجلات GC

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

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

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

في هذا الدرس

enable unified GC logging and read its key fields.

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

  • Enable: -Xlog:gc*:file=gc.log:time,uptime (verify flags for your JDK).
  • Each line shows the collection type, heap before -> after (total), and pause duration.
  • Healthy: frequent short young pauses; heap after full/mixed collections returns to a stable floor.
  • Warning signs: floor rising over time (leak), full GCs, pauses over the goal, back-to-back collections (allocation pressure).
  • Tools such as GCViewer or GCeasy help; learn to read the raw lines first.
تفاصيل المخطط المبدئي

عرض عملي

text
[12.3s] GC(41) Pause Young (Normal) (G1 Evacuation Pause) 612M->140M(1024M) 8.4ms

اختبر فهمك

What does 612M->140M(1024M) mean?

أظهر الإجابة

Heap used before and after the pause, with current heap capacity.

التطبيق

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

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

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

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