|
|
|
Утечка памяти
|
|||
|---|---|---|---|
|
#18+
Поставил CentOS 5.4 (пень4 2.4 ггц, 2 гб памяти) через час-два заметил что в системе осталось 200 метров памяти, все остальное "утекло" в никуда. Top ничего не показывает - занято все, доступнно - ничего, причем с десяток процесов используют 0,1 - 0,2% остальные того меньше. Не стал вникать, поставил Mandriva 2010.0, заметил примерно то же, выключил автоматическую проверку апдейтов перезагрузил и запустил в режиме без X (init 3). За 5 часов простоя "утекло" 200 метров памяти. С "занято" 275мб до 480мб. Top ничего не показывает, вернее показывает только что паять отсутствует. Кто ее "съел" - неизвестно. Как искать? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.05.2010, 20:46 |
|
||
|
Утечка памяти
|
|||
|---|---|---|---|
|
#18+
AndrewVP, есть даже специальный сайт типа "top для самых маленьких" http://www.linuxatemyram.com/ ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.05.2010, 13:22 |
|
||
|
Утечка памяти
|
|||
|---|---|---|---|
|
#18+
ну а если иначе помотреть? Код: plaintext 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.05.2010, 13:29 |
|
||
|
Утечка памяти
|
|||
|---|---|---|---|
|
#18+
AndrewVP, free -m и выяснится, что память выделена под дисковый буфер? ;-) Это нормальное поведение линукс-систем ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.05.2010, 13:37 |
|
||
|
Утечка памяти
|
|||
|---|---|---|---|
|
#18+
Вопрос в тему, как выгрузить не активную память без перезагрузки? Mem: 227M Active, 656M Inact , 435M Wired, 160K Cache, 399M Buf, 6608M Free За неделю до 2Gb Inactive возрастает. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.05.2010, 18:43 |
|
||
|
Утечка памяти
|
|||
|---|---|---|---|
|
#18+
Возможно, не стоит грешыть на утечки, просто ОС/демоны пытаються кешыровать что актуально, вот если б памяти оставалось много после интенсивной работы - стоит подумать о даунгрейде. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.05.2010, 19:41 |
|
||
|
Утечка памяти
|
|||
|---|---|---|---|
|
#18+
jemojeВопрос в тему, как выгрузить не активную память без перезагрузки? Mem: 227M Active, 656M Inact , 435M Wired, 160K Cache, 399M Buf, 6608M Free За неделю до 2Gb Inactive возрастает. kernel version, linux distr, application? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.05.2010, 23:35 |
|
||
|
Утечка памяти
|
|||
|---|---|---|---|
|
#18+
Niemi, и все равно остается 4 GB free, судя по циферкам? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.05.2010, 00:18 |
|
||
|
Утечка памяти
|
|||
|---|---|---|---|
|
#18+
NiemijemojeВопрос в тему, как выгрузить не активную память без перезагрузки? Mem: 227M Active, 656M Inact , 435M Wired, 160K Cache, 399M Buf, 6608M Free За неделю до 2Gb Inactive возрастает. kernel version, linux distr, application? #uname -a FreeBSD .localhost.ru 7.2-RELEASE FreeBSD 7.2-RELEASE #10: Fri Mar 26 14:55:03 MSK 2010 root@.localhost:/usr/obj/usr/src/sys/MY2 amd64 # pkg_info autoconf-2.62 Automatically configure source code on many Un*x platforms autoconf-wrapper-20071109 Wrapper script for GNU autoconf automake-1.10.1 GNU Standards-compliant Makefile generator (1.10) automake-wrapper-20071109 Wrapper script for GNU automake bigreqsproto-1.0.2 BigReqs extension headers ca_root_nss-3.12.4 The root certificate bundle from the Mozilla Project cclient-2007e,1 Mark Crispin's C-client mail access routines curl-7.19.7_1 Non-interactive tool to get files from FTP, GOPHER, HTTP(S) eaccelerator-0.9.5.3 An opcode cache for PHP with encoder and loader freetds-msdblib-0.64_5,1 Sybase/Microsoft TDS protocol library freetype2-2.3.11 A free and portable TrueType font rendering engine gettext-0.17_1 GNU gettext package gmake-3.81_3 GNU version of 'make' utility help2man-1.37.1_2 Automatically generating simple manual pages from program o inputproto-1.5.0 Input extension headers ja-lynx-2.8.6.rel5 A terminal-based World-Wide Web Client with multi-byte modi jpeg-8_1 IJG's jpeg compression utilities kbproto-1.0.3 KB extension headers libICE-1.0.4_1,1 Inter Client Exchange library for X11 libSM-1.1.0_1,1 Session Management library for X11 libX11-1.2.1_1,1 X11 library libXau-1.0.4 Authentication Protocol library for X11 libXaw-1.0.5_1,1 X Athena Widgets library libXdmcp-1.0.2_1 X Display Manager Control Protocol library libXext-1.0.5,1 X11 Extension library libXmu-1.0.4,1 X Miscellaneous Utilities libraries libXp-1.0.0,1 X print library libXpm-3.5.7 X Pixmap library libXt-1.0.5_1 X Toolkit library libcheck-0.9.8 A unit test framework for C libevent-1.4.13 Provides an API to execute callback functions on certain ev libgcrypt-1.4.5 General purpose crypto library based on code used in GnuPG libgpg-error-1.7 Common error values for all GnuPG components libiconv-1.13.1_1 A character set conversion library libltdl-2.2.6b System independent dlopen wrapper libmcrypt-2.5.8 Multi-cipher cryptographic library (used in PHP) libpthread-stubs-0.3_3 This library provides weak aliases for pthread functions libtool-2.2.6b Generic shared library support script libxcb-1.5 The X protocol C-language Binding (XCB) library libxml2-2.7.6_2 XML parser library for GNOME libxslt-1.1.26 The XSLT C library for GNOME m4-1.4.14,1 GNU m4 mhash-0.9.9.9_1 An easy-to-use library for strong hashes such as MD5 and SH mysql-client-5.0.90 Multithreaded SQL database (client) mysql-scripts-5.0.90 Multithreaded SQL database (scripts) mysql-server-5.0.90 Multithreaded SQL database (server) nginx-0.7.65 Robust and small WWW server p5-DBD-mysql50-4.013 MySQL 5.0 driver for the Perl5 Database Interface (DBI) p5-DBI-1.60.9 The perl5 Database Interface. Required for DBD::* modules p5-Storable-2.21 Persistency for perl data structures p5-gettext-1.05_2 Message handling functions pcre-8.00 Perl Compatible Regular Expressions library pdflib-7.0.4 A C library for dynamically generating PDF pecl-memcache-3.0.4 Memcached extension pecl-pdflib-2.1.6_1 A PECL extension to create PDF on the fly perl-5.10.1 Practical Extraction and Report Language php5-5.2.12 PHP Scripting Language php5-bz2-5.2.12 The bz2 shared extension for php php5-ctype-5.2.12 The ctype shared extension for php php5-curl-5.2.12 The curl shared extension for php php5-dom-5.2.12 The dom shared extension for php php5-extensions-1.3 A "meta-port" to install PHP extensions php5-filter-5.2.12 The filter shared extension for php php5-fpm-5.2.12 PHP Scripting Language with FastCGI Process Manager php5-gd-5.2.12 The gd shared extension for php php5-gettext-5.2.12 The gettext shared extension for php php5-hash-5.2.12 The hash shared extension for php php5-iconv-5.2.12 The iconv shared extension for php php5-imap-5.2.12 The imap shared extension for php php5-json-5.2.12 The json shared extension for php php5-mbstring-5.2.12 The mbstring shared extension for php php5-mcrypt-5.2.12 The mcrypt shared extension for php php5-mhash-5.2.12 The mhash shared extension for php php5-mssql-5.2.12 The mssql shared extension for php php5-mysql-5.2.12 The mysql shared extension for php php5-mysqli-5.2.12 The mysqli shared extension for php php5-openssl-5.2.12 The openssl shared extension for php php5-pcre-5.2.12 The pcre shared extension for php php5-pdo-5.2.12 The pdo shared extension for php php5-pdo_sqlite-5.2.12 The pdo_sqlite shared extension for php php5-posix-5.2.12 The posix shared extension for php php5-session-5.2.12 The session shared extension for php php5-simplexml-5.2.12 The simplexml shared extension for php php5-sockets-5.2.12 The sockets shared extension for php php5-spl-5.2.12 The spl shared extension for php php5-sqlite-5.2.12 The sqlite shared extension for php php5-tokenizer-5.2.12 The tokenizer shared extension for php php5-xml-5.2.12 The xml shared extension for php php5-xmlreader-5.2.12 The xmlreader shared extension for php php5-xmlwriter-5.2.12 The xmlwriter shared extension for php php5-zlib-5.2.12 The zlib shared extension for php pkg-config-0.23_1 A utility to retrieve information about installed libraries png-1.2.43 Library for manipulating PNG images printproto-1.0.4 Print extension headers python26-2.6.4 An interpreted object-oriented programming language t1lib-5.1.2_1,1 A Type 1 Rasterizer Library for UNIX/X11 wget-1.12 Retrieve files from the Net via HTTP(S) and FTP xcb-proto-1.6 The X protocol C-language Binding (XCB) protocol xcmiscproto-1.1.2 XCMisc extension headers xextproto-7.0.5 XExt extension headers xf86bigfontproto-1.1.2 XFree86-Bigfont extension headers xorg-macros-1.2.1 X.Org development aclocal macros xproto-7.0.15 X11 protocol headers xtrans-1.2.3 Abstract network code for X ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.05.2010, 01:54 |
|
||
|
Утечка памяти
|
|||
|---|---|---|---|
|
#18+
может посмотрим список запущеных процессов? а то у меня тоже много всего установлено, но используется как правило bind, apache, php, memchached etc. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.05.2010, 12:20 |
|
||
|
Утечка памяти
|
|||
|---|---|---|---|
|
#18+
Niemiможет посмотрим список запущеных процессов? а то у меня тоже много всего установлено, но используется как правило bind, apache, php, memchached etc. PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 14198 www 1 4 0 158M 43416K accept 1 0:05 0.10% php-fpm 900 www 1 4 0 52392K 28932K kqread 1 0:23 0.00% nginx 14199 www 1 4 0 158M 49076K accept 0 0:05 0.00% php-fpm 14200 www 1 4 0 158M 47780K accept 0 0:05 0.00% php-fpm 941 mysql 15 44 0 329M 96888K ucond 0 0:05 0.00% mysqld 14202 www 1 4 0 158M 45820K accept 0 0:05 0.00% php-fpm 14201 www 1 4 0 158M 48176K accept 1 0:04 0.00% php-fpm 788 root 1 4 0 155M 13060K kqread 0 0:01 0.00% php-fpm 972 root 1 44 0 10700K 3896K select 1 0:00 0.00% sendmail 982 root 1 8 0 6748K 1436K nanslp 0 0:00 0.00% cron 757 root 1 44 0 5692K 1372K select 0 0:00 0.00% syslogd 14704 root 1 20 0 10108K 2804K pause 0 0:00 0.00% csh 14697 root 1 20 0 9084K 2388K pause 1 0:00 0.00% csh 14700 root 1 44 0 33772K 4592K select 0 0:00 0.00% sshd 14694 root 1 45 0 33772K 4584K select 1 0:00 0.00% sshd 966 root 1 44 0 22880K 3936K select 1 0:00 0.00% sshd 14699 root 1 53 0 17484K 2988K select 0 0:00 0.00% sftp-server ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.05.2010, 13:31 |
|
||
|
|

start [/forum/topic.php?fid=25&msg=36611920&tid=1484946]: |
0ms |
get settings: |
6ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
151ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
42ms |
get tp. blocked users: |
1ms |
| others: | 221ms |
| total: | 453ms |

| 0 / 0 |
