亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3600 | 回復(fù): 3
打印 上一主題 下一主題

緊急求助!!關(guān)于內(nèi)存的 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2006-12-27 17:17 |只看該作者 |倒序?yàn)g覽
我們的服務(wù)器,16GB物理內(nèi)存已經(jīng)用光,16GB的交換空間現(xiàn)在每小時(shí)消耗1.5GB,已經(jīng)用了10GB,估計(jì)也支撐不了一會(huì)兒了,誰知道我該如何查找到底是什么原因?qū)е碌?

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2006-12-30 10:25 |只看該作者
幾個(gè)問題:\r\n1、你的服務(wù)器是跑什么?由此可以去想想到底是什么在吃PaggingSpace\r\n2、把你看到的性能報(bào)表貼出來\r\n用“vmstat 2 100”來查看,你會(huì)看到類似如下的報(bào)告:\r\n#vmstat 2 10\r\nkthr     memory             page              faults        cpu\r\n----- ----------- ------------------------ ------------ -----------\r\n r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa\r\n 2  2 1187863 97787   0   4   6  14   63   0 1397 7661 3923  9  6 80  5\r\n 1  0 1189264 96385   0   0   0   0    0   0 1495 16047 3605 58 16 26  1\r\n按你現(xiàn)在的狀況這張表里的fre的值會(huì)看到不斷減少,減少至0然后又釋放一點(diǎn)點(diǎn)再減少,此外pi和po頻繁。這個(gè)值根據(jù)各個(gè)系統(tǒng)的情況一般是乘8k才是實(shí)際值。\r\n然后用ipcs -mb具體來看是內(nèi)存被什么用掉了。如下\r\n#ipcs -mb\r\nIPC status from /dev/mem as of Fri Aug 11 09:43:35 BEIST 2006\r\nT        ID     KEY        MODE       OWNER    GROUP     SEGSZ\r\nShared Memory:\r\nm    262144 0x5800404c --rw-rw-rw-     root   system 134217728\r\nm         1 0xe4663d62 --rw-rw-rw-   imnadm   imnadm        96\r\nm         2 0x9308e451 --rw-rw-rw-   imnadm   imnadm     97948\r\nm         3 0x52e74b4f --rw-rw-rw-   imnadm   imnadm     36028\r\nm         4 0xc76283cc --rw-rw-rw-   imnadm   imnadm      8192\r\nm         5 0x298ee665 --rw-rw-rw-   imnadm   imnadm      2844\r\nm         6 0xffffffff --rw-rw----     root   system      4096\r\nm         7 0x670018cf --rw-r--r--     root   system        12\r\nm         8 0x680018cf --rw-r--r--     root   system    106548\r\nm         9 0x700018cf --rw-------     root   system      3152\r\nm        10 0x78001070 --rw-rw-rw-     root   system  16777216\r\nm        11 0xffffffff --rw-rw----     root   haemrm      4096\r\nm        12 0x00006000 --rw-rw-rw-     root   system    160944\r\nm        13 0xe8cbe0a4 --rw-r-----   oracle      dba 1879855104\r\nm        14 0x0d05120d --rw-rw-rw-     root   system      1440\r\n上面你可以很明顯的看到Oracle用了1879855104。而這里的“MODE ”狀態(tài)還是比較正常的,一般都不象是操作系統(tǒng)的問題,除非狀態(tài)為類似“D”開頭就要考慮內(nèi)存未釋放、內(nèi)存泄露啊等等原因了。

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2006-12-30 10:28 |只看該作者
我上面說的是類似的問題發(fā)生時(shí)你要做的查找原因、分析記錄的方法。\r\n如果你實(shí)在等不了直接重啟應(yīng)用或者操作系統(tǒng)那么內(nèi)存自然會(huì)釋放回來的,但重啟以后你也無法再繼續(xù)分析了。\r\n\r\n在給你一些其他的觀察內(nèi)存的命令:\r\nipcs -mb\r\n\r\nsvmon -G\r\n\r\nTo print out the percentage of memory used, type:\r\nsvmon -F\r\n\r\nTo print out the top 10 users of the paging space, type:\r\nsvmon -U -g -t 10\r\n\r\nTo print out the memory usage statistics for the user oracle including the processes belonging to\r\nsteve, type:\r\nsvmon -U oracle -d\r\n\r\nTo print out the memory usage statistics for the user oracle, including the list of the process identifiers,\r\ntype:\r\nsvmon -U oracle -l\r\n\r\nTo print out the memory usage statistics of the top 5 working segment according to the number of\r\nvirtual pages , type:\r\nsvmon -S -t 5 -w -v\r\n\r\nTo print out the memory usage statistics for the process 13130, type:\r\nsvmon -P 13130\r\n\r\nTo print out the memory usage statistics of the top 10 process according to the number of pinned\r\npages, enter\r\nsvmon -P -t 10 -p\r\n\r\nTo sort system segments by the number of pages in real memory, and print out the top 10 system\r\nsegments of the resulting list, type:\r\nsvmon -Ssu -t 10

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2006-12-30 10:31 |只看該作者
暈    好久不來了,發(fā)現(xiàn)操作系統(tǒng)版現(xiàn)在整得這么弱。。。\r\n積分都沒了哈   回帖也不再積分哈    \r\n以后不回了    哈哈 !。。。。。。。。。。。。。。。。。。。。。!
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP