Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I saw my backups failed on my LAMP Wordpress server this weekend, but thought it could have waited till Monday. It looks like the server was down all weekend with a message (attached as jpeg) on the console referring to "Free Swap = 0kb". I couldn't log in by any means, switching terminals only threw up more system messages in my face. After a reboot, I grabbed this repeating message:
You may also have a memory leak. If you have sar installed, you may be able to see something in the sar data prior to the failure. It may show you a gradual increase. As sar is (by default) on a ten minute interval, and if the rise in memory usage was quick, it may show nothing (the last interval may not have been written out due to the oom).
You may have been subject to a DOS attack, or an intrusion attempt.
Did you add any new functionality recently? Has usage changed? If higher memory usage is the new norm, buy some more memory as suggested. Memory is cheap. Adding swap as a safety net will allow you to avoid the oom, or at least delay it, but performance will suffer.
This blog server gets attacked by the Chinese daily, however I'm more concerned about a rouge web developer / honorary mysql dba :P
It's a virtual guest that does use very little resources, so any increase in memory usage should be very noticeable.
I just couldn't believe what I was seeing in those messages... out of memory messages are always reserved for the windows servers in my datacenter.
Find the IP Address range where the Chinese are attacking from and go whammy on them (aka firewall block/drop rule). Maybe also install a firewall to block DoS attacks. My server got hit by a few DoS attacks, it came out undefeated, it routed all the attack packets to /dev/null
I have both a hardware firewall and a software firewall, plus fail2ban
If you haven't tried it, fail2ban is a cool application that dynamically modifies firewall rules to ban/unban ip address that make repeated failed connections.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.