Out of Memory Probleme bei einem bytea Feld

From: Oliver Baer <oliver(dot)baer(at)presswatch(dot)de>
To: "pgsql-de-allgemein(at)postgresql(dot)org" <pgsql-de-allgemein(at)postgresql(dot)org>
Subject: Out of Memory Probleme bei einem bytea Feld
Date: 2007-09-04 15:24:58
Message-ID: 46DD78CA.20208@presswatch.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-de-allgemein

Hallo Liste,

ich hab hier ein kleines Problem mit unserer PSQL Datenbank. Wir haben
ein Uploadtool welches die hochgeladenen Dateien in der Datenbank in
einem Feld vom Typ bytea speichert.

In letzter Zeit können wir nur noch kleinere Dateien hochladen, vor ner
Woche 5 MB, heute morgen nur noch 3 MB und nun steigt der schon bei <
1MB aus.

Immer mit der Fehlermeldung
PDOException' with message 'SQLSTATE[53200]: Out of memory: 7 ERROR: out
of memory DETAIL: Failed on request of size 16777216.'

Gibts da irgendwelche Lösungen? Hab das gefühl der Speicher läuft
einfach irgendwann voll, was aber komisch ist.

Datenbankserver ist Solaris SunOS 5.10, Postgres Version: psql 8.1.9
(server 8.2.0).
Nochmal ein Auszug aus dem Top

load averages: 1.52, 1.72, 1.76; up 285+00:43:12
17:20:21
55 processes: 53 sleeping, 2 on cpu
CPU states: % idle, % user, % kernel, % iowait, % swap
Memory: 8064M phys mem, 2206M free mem, 16G swap, 16G free swap

PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
12755 pgsql 1 59 0 3871M 3865M sleep 320:56 0.00% postgres
15491 pgsql 1 59 0 11M 4140K sleep 180:54 0.00% postgres
12760 pgsql 1 59 0 7296K 984K sleep 65:29 0.00% postgres
129 daemon 5 59 0 4588K 2388K sleep 51:24 0.00% kcfd
9 root 15 59 0 9428K 3528K sleep 33:55 0.00% svc.configd
15489 pgsql 1 60 0 3873M 3867M sleep 23:06 0.00% postgres
22137 nrpe 1 59 0 1740K 892K sleep 19:30 0.00% nrpe
22400 root 30 59 0 4060K 2680K sleep 12:13 0.00% nscd
5604 root 1 100 -20 1956K 1228K sleep 11:11 0.00% xntpd
29023 daemon 2 60 -20 2152K 1048K sleep 8:31 0.00% nfsd
251 root 3 59 0 4064K 1768K sleep 7:25 0.00% inetd
5440 root 1 59 0 6600K 1500K sleep 6:29 0.00% sendmail
29010 daemon 4 59 0 693M 432M sleep 6:26 0.00% nfsmapid
23714 root 1 59 0 3336K 1104K sleep 4:39 0.00% sshd
308 root 1 59 0 2904K 1408K sleep 4:19 0.00% rpc.metad

Auf der Kiste läuft eigentlich nur der Postgres, sonst nix grosses weiter.

Danke schonmal für eure Hilfe.

Gruss,

Oli

--
Oliver Baer

Entwicklung
PressWatch GmbH
Telemannstr. 56a
20255 Hamburg

Tel: +49.40.37 85 48-60
Fax: +49.40.37 85 48-20
oliver(dot)baer(at)presswatch(dot)de
www.presswatch.de
www.presswatch.eu

Geschäftsführer: Jörg Kramer
Amtsgericht Hamburg: HRB 101855

This message (including any attachments) contains information that may be confidential and/or privileged. It is intended only for the person(s) to whom it is addressed.

If you are not the intended recipient, please notify the sender by replying to this message with "Received in error" as the subject and thendelete it from your mailbox.

If you are not the intended recipient, you are not authorized to read, print, retain, copy or disseminate this message or any part of it, and any unauthorized use may be unlawful.

The sender is not responsible for the accuracy or completeness of this message when it has been transmitted over a public network, as Internet
communication is not secure.

Responses

Browse pgsql-de-allgemein by date

  From Date Subject
Next Message Christian Voelker 2007-09-04 15:53:28 Re: Out of Memory Probleme bei einem bytea Feld
Previous Message Christian Voelker 2007-09-04 15:20:56 Re: Permanentbackup, alles ohne Unterbrechung des Betriebs