• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

Fedora Core 2 Out Of Memmory


everytime I leave my server for 5 or 10days the next day I got out of memmory error and server stop responding than I have to do a hard reboot in order to use my services.

What is the best way of avoiding out of memmory message.

Once the server stated out of memory I cannot do anything such as cannot check my emails, cannot connect to my sshd , cannot connect to web site e.t.c.

Appreciate your help.


ps: I've a Dell Intel Xeon 3.2 Processor with 1GB ram
2 Solutions

1. Update the latest patches, especially the kernel.
yum upgrade
yum update kernel

Then reboot to the latest kernel. Sometimes kernel bug cause the memory leakage.

2. Check what applications are running on your FC2. Some Java applications have bad coding and eat
up all the memory without releasing them.



Obviously try the points mentioned above. There's always the prossibiltiy of zombie processes.

In addition the problem could be with any of the other processes running on the system - particularly 'less mature' applications.

Ideally, you need to see the resources being used by each process. This can be done using the command:

top -p 1234

where 1234 is the process id. If you notice that a particular process increases it's memory size over a period of say 4 days then that may be the guilty application. Be aware that memory can be allocated to processes, but when the system requires it back there are mechanisms to release it, so this approach merely gives you a feel for your setup. I'm guessing that there is a process that's memory rewuirements increases *massively*.

As previously mentioned java applications tend to be candidates for this, but it could be anything. Memory leaks are a pain to find! - Good luck!

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now