-2

I used to have a LAMP/file headless server, running Ubuntu server 12.04 and 1 GB of RAM. It worked fine, with no problems for years.

When I moved to a new hardware with 4 GB and server 16.04, serving exactly the same services, my memory gets full with cache and I have a lot of swap usage.

Help me, resolve this isue.

memory leak screenshot

$ sudo lshw -C memory

*-firmware              
           description: BIOS
           vendor: American Megatrends Inc.
           physical id: 0
           version: P1.30
           date: 05/16/2014
           size: 64KiB
           capacity: 4032KiB
           capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
      *-cache:0
           description: L1 cache
           physical id: 5
           slot: L1-Cache
           size: 128KiB
           capacity: 128KiB
           capabilities: internal write-back unified
           configuration: level=1
      *-cache:1
           description: L2 cache
           physical id: 6
           slot: L2-Cache
           size: 1MiB
           capacity: 1MiB
           capabilities: internal varies data
           configuration: level=2
      *-memory
           description: System Memory
           physical id: a
           slot: System board or motherboard
           size: 4GiB
         *-bank:0
              description: DIMM DDR3 Synchronous 667 MHz (1.5 ns)
              product: M378B5673FH0-CH9
              vendor: Samsung
              physical id: 0
              serial: 83047B3B
              slot: A1_DIMM0
              size: 2GiB
              width: 64 bits
              clock: 667MHz (1.5ns)
         *-bank:1
              description: DIMM DDR3 Synchronous 667 MHz (1.5 ns)
              product: M378B5773CH0-CH9
              vendor: Samsung
              physical id: 1
              serial: 631A7A4F
              slot: A1_DIMM1
              size: 2GiB
              width: 64 bits
              clock: 667MHz (1.5ns)

1 Answers1

0

Please take a look at the "swappiness value": How do I configure swappiness?

By the way, you used only 284M, the rest is cache: What Does Cached Memory Mean when Viewing htop?