473,545 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

7.3.4 vacuum/analyze error


I'm getting a slew of these repeatable errors when running ANALYZE
and/or VACUUM ANALYZE (from an autovacuum process) against a
7.3.4 cluster on HP-UX B.11.00:

2004-09-29 18:14:53.621 [520] ERROR: Memory exhausted in AllocSetAlloc(1 189)

This error is in the FAQ, but that answer does not appear applicable.
The error is occurring on 2 different databases, on multiple tables,
and all tables involved are frequently updated.

Any clues?

Here's an example with more context:

2004-09-29 18:20:55.426 [3728] LOG: query: ANALYZE audit
TopMemoryContex t: 32792 total in 4 blocks; 11664 free (23 chunks); 21128 used
TopTransactionC ontext: 8192 total in 1 blocks; 8176 free (0 chunks); 16 used
DeferredTrigger Xact: 0 total in 0 blocks; 0 free (0 chunks); 0 used
TransactionComm andContext: 8192 total in 1 blocks; 8176 free (9 chunks); 16 used
QueryContext: 8192 total in 1 blocks; 7440 free (1 chunks); 752 used
Analyze: 132263832 total in 27 blocks; 2984 free (35 chunks); 132260848 used
Vacuum: 8192 total in 1 blocks; 8152 free (0 chunks); 40 used
DeferredTrigger Session: 0 total in 0 blocks; 0 free (0 chunks); 0 used
PortalMemory: 8192 total in 1 blocks; 8176 free (0 chunks); 16 used
CacheMemoryCont ext: 516096 total in 6 blocks; 170872 free (1 chunks); 345224 used
pg_index_indrel id_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_toast_16410_ index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_stat_all_tab les: 19456 total in 19 blocks; 216 free (0 chunks); 19240 used
pg_settings: 5120 total in 5 blocks; 336 free (0 chunks); 4784 used
pg_conversion_o id_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_index_indexr elid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_shadow_usesy sid_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_group_name_i ndex: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_opclass_am_n ame_nsp_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_cast_source_ target_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_language_nam e_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_type_oid_ind ex: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_language_oid _index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_amop_opc_str ategy_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_statistic_re lid_att_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_amproc_opc_p rocnum_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_class_oid_in dex: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_class_relnam e_nsp_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_type_typname _nsp_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_attribute_re lid_attnam_inde x: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_trigger_tgre lid_tgname_inde x: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_conversion_d efault_index: 2072 total in 2 blocks; 712 free (0 chunks); 1360 used
pg_aggregate_fn oid_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_namespace_oi d_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_group_sysid_ index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_attribute_re lid_attnum_inde x: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_shadow_usena me_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_namespace_ns pname_index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_inherits_rel id_seqno_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_operator_oid _index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_conversion_n ame_nsp_index: 1024 total in 1 blocks; 320 free (0 chunks); 704 used
pg_opclass_oid_ index: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_proc_proname _args_nsp_index : 2072 total in 2 blocks; 712 free (0 chunks); 1360 used
pg_proc_oid_ind ex: 1024 total in 1 blocks; 640 free (0 chunks); 384 used
pg_operator_opr name_l_r_n_inde x: 2072 total in 2 blocks; 712 free (0 chunks); 1360 used
pg_amop_opc_opr _index: 1024 total in 1 blocks; 320 free (0 chunks); 704 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; 6112 free (0 chunks); 2080 used
DynaHashTable: 8192 total in 1 blocks; 3016 free (0 chunks); 5176 used
DynaHashTable: 8192 total in 1 blocks; 4040 free (0 chunks); 4152 used
DynaHashTable: 24576 total in 2 blocks; 13240 free (4 chunks); 11336 used
DynaHashTable: 8192 total in 1 blocks; 8176 free (0 chunks); 16 used
DynaHashTable: 8192 total in 1 blocks; 8176 free (0 chunks); 16 used
DynaHashTable: 8192 total in 1 blocks; 8176 free (0 chunks); 16 used
DynaHashTable: 8192 total in 1 blocks; 8176 free (0 chunks); 16 used
DynaHashTable: 8192 total in 1 blocks; 8176 free (0 chunks); 16 used
ErrorContext: 8192 total in 1 blocks; 8176 free (0 chunks); 16 used
2004-09-29 18:20:56.580 [3728] ERROR: Memory exhausted in AllocSetAlloc(1 189)
2004-09-29 18:20:56.580 [3728] LOG: statement: ANALYZE audit
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #1
16 2184
"Ed L." <pg***@bluepolk a.net> writes:
I'm getting a slew of these repeatable errors when running ANALYZE
and/or VACUUM ANALYZE (from an autovacuum process) against a
7.3.4 cluster on HP-UX B.11.00: 2004-09-29 18:14:53.621 [520] ERROR: Memory exhausted in AllocSetAlloc(1 189) Analyze: 132263832 total in 27 blocks; 2984 free (35 chunks); 132260848 used


