Seite 1 von 3 123 LetzteLetzte
Ergebnis 1 bis 10 von 21

Thema: PostgreSQL stürzt ab

  1. #1
    CenText ist offline Erfahrener Benutzer
    Registriert seit
    29.07.2007
    Beiträge
    220

    Standard PostgreSQL stürzt ab

    Hi Jungs,

    und zwar hab ich einen Windows 2003 Server, PostgreSQL (intel Quad 2,4, 4 GB RAM)

    Folgende Änderungen hab ich vorgenommen:

    max_connections=500
    shared_buffers=128MB


    So, nach einer bestimmten Zeit, (Server Auslastung bei 30%) stoppt einfach der PostgreSQL Service, den ich dann neu starten muss.

    Hat jemand eine Idee wo man dem Problem näher kommen kann?

    Würde mich über ein paar Ideen freuen.

    Gruß Centext

  2. #2
    dasblauehandtuch ist offline Benutzer
    Registriert seit
    04.12.2007
    Beiträge
    86

    Standard

    hmm,
    gibts unter windows belastbare logfiles?
    was sagt denn die ereignisanzeige und das postgres log?
    explain analyze is your friend

  3. #3
    CenText ist offline Erfahrener Benutzer
    Registriert seit
    29.07.2007
    Beiträge
    220

    Standard

    hmm, meine Loggs sagen "Exit code 3"

    Log:
    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 LOG: database system was interrupted at 2008-01-04 16:04:30

    2008-01-04 16:41:38 LOG: could not open file "pg_xlog/000000010000000800000018" (log file 8, segment 24): No such file or directory

    2008-01-04 16:41:38 LOG: invalid primary checkpoint record

    2008-01-04 16:41:38 LOG: could not open file "pg_xlog/000000010000000800000015" (log file 8, segment 21): No such file or directory

    2008-01-04 16:41:38 LOG: invalid secondary checkpoint record

    2008-01-04 16:41:38 PANIC: could not locate a valid checkpoint record

    2008-01-04 16:41:38 FATAL: the database system is starting up




    This application has requested the Runtime to terminate it in an unusual way.

    Please contact the application's support team for more information.


    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 LOG: startup process (PID 4084) exited with exit code 3

    2008-01-04 16:41:38 LOG: aborting startup due to startup process failure

    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:38 FATAL: the database system is starting up

    2008-01-04 16:41:39 LOG: logger shutting down

    Geändert von CenText (04.01.2008 um 16:49 Uhr)

  4. #4
    CenText ist offline Erfahrener Benutzer
    Registriert seit
    29.07.2007
    Beiträge
    220

    Standard

    Ahh, nachdem ich mit den Werten max_connections und shared_buffers rumgespielt habe funktioniert gar nix mehr. Datenbank lässt sich gar nicht mehr starten, selbst die org. postgres.conf funktioniert nicht.

    Letzte Log-Version:
    2008-01-04 16:52:01 LOG: database system was interrupted at 2008-01-04 16:04:30

    2008-01-04 16:52:01 LOG: could not open file "pg_xlog/000000010000000800000018" (log file 8, segment 24): No such file or directory

    2008-01-04 16:52:01 LOG: invalid primary checkpoint record

    2008-01-04 16:52:01 LOG: could not open file "pg_xlog/000000010000000800000015" (log file 8, segment 21): No such file or directory

    2008-01-04 16:52:01 LOG: invalid secondary checkpoint record

    2008-01-04 16:52:01 PANIC: could not locate a valid checkpoint record




    This application has requested the Runtime to terminate it in an unusual way.

    Please contact the application's support team for more information.


    2008-01-04 16:52:01 LOG: startup process (PID 4068) exited with exit code 3

    2008-01-04 16:52:01 LOG: aborting startup due to startup process failure

    2008-01-04 16:52:01 FATAL: the database system is starting up

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    FATAL: could not reattach to shared memory (key=5432001, addr=01370000): No such file or directory

    2008-01-04 16:52:02 LOG: logger shutting down
    Kann jemand helfen?

  5. #5
    akretschmer ist offline Super-Moderator
    Registriert seit
    29.10.2006
    Ort
    Dresden
    Beiträge
    5.468

    Standard

    Zitat Zitat von CenText Beitrag anzeigen
    Hi Jungs,

    und zwar hab ich einen Windows 2003 Server, PostgreSQL (intel Quad 2,4, 4 GB RAM)

    Folgende Änderungen hab ich vorgenommen:

    max_connections=500
    shared_buffers=128MB


    So, nach einer bestimmten Zeit, (Server Auslastung bei 30%) stoppt einfach der PostgreSQL Service, den ich dann neu starten muss.

    Hat jemand eine Idee wo man dem Problem näher kommen kann?

    Würde mich über ein paar Ideen freuen.

    Gruß Centext
    Damit überforderst Du Windows.
    Re: 8.2.3: Server crashes on Windows using Eclipse/Junit

    Solltest Du wirklich so viele Verbindungen benötigen, wäre ein Wechsel des OS angeraten.


    Andreas
    --
    ads Das hatte dir akretschmer gestern schon gesagt und siehe da sobald du das machst, funktioniert es ;-)
    https://www.xing.com/profile/Andreas_Kretschmer7

  6. #6
    CenText ist offline Erfahrener Benutzer
    Registriert seit
    29.07.2007
    Beiträge
    220

    Standard

    Okay Ubuntu 64 sollte okay sein?

    PS: hab gerade unter Windows versucht per pg_resetxlog -f data die datenbank erneut zu starten.

    So nun geht sie wieder, aber die Tabellen und datenbanken sind teilweise alle Weg.......

  7. #7
    CenText ist offline Erfahrener Benutzer
    Registriert seit
    29.07.2007
    Beiträge
    220

    Standard

    Ahhhh 10GB Daten weg

  8. #8
    akretschmer ist offline Super-Moderator
    Registriert seit
    29.10.2006
    Ort
    Dresden
    Beiträge
    5.468

    Standard

    Zitat Zitat von CenText Beitrag anzeigen
    Ahhhh 10GB Daten weg
    Das ist bitter, aber zum Glück hast Du ja ein Backup.

    Andreas
    --
    ads Das hatte dir akretschmer gestern schon gesagt und siehe da sobald du das machst, funktioniert es ;-)
    https://www.xing.com/profile/Andreas_Kretschmer7

  9. #9
    CenText ist offline Erfahrener Benutzer
    Registriert seit
    29.07.2007
    Beiträge
    220

    Standard

    Das Stimmt. Wie regelt man eig. ein Backup von über 30 GB? Über das standard Dump Verfahren? Dauert doch teilweise ewig ein solches backup zu machen? Und dafür liegt ja dann die gesamte DB auf Ice?

  10. #10
    akretschmer ist offline Super-Moderator
    Registriert seit
    29.10.2006
    Ort
    Dresden
    Beiträge
    5.468

    Standard

    Zitat Zitat von CenText Beitrag anzeigen
    Das Stimmt. Wie regelt man eig. ein Backup von über 30 GB? Über das standard Dump Verfahren? Dauert doch teilweise ewig ein solches backup zu machen? Und dafür liegt ja dann die gesamte DB auf Ice?
    PostgreSQL: Documentation: Manuals: PostgreSQL 8.2: Continuous Archiving and Point-In-Time Recovery (PITR)

    Andreas
    --
    ads Das hatte dir akretschmer gestern schon gesagt und siehe da sobald du das machst, funktioniert es ;-)
    https://www.xing.com/profile/Andreas_Kretschmer7

Seite 1 von 3 123 LetzteLetzte

Ähnliche Themen

  1. Problem Beim Start vom SQL-Editor stürzt pgAdmin ab
    Von Tom im Forum PGAdmin
    Antworten: 5
    Letzter Beitrag: 03.11.2010, 14:30
  2. PgAdmin stürzt ab bei Timeout (Ubuntu)
    Von Thomas_M im Forum PGAdmin
    Antworten: 4
    Letzter Beitrag: 30.01.2010, 18:59
  3. Problem Postgres 8.3 stürzt einfach ab
    Von JaX1983 im Forum Allgemeines
    Antworten: 4
    Letzter Beitrag: 16.04.2009, 10:40
  4. Antworten: 1
    Letzter Beitrag: 14.08.2006, 10:12

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

Links: Tobias Bauer - IT- und Funkdienstleistungen   -   Bilderrahmen-kaufen.de - Der Onlineshop für Bilderrahmen & Fotorahmen   -   Funkforum