Results 1 to 9 of 9
  1. #1

    server goes down for few minutes

    Hi,
    I have a dedicated server with apache and postgres, the problem is that the server goes down for a few minutes every once in a while and then is up again without taking any measures. it has linux 9 and company email is also on the same server. I have no idea why it slows down and gets offline and online.
    I would really appreciate any help in this matter.

  2. #2
    Join Date
    Dec 2003
    Location
    Brisbane, Queensland, Australia
    Posts
    550
    can you check your /var/log/messages and see if there are any messages in there that states what is happening to apache or postgres.

  3. #3
    No there is no hint of anything happening to the server in the logs. Can this be anything to do with kernel? I read it in one of the other posts, but dont actually know what it means.....

  4. #4
    Join Date
    May 2004
    Location
    Blue Springs, Missouri
    Posts
    366
    it might have something to do with the company's router. I've seen places that have problems with their routers locking up when they try to push too much bandwith through them.

  5. #5
    Yes that can be the case, but at this point we dont have much traffic on the server and we dont have more that 80 connection per day. can it be the case that the server goes in the sleep mode when not accesed for a while......its a brand new IBM server,

  6. #6
    Join Date
    May 2004
    Location
    Blue Springs, Missouri
    Posts
    366
    I've never had any problems with a default redhat 9 install doing ANYTHING even anywhere close to that. You might run a network monitor on it, and just see what it's really doing....

  7. #7
    well ill do that, one more thing.., my postgres dosent release the connection, as the php pages are not releasing the connection, so because of this, there are large number of idle postgres connection as the time goes, i restart postgres every evening and give it 128 bit connection limit. can this idle connections cause the server to stop responding,
    In anycase do you have any way i can stop this from happening, I have no idea how to make postgres and php release the connection once the user moves to new page....

  8. #8
    either use pg_close() or use pg_pconnect and have persistent connections (new users reuse old connections).

  9. #9
    is there any code which i can put on php pages that will make them leave the connection to the database?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •