Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
could not fork new process for connection: Cannot allocate memory
|
|||
|---|---|---|---|
|
#18+
Подключаюсь 2умя пользователями исполняю простые селекты типа @select * from table" после выполнения N ого кол-ва запросов программа вываливается и в тоже время умирает сервер постгрес. Пожалуста, сообщите, если есть идеи как победить данную проблему или изза чего она может возникать. Сервер 2 Хеона памяти 3 гига About 3G of shared memory is allocated to PG, 850000 shared_buffers. TopMemoryContext: 32768 total in 3 blocks; 20024 free (22 chunks); 12744 used TopTransactionContext: 8192 total in 1 blocks; 8136 free (0 chunks); 56 used DeferredTriggerXact: 0 total in 0 blocks; 0 free (0 chunks); 0 used MessageContext: 253952 total in 5 blocks; 87568 free (3 chunks); 166384 used PortalMemory: 8192 total in 1 blocks; 8040 free (0 chunks); 152 used PortalHeapMemory: 1024 total in 1 blocks; 936 free (0 chunks); 88 used ExecutorState: 24576 total in 2 blocks; 40 free (1 chunks); 24536 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used CacheMemoryContext: 1040384 total in 7 blocks; 496440 free (1 chunks); 543944 used my_table_grps_pkey: 1024 total in 1 blocks; 640 free (0 chunks); 384 used my_dic_countries_pkey: 1024 total in 1 blocks; 640 free (0 chunks); 384 used my_table_pkey: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_constraint_conrelid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used my_places_childplaces_pkey: 1024 total in 1 blocks; 640 free (0 chunks); 384 used my_places_pkey: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_index_indrelid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_attrdef_adrelid_adnum_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_amop_opc_strategy_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_shadow_usename_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_amop_opr_opc_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_conversion_oid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_language_name_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_statistic_relid_att_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_attribute_relid_attnam_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_shadow_usesysid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_cast_source_target_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_conversion_name_nsp_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_trigger_tgrelid_tgname_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_namespace_nspname_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_conversion_default_index: 2048 total in 1 blocks; 704 free (0 chunks); 1344 used pg_class_relname_nsp_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_aggregate_fnoid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_inherits_relid_seqno_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_language_oid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_type_typname_nsp_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_group_sysid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_namespace_oid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_proc_proname_army_nsp_index: 2048 total in 1 blocks; 704 free (0 chunks); 1344 used pg_opclass_am_name_nsp_index: 2048 total in 1 blocks; 768 free (0 chunks); 1280 used pg_group_name_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_proc_oid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_operator_oid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_amproc_opc_procnum_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_index_indexrelid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_operator_oprname_l_r_n_index: 2048 total in 1 blocks; 704 free (0 chunks); 1344 used pg_opclass_oid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_rewrite_rel_rulename_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_type_oid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used pg_attribute_relid_attnum_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used pg_class_oid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used MdSmgr: 8192 total in 1 blocks; 6120 free (0 chunks); 2072 used DynaHash: 8192 total in 1 blocks; 7064 free (0 chunks); 1128 used DynaHashTable: 8192 total in 1 blocks; 5080 free (0 chunks); 3112 used DynaHashTable: 8192 total in 1 blocks; 2008 free (0 chunks); 6184 used DynaHashTable: 8192 total in 1 blocks; 1984 free (0 chunks); 6208 used DynaHashTable: 8192 total in 1 blocks; 3520 free (0 chunks); 4672 used DynaHashTable: 24576 total in 2 blocks; 13240 free (4 chunks); 11336 used DynaHashTable: 0 total in 0 blocks; 0 free (0 chunks); 0 used DynaHashTable: 0 total in 0 blocks; 0 free (0 chunks); 0 used DynaHashTable: 0 total in 0 blocks; 0 free (0 chunks); 0 used DynaHashTable: 0 total in 0 blocks; 0 free (0 chunks); 0 used DynaHashTable: 0 total in 0 blocks; 0 free (0 chunks); 0 used ErrorContext: 8192 total in 1 blocks; 8176 free (3 chunks); 16 used ERROR: out of memory DETAIL: Failed on request of size 104. LOG: could not fork new process for connection: Cannot allocate memory ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.07.2004, 18:38 |
|
||
|
could not fork new process for connection: Cannot allocate memory
|
|||
|---|---|---|---|
|
#18+
VermutПожалуста, сообщите, если есть идеи как победить данную проблему или изза чего она может возникать. вот из-за этого и может возникать: Vermut памяти 3 гига About 3G of shared memory is allocated to PG, 850000 shared_buffers выдай ему на shared_buffers мегабайт 256, не больше. соответственно цифирка должна быть 32768. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.07.2004, 02:17 |
|
||
|
could not fork new process for connection: Cannot allocate memory
|
|||
|---|---|---|---|
|
#18+
Sad Spiritвыдай ему на shared_buffers мегабайт 256, не больше. соответственно цифирка должна быть 32768. В некотором роде помогло - перестала выпадать ошибка о нехватке памяти. Но сервер все равно падает: LOG: server process (PID 15346) was terminated by signal 11 LOG: terminating any other active server processes WARNING: terminating connection because of crash of another server process DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. HINT: In a moment you should be able to reconnect to the database and repeat your command. WARNING: terminating connection because of crash of another server process DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.07.2004, 12:45 |
|
||
|
could not fork new process for connection: Cannot allocate memory
|
|||
|---|---|---|---|
|
#18+
Гмм Наверное админ что-то еще забыл востановить в postgresql.conf Какие еще параметры менялись? Вернись к конфигу который генерил initdb добавив там только подключение через tcpip. На устойчивом железе и ОС PG c таким конфигом стопроцентно запускается. А потом уже можно и экспериментами заняться (главное чтоб потом пользователи сильно не били 8-) ) Удачи! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.07.2004, 19:23 |
|
||
|
could not fork new process for connection: Cannot allocate memory
|
|||
|---|---|---|---|
|
#18+
Signal 11 --- это Segfault вроде бы... Где-то я в списках рассылки вроде бы видел что-то по поводу проблем с Xeon'ами. Поищи. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.07.2004, 20:36 |
|
||
|
could not fork new process for connection: Cannot allocate memory
|
|||
|---|---|---|---|
|
#18+
11 - это Segmentation Fault мож с памятью что-то,хотя врятли навярняка registered ,какая OS и какой PG7.??.?? у меня PG7.4.3 FreeBSD 4.9 на 2xXeon 1Gram за полгода аптайма глюков не замечанно ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.07.2004, 10:52 |
|
||
|
|

start [/forum/topic.php?fid=53&gotonew=1&tid=2007758]: |
0ms |
get settings: |
6ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
64ms |
get topic data: |
10ms |
get first new msg: |
5ms |
get forum data: |
2ms |
get page messages: |
53ms |
get tp. blocked users: |
1ms |
| others: | 230ms |
| total: | 391ms |

| 0 / 0 |
