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.
Hi all,
I have a SSO web server with apache,php & mysql. It was working great for last almost one year. But suddenly it hanged and found these in /var/log/messages file. After a restart it became online again.
How come it eats up all Swap space all of a sudden and what does these message means for troubleshooting.
PHP Code:
Aug 1 12:40:05 server1 kernel: oom-killer: gfp_mask=0xd2 Aug 1 12:40:05 server1 kernel: Mem-info: Aug 1 12:40:05 server1 kernel: DMA per-cpu: Aug 1 12:40:05 server1 kernel: cpu 0 hot: low 2, high 6, batch 1 Aug 1 12:40:05 server1 kernel: cpu 0 cold: low 0, high 2, batch 1 Aug 1 12:40:05 server1 kernel: cpu 1 hot: low 2, high 6, batch 1 Aug 1 12:40:05 server1 kernel: cpu 1 cold: low 0, high 2, batch 1 Aug 1 12:40:05 server1 kernel: cpu 2 hot: low 2, high 6, batch 1 Aug 1 12:40:05 server1 kernel: cpu 2 cold: low 0, high 2, batch 1 Aug 1 12:40:05 server1 kernel: cpu 3 hot: low 2, high 6, batch 1 Aug 1 12:40:05 server1 kernel: cpu 3 cold: low 0, high 2, batch 1 Aug 1 12:40:05 server1 kernel: Normal per-cpu: Aug 1 12:40:10 server1 kernel: cpu 0 hot: low 32, high 96, batch 16 Aug 1 12:40:10 server1 kernel: cpu 0 cold: low 0, high 32, batch 16 Aug 1 12:40:10 server1 kernel: cpu 1 hot: low 32, high 96, batch 16 Aug 1 12:40:11 server1 kernel: cpu 1 cold: low 0, high 32, batch 16 Aug 1 12:40:11 server1 kernel: cpu 2 hot: low 32, high 96, batch 16 Aug 1 12:40:11 server1 kernel: cpu 2 cold: low 0, high 32, batch 16 Aug 1 12:40:12 server1 kernel: cpu 3 hot: low 32, high 96, batch 16 Aug 1 12:40:12 server1 kernel: cpu 3 cold: low 0, high 32, batch 16 Aug 1 12:40:12 server1 kernel: HighMem per-cpu: Aug 1 12:40:13 server1 kernel: cpu 0 hot: low 32, high 96, batch 16 Aug 1 12:40:13 server1 kernel: cpu 0 cold: low 0, high 32, batch 16 Aug 1 12:40:13 server1 kernel: cpu 1 hot: low 32, high 96, batch 16 Aug 1 12:40:13 server1 kernel: cpu 1 cold: low 0, high 32, batch 16 Aug 1 12:40:13 server1 kernel: cpu 2 hot: low 32, high 96, batch 16 Aug 1 12:40:13 server1 kernel: cpu 2 cold: low 0, high 32, batch 16 Aug 1 12:40:14 server1 kernel: cpu 3 hot: low 32, high 96, batch 16 Aug 1 12:40:14 server1 crond(pam_unix)[23892]: session opened for user root by (uid=0) Aug 1 12:40:14 server1 crond(pam_unix)[23891]: session opened for user root by (uid=0) Aug 1 12:40:14 server1 kernel: cpu 3 cold: low 0, high 32, batch 16 Aug 1 12:40:14 server1 kernel: Aug 1 12:40:14 server1 kernel: Free pages: 14012kB (512kB HighMem) Aug 1 12:40:15 server1 kernel: Active:271231 inactive:230139 dirty:0 writeback:0 unstable:0 free:3503 slab:4751 mapped:501131 pagetables:452 1 Aug 1 12:40:15 server1 kernel: DMA free:12588kB min:16kB low:32kB high:48kB active:0kB inactive:0kB present:16384kB pages_scanned:122809 all _unreclaimable? yes Aug 1 12:40:15 server1 kernel: protections[]: 0 0 0 Aug 1 12:40:15 server1 kernel: Normal free:912kB min:928kB low:1856kB high:2784kB active:73468kB inactive:777992kB present:901120kB pages_sc anned:1768239 all_unreclaimable? yes Aug 1 12:40:25 server1 kernel: protections[]: 0 0 0 Aug 1 12:40:29 server1 kernel: HighMem free:512kB min:512kB low:1024kB high:1536kB active:1011840kB inactive:142180kB present:1179596kB page s_scanned:3094975 all_unreclaimable? yes Aug 1 12:40:30 server1 kernel: protections[]: 0 0 0 Aug 1 12:40:30 server1 kernel: DMA: 3*4kB 4*8kB 4*16kB 2*32kB 4*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 1*2048kB 2*4096kB = 12588kB Aug 1 12:40:30 server1 kernel: Normal: 0*4kB 14*8kB 2*16kB 8*32kB 2*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 912kB Aug 1 12:40:31 server1 kernel: HighMem: 2*4kB 1*8kB 3*16kB 0*32kB 1*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 512kB Aug 1 12:40:31 server1 kernel: Swap cache: add 4121947, delete 4121245, find 28269186/28669404, race 0+1784 Aug 1 12:40:32 server1 crond(pam_unix)[23892]: session closed for user root Aug 1 12:40:32 server1 kernel: 0 bounce buffer pages
Aug 1 12:40:33 server1 kernel: Free swap: 0kB Aug 1 12:40:33 server1 kernel: 524275 pages of RAM Aug 1 12:40:33 server1 kernel: 294899 pages of HIGHMEM Aug 1 12:40:36 server1 kernel: 5534 reserved pages Aug 1 12:40:36 server1 kernel: 79666 pages shared Aug 1 12:40:37 server1 kernel: 724 pages swap cached Aug 1 12:40:37 server1 kernel: Out of Memory: Killed process 23487 (httpd).
You need to examine the various logfiles to see what was going on in the preceding eg 30 mins to see what was running just before it called the oom-killer. Just because the httpd server was killed doesn't necessarily mean that was the culprit. oom-killer is not that smart.
More details would be helpful with your setup, amount of RAM, etc. But usually when the system or kernel starts killing processes, that means you either have a memory leak somewhere or your actual memory is going bad, from my experience at least. OOM might not be smart but the OS will start killing off processes that it feels are not as important as the ones to keep the OS running.
It's a HP Proliant DL 380 G4 server with 2GB RAM and swap of 6GB with Intel(R) Xeon(TM) CPU 3.00GHz running php,apache,mysql,winbind for authentication.
Running Kernel version-2.6.9-22 (32bit) though it supports 64bit.
It's a HP Proliant DL 380 G4 server with 2GB RAM and swap of 6GB with Intel(R) Xeon(TM) CPU 3.00GHz running php,apache,mysql,winbind for authentication.
Running Kernel version-2.6.9-22 (32bit) though it supports 64bit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.