Create: 2008/10/19 LastUpdate: 2008/12/03 vmstat ã³ãã³ãã®åºåå 容ã«æ¥ä»ã¨æéãä»å ãã以ä¸ã®ãããªå 容ã§ãã¡ã¤ã«ã«ä¿åãã¾ãã 2008-12-02 15:58:02 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ 2008-12-02 15:58:02 r b swpd free buff cache si so bi bo in cs us sy id wa st 2008-12-02 15:58:02 1 0 32 15576 96700 227136 0 0 1 37 17 36 2 0 97 0 0 2008-12-02 15:59:02 0 0 32 5380 96728 227176 0 0 0 30
ã¡ã¢ãªä½¿ç¨ç¶æ³ä»¥å¤ã«ã CPU 使ç¨çã®ææ¡ãªã©ãã¾ãã¾ãªç¨éã«å©ç¨å¯è½ã§ããåä½ã§ã¯ã¿ã¤ã ã¹ã¿ã³ãåºåæ©è½ããªããæå®ã§ããæ´æ°ééãé«è² è·æã«ã¯ãã¦ã«ãªããªããã¨ãæ¬ ç¹ã¨è¨ãã¾ãã
ããæ¥ãTomcatã«ã¢ã¯ã»ã¹ãã¦ã¿ãã¨ãã¢ã¯ã»ã¹ã§ããªãããã ä½ããï½ Tomcatã®ãã°ã調ã¹ã¦ãä½ãã§ã¦ããªãã ãããããªããmessagesã調ã¹ã¦ãããããªã«ããä¸ç©ãªæè¨ãããã kernel: Out of Memory: Killed process 16304 (java). kernel: oom-killer: gfp_mask=0xd0 Javaã®ããã»ã¹ã殺ããã¦ãã¼ ããããã®ãoom-killerãã£ã¦ã®ãæªããã ä»ã«ããã»ã¹ã殺ãã¦ãããã¨ãå¤æã ã¦ã£ã«ã¹ãï½ï¼ï¼ã¨æããã®ã®ãã°ã°ãã¦ã¿ãã¨ããã ITProã«ä¸è¨ã®ãããªè¨äºãããã http://itpro.nikkeibp.co.jp/article/COLUMN/20061117/254053/ èªãã§ã§ã¿ã¦é©æ ãOOM Killerï¼Out of Memory Kill
ä»ã»ããã¢ãããã¦ããLinuxãµã¼ãã§ãã¨ããããã°ã©ã ãå®è¡ãããoom-killerãã§ã¾ããã å½ç¶ã¡ã¢ãªä¸è¶³ã ããã¨æãã/var/log/messages ã確èªãããã以ä¸ã®éã10GBã空ãã¡ã¢ãªãããã¾ããã Dec 12 16:36:49 HOGESERVER kernel: Linux version 2.6.9-34.ELsmp (bhcompile@hs20-bc1-7.build.redhat.com) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Fri Feb 24 16:54:53 EST 2006 Dec 12 16:52:11 HOGESERVER kernel: Free pages: 10230732kB (10217536kB HighMem) Dec 12 16:52:11 HOGE
空ãã¡ã¢ãªã確ä¿ããä»çµã¿ã¨ãã¦"OOM Killer(Out of Memory Killer)"ã¨ãããã®ããã OOM Killerã¯ã空ãã¡ã¢ãªã足ããªãå ´åã«å¼·å¶çã«Processãçµäºããã¦å¼·å¼ã«ç©ºãã¡ã¢ãªã確ä¿ãã OOM Killerã¯ã空ãã¡ã¢ãªã確ä¿ã§ããªãããã«ã·ã¹ãã å ¨ä½ãåæ¢ãã¦ãã¾ããã¨ãé²æ¢ããããã«ç¨æããã¦ãã OOM Killerã¯ã·ã¹ãã åæ¢ãé²æ¢ããããã«å¿ è¦ãªæ©è½ã ããOOM Killerã«ããå¼·å¶çµäºã¯å¤§åãªProcessãåæ¢ããã¦ãã¾ãå±éºæ§ããã ã¯ã©ã¹ã¿ã·ã¹ãã ãªã©ã«ããã¦ãã¯ã©ã¹ã¿ç£è¦Processãå¼·å¶åæ¢ããããã¦ãã¾ã£ãå ´åããããåå ã¨ãªã£ã¦ã¯ã©ã¹ã¿ã®é害ãçºçãã¦ãã¾ãå±éºæ§ããã kernel2.6.17.1åãã«OOM Killerã使ç¨ããã«kernel panicãèµ·ããããããããæ稿ããããããã使ç¨ããã¨ã空ãã¡
Cã§ããã°ã©ã ãæ¸ãã¦ãã¦å¤§éã®ã¡ã¢ãªã確ä¿ããããªã£ãã¨ãã大æµã¯ mallocã使ãã¨æãã¾ããããã®éã«ã¯æ»ãå¤ãNULLãã©ãããå¤æãã¦ã¨ã©ã¼å¦çã«é£ã°ãã¨æãã¾ããããããLinux ã®ã¡ã¢ãªç®¡çãµãã·ã¹ãã ã«ã¯ãã¡ã¢ãªã»ãªã¼ãã¼ã³ããããã¨ããæ©æ§ããããå®è£ ããã¦ããã¡ã¢ãªä»¥ä¸ã®é åã確ä¿ã§ãã¦ãã¾ãã¾ãã #include <stdio.h> #include <stdlib.h> int main() { int i; char *p; for(i=0;i<65536;i++){ p = (char *)malloc(65536); if(0 == (long)p){ break; } } printf("SIZE=%dMB\n",i*65536/1024/1024); return(0); } swapoff ããã¡ã¢ãª 1G ã®ãã·ã³ã§ãããå®è¡ããã¨ãããªæãã«ãª
Webãµã¼ããå¿çããªãã VNC,SSHãå¿çããªããPingã¯å¯è½ã æ¬ä½ã®ã³ã³ã½ã¼ã«ãå¿çããªãã Power Resetã§ç«ã¡ä¸ãã£ãã 1æ3æ¥ã«ãåæ§ãªçç¶ã§ãªã¹ã¿ã¼ããã¦ããã åå ãããå¤ããªãã [var/log/messages] ã»ã»ã»ã» Jan 5 05:22:41 kiyoeri kernel: 0 pages of HIGHMEM Jan 5 05:22:43 kiyoeri smbd[19431]: [2008/01/05 05:22:43, 0] lib/util_sock.c:send_smb(647) Jan 5 05:22:43 kiyoeri kernel: 2151 reserved pages Jan 5 05:22:47 kiyoeri smbd[19431]:  Error writing 4 bytes to
èªå® ã§ã¯ãããã«ã¤ãªãã£ã¦ããæ©å¨(ã²ã¼ã æ©ãå«ãã¦åè¨8å°ããã)ããã¹ã¦ç¡ç·LANã§æ¥ç¶ãã¦ãããã©ãã調åãæªããããããã¨è¨å®ãå¤æ´ããããé ç½®ãå¤ãããã¨è©¦è¡é¯èª¤ããããä¸åã«æ¹åãããªãããããã½ã³ã³ã¯LANã±ã¼ãã«ã§æ¥ç¶ãããã¨ã«ããã çé¢ã«é»è©±ç·ãæ¥ã¦ããããã¹ãã¨æãæä½2ç®æãè¶ ããªãã¨ãã½ã³ã³ã¾ã§å±ããªãé¢åãªé ç½®ã«ãªã£ã¦ãããã¾ãããããçç±ã§ç¡ç·LANã«ãã¦ããããã ãããã®ã¾ã¾é ç·ããã¨ãããä¸ã«LANã±ã¼ãã«ãéãåã£ã¦ç¾ãããªããã足ãå¼ã£æããå¯è½æ§ãããã ç¾ããé ç·ããããã«ã¢ã¼ã«(ã±ã¼ãã«ã«ãã¼)ãè³¼å ¥ãããã¨ã«ãããã¢ã¼ã«ãã©ããããã®ãªã®ãã¯ãåçãè¦ã¦ããã£ãæ¹ãæ©ãã ã¢ã¼ã«ã¯çç¶ã«ãªã£ã¦ãã¦ã竹ãå²ãããã«äºã¤ã«åè£ãããã«ãã¼é¨åãå¤ããä¸ã§åºãå£ã«ä¸¡é¢ãã¼ãã§è²¼ãã¤ãã¦åºå®ããã±ã¼ãã«ãå ¥ãã¦ã«ãã¼ãä»ããã°ãã£ããã¨é ç·ã§ããããã
ã°ãªãããã¼ã¹ã®ã¬ã¤ã¢ã¦ããä½æããã¨ãã¤ãã¤ãdivè¦ç´ ãå¤ç¨ãã¦ãã¾ããã¡ã§ãããæå³ã®ãããã¼ã¿ã«ã¯ããã«é©ããè¦ç´ ã使ç¨ããç¡é§ãªdivè¦ç´ ãclassã ããã®ãã¼ã¯ã¢ããããåæ¥ããæ¹æ³ãWebdesigner Depotããç´¹ä»ãã¾ãã Fight Div-itis and Class-itis With the 960 Grid System ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã ã¯ããã« CSSã®ãã¬ã¼ã ã¯ã¼ã¯ï¼960.gsã®å ´å classã®ä¹±ç¨ãé¿ãã ãªã¹ãè¦ç´ ã®ä½¿ç¨ ç»åã¨ãã£ãã·ã§ã³ã®ä½¿ç¨ è¤æ°ã®è¦åºãã¨ãã©ã°ã©ãã®ä½¿ç¨ åè¦ç´ ã®classã¯è¦ªè¦ç´ ã« ã¯ããã« æ°å¹´åã¾ã§ã¦ã§ããã¼ã¸ã®è¨è¨ã¯ãã¼ãã«ãã¹ã¿ã³ãã¼ãã§ãããããã¦CSSã¯ããã大ããå¤ããä»æ¥ã§ã¯CSSã®ãã¬ã¼ã ã¯ã¼ã¯ãã¦ã§ããã¼ã¸ã®è¨è¨ã容æã«ãã¦ããã¦ãã¾ãã ããããªããããã®CSSã®ãã¬ã¼ã ã¯
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}