Fedora Core 2 Out Of Memmory

Hello,

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.

Thanks

ps: I've a Dell Intel Xeon 3.2 Processor with 1GB ram
wcwsAsked:
Who is Participating?
 
wesly_chenConnect With a Mentor Commented:
Hi,

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.

Regards,

Wesly
0
 
pjedmondConnect With a Mentor Commented:
Yuck!!!!

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!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.