مدونة "جمع النفايات" من جهاز JVM بتتعمل بالطريقة التالية: 1. كل سطر بيعبر عن عملية تجميع نفايات واحدة تبدأ من الطابع الزمني. 2. حجم مساحة الذاكرة المختلفة في الجهاز الآلي المشترك قبل وبعد هي "MemoryArea: BeforeSize->AfterSize(AllocatedSize" حيث MemoryArea هي واحد من PSYoungGen، ParOldGen، أو Metaspace. 3. إذا "MemoryArea:" تمحى، فإنه يمثل الحجم قبل وبعد من ذاكرة JVM بأكملها. 4. كل سطر فيه الوقت اللي بيستغرقه العملية بالثواني.  خلاص السجل التالي ولاحظ أي شذوذات مهمة: 2023-03-30T07:00:19.800+0000: [GC (Allocation Failure) [PSYoungGen: 17197776K->2224032K(21782528K) ] 64496630K->49524856K ((79218176K), 3.2658630 secs] [Times: user=4.53 sys=0.00, real=3.27 secs] 2023-03-30T07:01:06.553+0000: [GC (Allocation Failure) [PSYoungGen: 17471392K->2195300K(22969344K) ] 64772216K->49530782K ((80404992K), 3.3074224 secs] [Times: user=4.63 sys=0.00, real=3.30 secs] 2023-03-30T07:01:56.129+0000: [GC (Allocation Failure) [PSYoungGen: 19045732K->2429792K(22598656K) ] 66381214K->49767742K ((80034304K), 3.5912859 secs] [Times: user=4.94 sys=0.00, real=3.59 secs] 2023-03-30T07:02:46.034+0000: [GC (Allocation Failure) [PSYoungGen: 19280224K->2428421K(23520768K) ] 66618174K->49768148K ((80956416K), 3.6520001 secs] [Times: user=5.07 sys=0.03, real=3.65 secs] 2023-03-30T07:03:39.130+0000: [GC (Allocation Failure) [PSYoungGen: 20488709K->2600800K(23257088K) ] 67828436K->49943004K ((80692736K), 3.8378192 secs] [Times: user=5.19 sys=0.00, real=3.84 secs] 2023-03-30T07:04:31.634+0000: [GC (Allocation Failure) [PSYoungGen: 20661088K->2550592K(23885312K) ] 68003292K->49894476K(81320960K), 3.7886199 secs] [Times: user=5.15 sys=0.00, real=3.78 secs] 2023-03-30T07:05:28.784+0000: [GC (Allocation Failure) [PSYoungGen: 21416768K->2709510K(23698432K) ] 68760652K->50055163K(81134080K), 3.9951697 secs] [Times: user=5.54 sys=0.00, real=3.99 secs] 2023-03-30T07:06:24.857+0000: [GC (Allocation Failure) [PSYoungGen: 21575686K->2709696K(24113664K) ] 68921339K->50058933K ((81549312K), 4.0210395 secs] [Times: user=5.47 sys=0.01, real=4.02 secs] 2023-03-30T07:07:21.991+0000: [GC (Allocation Failure) [PSYoungGen: 22106304K->2835749K(24000512K) ] 69455541K->50186794K ((81436160K), 4.0703042 secs] [Times: user=5.76 sys=0.00, real=4.06 secs] 2023-03-30T07:08:18.668+0000: [GC (Allocation Failure) [PSYoungGen: 22232357K->2785312K(24265216K) ] 69583402K->50204626K(81700864K), 4.1296625 secs] [Times: user=5.77 sys=0.00, real=4.13 secs] 2023-03-30T07:09:16.891+0000: [GC (Allocation Failure) [PSYoungGen: 22510624K->2834405K(24177664K) ] 69929938K->50255520K(81613312K), 4.2070487 secs] [Times: user=5.89 sys=0.01, real=4.21 secs] 2023-03-30T07:10:15.553+0000: [GC (Allocation Failure) [PSYoungGen: 22559717K->2842896K(24403456K) ] 69980832K->50266688K(81839104K), 4.2489383 secs] [Times: user=5.83 sys=0.02, real=4.24 secs] 2023-03-30T07:11:15.412+0000: [GC (Allocation Failure) [PSYoungGen: 22863632K->2880069K(24334848K) ] 70287424K->50306742K(81770496K), 4.2983311 secs] [Times: user=6.01 sys=0.00, real=4.29 secs] 2023-03-30T07:12:17.330+0000: [GC (Allocation Failure) [PSYoungGen: 22900805K->2670097K(24596992K) ] 70327478K->50099432K(82032640K), 3.9450690 secs] [Times: user=5.44 sys=0.00, real=3.95 secs] 2023-03-30T07:13:15.713+0000: [GC (Allocation Failure) [PSYoungGen: 23009297K->2684375K(24459776K) ] 70438632K->50115773K ((81895424K), 3.9758416 secs] [Times: user=5.53 sys=0.00, real=3.97 secs] 2023-03-30T07:14:12.939+0000: [GC (Allocation Failure) [PSYoungGen: 23023575K->2678912K(24829952K) ] 70454973K->50113093K ((82265600K), 3.9702778 secs] [Times: user=5.52 sys=0.00, real=3.97 secs] 2023-03-30T07:15:12.343+0000: [GC (Allocation Failure) [PSYoungGen: 23508608K->2753575K(24717312K) ] 70942789K->50189628K(82152960K), 4.0754481 secs] [Times: user=5.72 sys=0.00, real=4.08 secs] 2023-03-30T07:16:13.026+0000: [GC (Allocation Failure) [PSYoungGen: 23583271K->2762097K(24974336K) ] 71019324K->50201762K(82409984K), 4.1128461 secs] [Times: user=5.66 sys=0.00, real=4.11 secs] 2023-03-30T07:17:14.129+0000: [GC (Allocation Failure) [PSYoungGen: 23924593K->2797957K(24905728K) ] 71364258K->50239629K(82341376K), 4.1456776 secs] [Times: user=5.74 sys=0.01, real=4.15 secs] 2023-03-30T07:18:14.857+0000: [GC (Allocation Failure) [PSYoungGen: 23960453K->2804721K(25075712K) ] 71402125K->50249103K ((82511360K), 4.1905285 secs] [Times: user=5.73 sys=0.01, real=4.19 secs] 2023-03-30T07:19:15.979+0000: [GC (Allocation Failure) [PSYoungGen: 24189937K->3641846K(25027072K) ] 71634319K->51171235K(82462720K), 3.6175882 secs] [Times: user=5.94 sys=0.00, real=3.62 secs] 2023-03-30T07:22:24.484+0000: [GC (Allocation Failure) [PSYoungGen: 25027062K->3360979K(24336896K) ] 72556451K->52269877K(81772544K), 0.4407322 secs] [Times: user=5.66 sys=0.00, real=0.44 secs] 2023-03-30T07:22:38.974+0000: [GC (Allocation Failure) [PSYoungGen: 24007379K->4035567K(24681984K) ] 72916277K->57145380K ((82117632K), 0.8531910 secs] [Times: user=10.80 sys=0.23, real=0.85 secs] 2023-03-30T07:22:52.666+0000: [GC (Allocation Failure) [PSYoungGen: 24677029K->24677029K(24681984K) ] 77786841K->82112670K ((82117632K), 7.3509182 secs] [Times: user=22.60 sys=11.27, real=7.35 secs] 2023-03-30T07:23:00.017+0000: [Full GC (Ergonomics) [PSYoungGen: 24677029K->0K(24681984K) ] [ParOldGen: 57435641K->57435322K(57435648K) ] 82112670K->57435322K(82117632K), [Metaspace: 241941K->241941K(260096K) ] 26.4487596 secs [Times: user=313.82 sys=2.44, real=26.45 secs] 2023-03-30T07:24:07.186+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->12427037K(24681984K) ] [ParOldGen: 57435322K->57435609K(57435648K) ] 78081722K->69862646K(82117632K), [Metaspace: 241947K->241947K(260096K) ] 28.8675082 sec] [Times: user=350.97 sys=1.74, real=28.87 sec] 2023-03-30T07:24:36.057+0000: [Full GC (System.gc()) [PSYoungGen: 12730000K->12427055K(24681984K) ] [ParOldGen: 57435609K->57435556K(57435648K) ] 70165609K->69862611K(82117632K), [Metaspace: 241947K->241947K(260096K) ] 31.3736816 secs [Times: user=379.38 sys=2.94, real=31.37 secs] 2023-03-30T07:25:18.096+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->16985330K(24681984K) ] [ParOldGen: 57435556K->57435308K(57435648K) ] 78081956K->74420638K(82117632K), [Metaspace: 241999K->241999K(260096K) ] 31.4762980 sec [Times: user=363.38 sys=3.10, real=31.48 secs] 2023-03-30T07:25:54.537+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->19116969K(24681984K) ] [ParOldGen: 57435308K->57435152K(57435648K) ] 78081708K->76552122K(82117632K), [Metaspace: 241999K->241999K(260096K) ]، 31.0418139 secs [Times: user=377.34 sys=2.75, real=31.04 secs] 2023-03-30T07:26:27.487+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->19955901K(24681984K) ] [ParOldGen: 57435152K->57435290K(57435648K) ] 78081552K->77391191K ((82117632K) ]، [Metaspace: 241999K->241999K ((260096K) ]، 22.9475977 secs] [Times: user=280.80 sys=1.57, real=22.95 secs] 2023-03-30T07:26:51.319+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20340549K(24681984K) ] [ParOldGen: 57435290K->57435523K(57435648K) ] 78081690K->77776072K(82117632K), [Metaspace: 242004K->242004K(260096K) ] 37.2564843 secs [Times: user=458.29 sys=3.35, real=37.26 secs] 2023-03-30T07:27:28.892+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20465997K(24681984K) ] [ParOldGen: 57435523K->57435230K(57435648K) ] 78081923K->77901227K(82117632K), [Metaspace: 242007K->242007K(260096K) ] 31.4213545 secs [Times: user=382.65 sys=2.74, real=31.42 secs] 2023-03-30T07:28:00.350+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20492397K(24681984K) ] [ParOldGen: 57435230K->57435139K(57435648K) ] 78081630K->77927536K(82117632K), [Metaspace: 24K2011->201124K(260096K) ]، 17.3069966 secs [Times: user=209.34 sys=0.45, real=17.31 secs] 2023-03-30T07:28:17.694+0000: [Full GC (Ergonomics) [PSYoungGen: 20639999K->20482496K(24681984K) ] [ParOldGen: 57435139K->57435581K(57435648K) ] 78075138K->77918078K(82117632K), [Metaspace: 242023K->242023K(260096K) ] 39.0253664 secs [Times: user=478.37 sys=3.87, real=39.02 secs] 2023-03-30T07:28:56.752+0000: [Full GC (Ergonomics) [PSYoungGen: 20629482K->20490559K(24681984K) ] [ParOldGen: 57435581K->57435269K(57435648K) ] 78065064K->77925828K(82117632K), [Metaspace: 242023K->242023K(260096K) ] 32.7146380 sec [Times: user=398.86 sys=2.93, real=32.71 secs] 2023-03-30T07:29:29.592+0000: [Full GC (Ergonomics) [PSYoungGen: 20627596K->20498740K(24681984K) ] [ParOldGen: 57435269K->57435482K(57435648K) ] 78062865K->77934223K(82117632K), [Metaspace: 242029K->242029K(260096K) ] 39.9805382 secs [Times user=491.39 sys=4.10, real=39.98 secs] 2023-03-30T07:30:09.618+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20529006K(24681984K) ] [ParOldGen: 57435482K->57435402K(57435648K) ] 78081882K->77964408K(82117632K), [Metaspace: 242038K->242038K(260096K) ] 31.3632706 secs [Times: user=382.46 sys=2.74, real=31.36 secs] 2023-03-30T07:30:41.012+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20535638K(24681984K) ] [ParOldGen: 57435402K->57435345K(57435648K) ] 78081802K->77970983K(82117632K), [Metaspace: 242053K->242053K(260096K) ]، 31.0060106 secs] [Times: user=377.25 sys=2.72, real=31.00 secs] 2023-03-30T07:31:12.022+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20535719K(24681984K) ] [ParOldGen: 57435345K->57435297K(57435648K) ] 78081745K->77971016K(82117632K), [Metaspace: 242053K->242053K(260096K) ] 31.1714473 sec] [Times: user=380.42 sys=2.74, real=31.18 sec] 2023-03-30T07:31:43.215+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20536490K(24681984K) ] [ParOldGen: 57435297K->57435275K(57435648K) ] 78081697K->77971766K(82117632K), [Metaspace: 242061K->242061K(260096K) ]، 30.9676462 sec] [Times: user=377.19 sys=2.88, real=30.96 sec] 2023-03-30T07:32:14.216+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20537679K(24681984K) ] [ParOldGen: 57435275K->57435244K(57435648K) ] 78081675K->77972923K(82117632K), [Metaspace: 242081K->242081K(260096K) ] 31.2592798 secs [Times: user=379.77 sys=3.04, real=31.26 secs] 2023-03-30T07:32:45.532+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20518698K(24681984K) ] [ParOldGen: 57435244K->57435465K(57435648K) ] 78081644K->77954164K82(117632K), [Metaspace: 242123K->242123K2600(96K) ] 38.9523351 secs [Times user=478.26 sys=4.04, real=38.95 secs] 2023-03-30T07:33:45.139+0000: [Full GC (Ergonomics) [PSYoungGen: 20627835K->20519977K(24681984K) ] [ParOldGen: 57435465K->57435334K(57435648K) ] 78063301K->77955311K(82117632K), [Metaspace: 242185K->242185K260096K) ] 31.8680480 secs [Times user: 388.66 sys=2.88, real=31.87 secs] 2023-03-30T07:34:17.045+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20529987K(24681984K) ] [ParOldGen: 57435334K->57435313K(57435648K) ] 78081734K->77965301K82(117632K), [Metaspace: 242185K->242185K26(0096K) ] 30.6528436 secs [Times: user=370.84 sys=3.05, real sec=30.65s] 2023-03-30T07:35:08.312+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20552578K(24681984K) ] [ParOldGen: 57435313K->57435312K(57435648K) ] 78081713K->77987890K(82117632K), [Metaspace: 242202K->242202K(260096K) ] 31.3030289 sec] [Times: user=380.50 sys=2.90, real=31.30 sec] 2023-03-30T07:35:39.649+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20541558K(24681984K) ] [ParOldGen: 57435312K->57435297K(57435648K) ] 78081712K->77976855K(82117632K), [Metaspace: 242217K->242217K2600(96K) ] 31.4996226 secs [Times: user=384.32 sys=3.00, real sec=31.50s] 2023-03-30T07:36:11.199+0000: [Full GC (Ergonomics) [PSYoungGen: 20646400K->20562436K(24681984K) ] [ParOldGen: 57435297K->57435260K(57435648K) ] 78081697K->77997697K ((82117632K), [Metaspace: 242238K->242238K(260096K) ] 31.1358920 sec] [Times: user=378.46 sys=3.00, real=31.14 secs]
1. الدفتر عنده 47 عمليات GC على فاصلة 36 دقيقة من الساعة 7:00 الصبح للساعة 7:36 الصبح بتاريخ 30 مارس 2023 بالتوقيت العالمي. 2. العمليات بتبدأ بمعدل واحد بالدقيقة وبتستغرق أقل من خمس ثواني كل واحد، بس بعد الساعة 7:23 الصبح، بتستغرق فجأة حوالي 30 ثانية كل واحد وتتحدث مرتين بالدقيقة. بعبارة تانية، في البداية، عمليات GC بتستغرق جزء صغير من وقت JVM، أما بعدين، بتستغرق تقريباً كل وقتها. 3. العمليات GC بهاد الفترة التانية بتنتج انخفاض بسيط جداً في حجم الذاكرة الكلي ومناطق الذاكرة PSYoungGen وParOldGen وMetaspace. هيدا السلوك كتير حاد بعد الساعة 7:26:51 الصبح. 4. هيدا بيعبر عن وقت كتير بضيع في عمليات المجلس العام مع نتيجة قليلة. خمسة. حجم الذاكرة الكلي بيكبر ببطء من 49.5 جيجا بايت لـ 52.3 جيجا بايت، بس في المرحلة التانية بيكبر بحوالي 78 جيجا بايت. ستة حجم الذاكرة المخصصة ثابت بـ 82 جيجا بايت خلال الفترة التانية من عمليات GC، واللي بيدل على حد خارجي. سبعة. بنصحك تزيد الحد الأقصى من الذاكرة المخصصة أكتر من الحد الأقصى 82 جيجا بايت، وترتبه إن كان ممكن، وترجع تشغيل الجهاز الآلي المشترك.