Skip to content

EC2 Instance (Ubuntu 24) is creashing everyday!

0

Hello,

I have the free tier and using EC2 Instance with Ubuntu 24.

I can see that it is crashing everyday and have no idea what should I do to solve it.

Here is the server's log:

ntry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.012376] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear) [ 0.012427] Fallback order for Node 0: 0 [ 0.012431] Built 1 zonelists, mobility grouping on. Total pages: 245790 [ 0.012432] Policy zone: DMA32 [ 0.012438] mem auto-init: stack:all(zero), heap alloc:on, heap free:off [ 0.014863] Memory: 867972K/999468K available (22528K kernel code, 4442K rwdata, 13940K rodata, 5084K init, 4624K bss, 131236K reserved, 0K cma-reserved) [ 0.015910] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.015924] Kernel/User page tables isolation: enabled [ 0.015957] ftrace: allocating 58101 entries in 227 pages [ 0.016025] ftrace section at ffffffffb4cbc840 sorted properly [ 0.028230] ftrace: allocated 227 pages with 5 groups [ 0.028434] rcu: Hierarchical RCU implementation. [ 0.028435] rcu: RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=2. [ 0.028437] Rude variant of Tasks RCU enabled. [ 0.028437] Tracing variant of Tasks RCU enabled. [ 0.028438] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies. [ 0.028439] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.031876] NR_IRQS: 524544, nr_irqs: 440, preallocated irqs: 16 [ 0.032199] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.032267] Console: colour dummy device 80x25 [ 0.032270] printk: legacy console [tty1] enabled [ 0.032603] printk: legacy console [ttyS0] enabled [ 0.176030] ACPI: Core revision 20230628 [ 0.176832] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 30580167144 ns [ 0.178158] APIC: Switch to symmetric I/O mode setup [ 0.179537] x2apic enabled [ 0.180400] APIC: Switched APIC routing to: physical x2apic [ 0.182839] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x24093623c91, max_idle_ns: 440795291220 ns [ 0.184800] Calibrating delay loop (skipped) preset value.. 4999.99 BogoMIPS (lpj=2499996) [ 0.185796] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8 [ 0.185796] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4 [ 0.185796] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization [ 0.185796] Spectre V2 : Mitigation: Retpolines [ 0.185796] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch [ 0.185796] Spectre V2 : Spectre v2 / SpectreRSB : Filling RSB on VMEXIT [ 0.185796] RETBleed: WARNING: Spectre v2 mitigation leaves CPU vulnerable to RETBleed attacks, data leaks possible! [ 0.185796] RETBleed: Vulnerable [ 0.185796] Speculative Store Bypass: Vulnerable [ 0.185796] MDS: Vulnerable: Clear CPU buffers attempted, no microcode [ 0.185796] MMIO Stale Data: Vulnerable: Clear CPU buffers attempted, no microcode [ 0.185796] GDS: Unknown: Dependent on hypervisor status [ 0.185796] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' [ 0.185796] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' [ 0.185796] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' [ 0.185796] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers' [ 0.185796] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR' [ 0.185796] x86/fpu: Supporting XSAVE feature 0x020: 'AVX-512 opmask' [ 0.185796] x86/fpu: Supporting XSAVE feature 0x040: 'AVX-512 Hi256' [ 0.185796] x86/fpu: Supporting XSAVE feature 0x080: 'AVX-512 ZMM_Hi256' [ 0.185796] x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers' [ 0.185796] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 [ 0.185796] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64 [ 0.185796] x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64 [ 0.185796] x86/fpu: xstate_offset[5]: 960, xstate_sizes[5]: 64 [ 0.185796] x86/fpu: xstate_offset[6]: 1024, xstate_sizes[6]: 512 [ 0.185796] x86/fpu: xstate_offset[7]: 1536, xstate_sizes[7]: 1024 [ 0.185796] x86/fpu: xstate_offset[9]: 2560, xstate_sizes[9]: 8 [ 0.185796] x86/fpu: Enabled xstate features 0x2ff, context size is 2568 bytes, using 'compacted' format. [ 0.185796] Freeing SMP alternatives memory: 48K [ 0.185796] pid_max: default: 32768 minimum: 301 [ 0.185796] LSM: initializing lsm=lockdown,capability,landlock,yama,apparmor,integrity [ 0.185796] landlock: Up and running. [ 0.185796] Yama: becoming mindful. [ 0.185796] AppArmor: AppArmor initialized [ 0.185796] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.185796] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.185796] smpboot: CPU0: Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz (family: 0x6, model: 0x55, stepping: 0x7) [ 0.186000] RCU Tasks Rude: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1. [ 0.186825] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1. [ 0.187844] Performance Events: unsupported p6 CPU model 85 no PMU driver, software events only. [ 0.188834] signal: max sigframe size: 3632 [ 0.189516] rcu: Hierarchical SRCU implementation. [ 0.189801] rcu: Max phase no-delay instances is 400. [ 0.190968] NMI watchdog: Perf NMI watchdog permanently disabled [ 0.191856] smp: Bringing up secondary CPUs ... [ 0.192806] smpboot: x86: Booting SMP configuration: [ 0.193604] .... node #0, CPUs: #1 [ 0.195903] MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html for more details. [ 0.196804] MMIO Stale Data CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/processor_mmio_stale_data.html for more details. [ 0.197851] smp: Brought up 1 node, 2 CPUs [ 0.198512] smpboot: Max logical packages: 1 [ 0.198802] smpboot: Total of 2 processors activated (9999.98 BogoMIPS) [ 0.200056] devtmpfs: initialized [ 0.200389] x86/mm: Memory block size: 128MB [ 0.201831] ACPI: PM: Registering ACPI NVS region [mem 0x3935e000-0x393ddfff] (524288 bytes) [ 0.202876] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns [ 0.203811] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.204901] pinctrl core: initialized pinctrl subsystem [ 0.205799] PM: RTC time: 13:38:13, date: 2024-08-16 [ 0.207448] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.207971] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations [ 0.208887] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.209830] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.210825] audit: initializing netlink subsys (disabled) [ 0.211697] audit: type=2000 audit(1723815494.497:1): state=initialized audit_enabled=0 res=1 [ 0.211697] thermal_sys: Registered thermal governor 'fair_share' [ 0.211804] thermal_sys: Registered thermal governor 'bang_bang' [ 0.212711] thermal_sys: Registered thermal governor 'step_wise' [ 0.212801] thermal_sys: Registered thermal governor 'user_space' [ 0.213695] thermal_sys: Registered thermal governor 'power_allocator' [ 0.214816] EISA bus registered [ 0.216835] cpuidle: using governor ladder [ 0.217419] cpuidle: using governor menu [ 0.218270] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 [ 0.218970] PCI: Using configuration type 1 for base access [ 0.219985] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible. [ 0.230890] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages [ 0.231805] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page [ 0.232803] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages [ 0.233801] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page [ 0.254813] fbcon: Taking over console [ 0.255433] ACPI: Added _OSI(Module Device) [ 0.255806] ACPI: Added _OSI(Processor Device) [ 0.256476] ACPI: Added _OSI(3.0 _SCP Extensions) [ 0.256801] ACPI: Added _OSI(Processor Aggregator Device) [ 0.258831] ACPI: 3 ACPI AML tables successfully acquired and loaded [ 0.260942] ACPI: _OSC evaluation for CPUs failed, trying _PDC [ 0.261992] ACPI: Interpreter enabled [ 0.262567] ACPI: PM: (supports S0 S4 S5) [ 0.262801] ACPI: Using IOAPIC for interrupt routing [ 0.263722] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug [ 0.263802] PCI: Using E820 reservations for host bridge windows [ 0.264792] ACPI: Enabled 2 GPEs in block 00 to 0F [ 0.268086] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) [ 0.268806] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI EDR HPX-Type3] [ 0.269803] acpi PNP0A03:00: _OSC: not requesting OS control; OS requires [ExtendedConfig ASPM ClockPM MSI] [ 0.270813] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended configuration space under this bridge [ 0.272170] acpiphp: Slot [3] registered [ 0.272789] acpiphp: Slot [4] registered [ 0.272816] acpiphp: Slot [5] registered [ 0.273423] acpiphp: Slot [6] registered [ 0.273818] acpiphp: Slot [7] registered [ 0.274491] acpiphp: Slot [8] registered [ 0.274813] acpiphp: Slot [9] registered [ 0.275417] acpiphp: Slot [10] registered [ 0.275813] acpiphp: Slot [11] registered [ 0.276496] acpiphp: Slot [12] registered [ 0.276812] acpiphp: Slot [13] registered [ 0.277458] acpiphp: Slot [14] registered [ 0.277816] acpiphp: Slot [15] registered [ 0.278442] acpiphp: Slot [16] registered [ 0.278821] acpiphp: Slot [17] registered [ 0.279474] acpiphp: Slot [18] registered [ 0.279813] acpiphp: Slot [19] registered [ 0.280438] acpiphp: Slot [20] registered [ 0.280814] acpiphp: Slot [21] registered [ 0.281428] acpiphp: Slot [22] registered [ 0.281819] acpiphp: Slot [23] registered [ 0.282434] acpiphp: Slot [24] registered [ 0.282813] acpiphp: Slot [25] registered [ 0.283433] acpiphp: Slot [26] registered [ 0.283814] acpiphp: Slot [27] registered [ 0.284430] acpiphp: Slot [28] registered [ 0.284814] acpiphp: Slot [29] registered [ 0.285432] acpiphp: Slot [30] registered [ 0.285814] acpiphp: Slot [31] registered [ 0.286525] PCI host bridge to bus 0000:00 [ 0.286802] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] [ 0.287802] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] [ 0.288800] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window] [ 0.289802] pci_bus 0000:00: root bus resource [mem 0x80000000-0xfebfffff window] [ 0.290806] pci_bus 0000:00: root bus resource [mem 0x100000000-0x2000ffffffff window] [ 0.291803] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.292865] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000 conventional PCI endpoint [ 0.294141] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100 conventional PCI endpoint [ 0.295714] pci 0000:00:01.3: [8086:7113] type 00 class 0x000000 conventional PCI endpoint [ 0.296538] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI [ 0.296860] pci 0000:00:01.3: PIIX4 devres E PIO at fff0-ffff [ 0.297725] pci 0000:00:01.3: PIIX4 devres F MMIO at ffc00000-ffffffff [ 0.297812] pci 0000:00:01.3: PIIX4 devres G PIO at fff0-ffff [ 0.298749] pci 0000:00:01.3: PIIX4 devres H MMIO at ffc00000-ffffffff [ 0.298813] pci 0000:00:01.3: PIIX4 devres I PIO at fff0-ffff [ 0.299686] pci 0000:00:01.3: PIIX4 devres J PIO at fff0-ffff [ 0.300324] pci 0000:00:03.0: [1d0f:1111] type 00 class 0x030000 conventional PCI endpoint [ 0.301805] pci 0000:00:03.0: BAR 0 [mem 0x80000000-0x803fffff pref] [ 0.305292] pci 0000:00:03.0: ROM [mem 0xffff0000-0xffffffff pref] [ 0.305884] pci 0000:00:03.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff] [ 0.307080] pci 0000:00:04.0: [1d0f:8061] type 00 class 0x010802 PCIe Endpoint [ 0.308805] pci 0000:00:04.0: BAR 0 [mem 0x80404000-0x80407fff] [ 0.313988] pci 0000:00:05.0: [1d0f:ec20] type 00 class 0x020000 PCIe Endpoint [ 0.315561] pci 0000:00:05.0: BAR 0 [mem 0x80400000-0x80403fff] [ 0.326026] ACPI: PCI: Interrupt link LNKA configured for IRQ 10 [ 0.327140] ACPI: PCI: Interrupt link LNKB configured for IRQ 10 [ 0.327905] ACPI: PCI: Interrupt link LNKC configured for IRQ 11 [ 0.328953] ACPI: PCI: Interrupt link LNKD configured for IRQ 11 [ 0.329866] ACPI: PCI: Interrupt link LNKS configured for IRQ 9 [ 0.331150] iommu: Default domain type: Translated [ 0.331540] iommu: DMA domain TLB invalidation policy: lazy mode [ 0.333030] SCSI subsystem initialized [ 0.333615] ACPI: bus type USB registered [ 0.333814] usbcore: registered new interface driver usbfs [ 0.334722] usbcore: registered new interface driver hub [ 0.334807] usbcore: registered new device driver usb [ 0.335595] pps_core: LinuxPPS API ver. 1 registered [ 0.335800] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.336805] PTP clock support registered [ 0.337518] EDAC MC: Ver: 3.0.0 [ 0.337989] efivars: Registered efivars operations [ 0.339108] NetLabel: Initializing [ 0.339802] NetLabel: domain hash size = 128 [ 0.340464] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.340826] NetLabel: unlabeled traffic allowed by default [ 0.341694] mctp: management component transport protocol core [ 0.341801] NET: Registered PF_MCTP protocol family [ 0.342600] PCI: Using ACPI for IRQ routing [ 0.342955] pci 0000:00:03.0: vgaarb: setting as boot VGA device [ 0.343740] pci 0000:00:03.0: vgaarb: bridge control possible [ 0.343796] pci 0000:00:03.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none [ 0.343800] vgaarb: loaded [ 0.344227] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0 [ 0.344796] hpet0: 8 comparators, 32-bit 62.500000 MHz counter [ 0.347839] clocksource: Switched to clocksource kvm-clock [ 0.349500] VFS: Disk quotas dquot_6.6.0 [ 0.350137] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)

asked 2 years ago485 views
1 Answer
1

Hello.

Looking at the logs, there didn't seem to be any errors.
For example, have you ever run out of burst credits because your CPU usage is a bit high?
Instance types that can be used in the free usage tier (t2.micro) can increase performance slightly by consuming burst credits when the CPU usage rate exceeds the baseline throughput.
However, if the burst credits are used up, the performance will drop to the baseline throughput, which may slow down the EC2 instance.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-credits-baseline-concepts.html

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.