You need to use Memtest86 utility for Linux memory testing. It is software designed to stress-test an x86-compatible computer’s random access memory for errors.
You can run software from a bootable floppy disk or CD-ROM without an operating system being present.
This application is able to test the memory by applying a number of patterns to the memory and comparing it with expected results. If the memory tests fail, replace the faulty RAM and test again. If the same memory fails, it could be a faulty memory controller or ram slot. You may need to replace server/workstation motherboard.
Download Linux memory testing software
Memtest86 is released under the terms of the Gnu Public License (GPL). Download memtest86 utility software.