Either increase your per-process memory limit, or reduce the statistics
targets for this table ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #2
On Wednesday September 29 2004 5:17, Tom Lane wrote:
"Ed L." <pg***@bluepolk a.net> writes:
I'm getting a slew of these repeatable errors when running ANALYZE
and/or VACUUM ANALYZE (from an autovacuum process) against a
7.3.4 cluster on HP-UX B.11.00:

2004-09-29 18:14:53.621 [520] ERROR: Memory exhausted in
AllocSetAlloc(1 189)

Analyze: 132263832 total in 27 blocks; 2984 free (35 chunks); 132260848
used


Either increase your per-process memory limit, or reduce the statistics
targets for this table ...


What am I missing?

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 131072
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks ) 4194303
nofiles(descrip tors) 120

$ psql -c "select name, setting from pg_settings" | egrep stats_
stats_block_lev el | off
stats_command_s tring | off
stats_reset_on_ server_start | on
stats_row_level | off
stats_start_col lector | on

$ psql -c "analyze audit"
ERROR: Memory exhausted in AllocSetAlloc(1 189)
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #3
On Wednesday September 29 2004 8:33, Ed L. wrote:
On Wednesday September 29 2004 5:17, Tom Lane wrote:
"Ed L." <pg***@bluepolk a.net> writes:
I'm getting a slew of these repeatable errors when running ANALYZE
and/or VACUUM ANALYZE (from an autovacuum process) against a
7.3.4 cluster on HP-UX B.11.00:

2004-09-29 18:14:53.621 [520] ERROR: Memory exhausted in
AllocSetAlloc(1 189)

Analyze: 132263832 total in 27 blocks; 2984 free (35 chunks);
132260848 used


Either increase your per-process memory limit, or reduce the statistics
targets for this table ...


What am I missing?

$ ulimit -a
memory(kbytes) unlimited

$ psql -c "select name, setting from pg_settings" | egrep stats_
stats_block_lev el | off
stats_command_s tring | off
stats_reset_on_ server_start | on
stats_row_level | off
stats_start_col lector | on

$ psql -c "analyze audit"
ERROR: Memory exhausted in AllocSetAlloc(1 189)


We actually count on those stats (stats_row_leve l?) in order to effectively
autovacuum based on real changes, so turning them off would not be good.
Is this a bug fixed in a later versions? What might be triggering this?
The only thing I see in common is that all the tables are frequently
updated...

Ed
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 23 '05 #4
"Ed L." <pg***@bluepolk a.net> writes:
Either increase your per-process memory limit, or reduce the statistics
targets for this table ...
What am I missing? $ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 131072 ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^

This is where the limit is coming from ...
$ psql -c "select name, setting from pg_settings" | egrep stats_
stats_block_lev el | off


Those are not the statistics I'm talking about. I was assuming that
you'd done ALTER TABLE SET STATISTICS somewhere along the line, or
changed default_statist ics_target. If you haven't, then this must
be a pretty strange table --- how many columns has it got?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #5
On Wednesday September 29 2004 8:59, Tom Lane wrote:
"Ed L." <pg***@bluepolk a.net> writes:
Either increase your per-process memory limit, or reduce the
statistics targets for this table ...


What am I missing?

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 131072


^^^^^^^^^^^^^^^ ^^^^^^^^^^^^

This is where the limit is coming from ...
$ psql -c "select name, setting from pg_settings" | egrep stats_
stats_block_lev el | off


Those are not the statistics I'm talking about. I was assuming that
you'd done ALTER TABLE SET STATISTICS somewhere along the line, or
changed default_statist ics_target. If you haven't, then this must
be a pretty strange table --- how many columns has it got?


No ALTER TABLE SET STATISTICS being done here, but I do enable
stats_row_level and stats_block_lev el.

The table has 3 columns, one of which contains huge text values. Yes, barf.

