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

عرض عملي: استنزاف المجمّع تحت الحِمل

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

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

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

في هذا الدرس

reproduce exhaustion, diagnose it, and fix the cause.

تفاصيل المخطط المبدئي

خطوة بخطوة

  1. Run Shop with pool size 5 and a load test of 100 concurrent users on checkout.
  2. Watch metrics: hikaricp_connections_active at max, pending growing, latencies climbing, then timeout errors.
  3. Take a thread dump and find threads waiting in getConnection and the holders inside a slow remote call.
  4. Planned mistake: raise the pool to 200 to "fix" it; database CPU saturates and latency does not improve. Revert.
  5. Real fix: move the remote call out of the transaction; reduce hold time; right-size the pool.
  6. Re-run the load test and compare.

Prepares MID-017-LAB1.

اختبر فهمك

What was the real cause of exhaustion?

أظهر الإجابة

Connections held during a slow call inside a transaction.

التطبيق

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

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

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

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