这是根据网上说的查看php-cgi 进程的结果

ps -fe |grep "php" | grep -v "grep" | wc -l

65

netstat -anop | grep "php" | grep -v "grep" | wc -l

230

现在每重启一次VPS,3分钟后就挂了

ssh上显示这么一些乱七八糟的东西- oom-killer: gfp_mask=0x200d2, order=0

  • [] out_of_memory+0x1c9/0x200
  • [] __alloc_pages+0x28f/0x310
  • [] read_swap_cache_async+0x91/0xf0
  • [] swapin_readahead+0x56/0x70
  • [] __handle_mm_fault+0x1563/0x18a0
  • [] ktime_get_ts+0x1e/0x60
  • [] delayacct_end+0x68/0xa0
  • [] do_page_fault+0x0/0xbb8
  • [] error_code+0x2b/0x30
  • [] do_acct_process+0x2b/0x820
  • [] __copy_to_user_ll+0x4e/0x110
  • [] core_sys_select+0x242/0x300
  • [] __do_IRQ+0xc0/0x100
  • [] run_timer_softirq+0x3a/0x240
  • [] do_IRQ+0x23/0x60
  • [] do_page_fault+0x797/0xbb8
  • [] do_page_fault+0x0/0xbb8
  • [] error_code+0x2b/0x30
  • [] copy_to_user+0x120/0x150
  • [] sys_select+0x191/0x1b0
  • [] syscall_call+0x7/0xb
  • DMA per-cpu:
  • cpu 0 hot: high 0, batch 1 used:0
  • cpu 0 cold: high 0, batch 1 used:0
  • cpu 1 hot: high 0, batch 1 used:0
  • cpu 1 cold: high 0, batch 1 used:0
  • cpu 2 hot: high 0, batch 1 used:0
  • cpu 2 cold: high 0, batch 1 used:0
  • cpu 3 hot: high 0, batch 1 used:0
  • cpu 3 cold: high 0, batch 1 used:0
  • DMA32 per-cpu: empty
  • Normal per-cpu:
  • cpu 0 hot: high 186, batch 31 used:23
  • cpu 0 cold: high 62, batch 15 used:53
  • cpu 1 hot: high 186, batch 31 used:24
  • cpu 1 cold: high 62, batch 15 used:41
  • cpu 2 hot: high 186, batch 31 used:18
  • cpu 2 cold: high 62, batch 15 used:57
  • cpu 3 hot: high 186, batch 31 used:22
  • cpu 3 cold: high 62, batch 15 used:58
  • HighMem per-cpu: empty
  • Free pages: 3888kB (0kB HighMem)
  • Active:42797 inactive:40067 dirty:0 writeback:0 unstable:0 free:972 slab:2395 mapped:18 pagetables:1287
  • DMA free:1520kB min:104kB low:128kB high:156kB active:4088kB inactive:3884kB present:16384kB pages_scanned:16476 all_unreclaimable? yes
  • lowmem_reserve[]: 0 0 352 352
  • DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
  • lowmem_reserve[]: 0 0 352 352
  • Normal free:2368kB min:2344kB low:2928kB high:3516kB active:167100kB inactive:156384kB present:360448kB pages_scanned:447014 all_unreclaimable? yes
  • lowmem_reserve[]: 0 0 0 0
  • HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
  • lowmem_reserve[]: 0 0 0 0
  • DMA: 24kB 18kB 016kB 132kB 164kB 1128kB 1256kB 0512kB 11024kB 02048kB 0*4096kB = 1520kB
  • DMA32: empty
  • Normal: 284kB 48kB 116kB 532kB 064kB 0128kB 0256kB 0512kB 01024kB 12048kB 0*4096kB = 2368kB
  • HighMem: empty
  • Swap cache: add 932649, delete 932654, find 78399/155559, race 2+267
  • Free swap = 0kB
  • Total swap = 262136kB
  • Out of Memory: Kill process 18220 (php-cgi) score 16170 and children.
  • Out of memory: Killed process 18223 (php-cgi).复制代码

[ 本帖最后由 GoTop 于 2010-4-30 23:18 编辑 ]