Should I change the data size to 'unlimited'? Or just bump it up? And is
it possible to change the data size limit for the postmaster and backends
without restarting them?

Ed


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #6
"Ed L." <pg***@bluepolk a.net> writes:
The table has 3 columns, one of which contains huge text values. Yes, barf.


That shouldn't matter --- ANALYZE actually deliberately ignores
very-wide values so as not to run out of memory.

You sure you haven't changed default_statist ics_target?

I'd think you'd uncovered a memory leak in ANALYZE, except that somebody
else would have found any such thing before now. Which PG version are
you using exactly?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #7
On Wednesday September 29 2004 9:54, Tom Lane wrote:
You sure you haven't changed default_statist ics_target?
Honestly, I don't even know how. How can I check its value to see if
someone else has? What I *do* do is to enable the stats_* stuff in
postgresql.conf , but that's it.
I'd think you'd uncovered a memory leak in ANALYZE, except that somebody
else would have found any such thing before now. Which PG version are
you using exactly?


7.3.4. If it were a leak, this is where I'd expect to find it (massive text
table, frequent updates).

Ed
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postg resql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #8
> Honestly, I don't even know how. How can I check its value to see if
someone else has?


show default_statist ics_target;

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #9
On Wednesday September 29 2004 10:18, Tom Lane wrote:
Honestly, I don't even know how. How can I check its value to see if
someone else has?


$ psql -c "show default_statist ics_target;"
default_statist ics_target
---------------------------
1000
(1 row)

Does that look like its been changed? I know I haven't changed this before.

Ed

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3466
by: Holger Marzen | last post by:
Hi all, the docs are not clear for me. If I want (in version 7.1.x, 7.2.x) to help the analyzer AND free unused space do I have to do a vacuum vacuum analyze or is a
10
3135
by: Stephen | last post by:
Hello, Is it normal for plain VACUUM on large table to degrade performance by over 9 times? My database becomes unusable when VACUUM runs. From reading newsgroups, I thought VACUUM should only slow down by 10% to 15%. Other MVCC databases like MySQL InnoDB can even VACUUM discretely (runs internally). Is it my Linux system or is it...
3
1990
by: Lynn.Tilby | last post by:
The following program produces the output below... It is built with: vrfy_prob: vrfy_prob.cpg /usr/local/pgsql/bin/ecpg -I/usr/local/pgsql/include -o vrfy_prob.c vrfy_prob.cpg gcc -g${DEBUG} -I/usr/include/pgsql -o vrfy_prob -lm -lc -lecpg -lpq vrfy_prob.c I am not using a BEGIN/END block, though the error messages indicate that I am.
5
8105
by: Carmen Gloria Sepulveda Dedes | last post by:
Hello! Can I execute VACUUM ANALYZE from ecpg? How I do that??? /* I do: EXEC SQL VACUUM ANALYZE <table>; But I get error: 'ERROR: VACUUM cannot run inside a transaction block'
6
2606
by: Alex | last post by:
Hi, just a few questions on the Vaccum I run a vacuum analyze on the database every night as part of a maintenance job. During the day I have a job that loads 30-70,000 records into two tables (each 30-70k). This job runs 2-3 times a day; the first time mainly inserts, the 2nd, 3rd time mostly updates.
5
7168
by: Gavin Scott | last post by:
Hi, I'm having a performance problem with a large database table we use with postgres 7.3.4. The table is: db=> \d log Table "public.log" Column | Type | Modifiers ---------+----------+----------- hid | integer |
0
1698
by: Jim Seymour | last post by:
Hi, Environment: PostgreSQL 7.4.2 Locally built with GCC 3.3.1 Solaris 8 (Sparc) I have a relatively simple database created with...
0
1974
by: Rajesh Kumar Mallah | last post by:
Greeting, Will it be an useful feature to be able to vacumm / analyze all tables in a given schema. eg VACUUM schema.* ; at least for me it will be a good feature.
1
1451
by: Klint Gore | last post by:
query is select t2.field4, t1.* from t1 left outer join t2 on t2.field1 = t1.field1 and t2.field2 = t1.field2 There are 55k rows in t1 (103 fields) and 10k in t2 (4 fields, 4 is text). before vacuum analyze the query gave 10k rows like it was doing an inner join. after vacuum analyze gave the full 55k.
0
7467
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7401
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7756
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1879
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
703
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.