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

Home Posts Topics Members FAQ

Performance failure / automatic restart / cron ?


I have this notorious problem: at some point pgsql simply hangs up and
requires a restart.

---------------------------------------------------------------------------
-------
homer:/usr/share/doc/postgresql-contrib# /etc/init.d/postgresql restart
Restarting PostgreSQL database: postmaster
Stopped /usr/lib/postgresql/bin/postmaster (pid 14243 14245 14247 14750
14811 1489 15569 15570 15573 15584 15643 15644 15665 15800 15801
15804 15817 15874 16072 20473 20474 20549 20763).
Starting PostgreSQL postmaster.
postmaster successfully started
....
homer:/usr/share/doc/postgresql-contrib#
---------------------------------------------------------------------------
-------

Whenever i restart the server i get a long list of pid's - sometimes its many
lines.

I wrote a little script to restart, vacuum and analyze the database. And
although the script runs, there are no results. i have to restart the db
manualy...
ive seen a post about vacuum an analyze not working from the cron,
unfortunately there was no solution.

Ill be happy with any ideas - in the last week the db required me to have it
restarted once a day which is not very convenient.

I realize my app is very resource hungry but the thing is that it works great
with mysql. The problem occurs only with pgsql which i realy need.

Best regards,
Piotr


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postg resql.org

Nov 12 '05 #1
1 2213
Question? Why are you restarting the postmaster? If you're getting a lot of
PIDs that means you have a lot of connections open. What are you doing to
use so many connections? Did you increase the max_connections variable?

Please supply more details of your actual problem. Perhaps a 'ps aux'
output.

Hope this helps,

On Sat, Oct 25, 2003 at 04:57:30PM +0200, Piotr Trawi?ski wrote:

I have this notorious problem: at some point pgsql simply hangs up and
requires a restart.

---------------------------------------------------------------------------
-------
homer:/usr/share/doc/postgresql-contrib# /etc/init.d/postgresql restart
Restarting PostgreSQL database: postmaster
Stopped /usr/lib/postgresql/bin/postmaster (pid 14243 14245 14247 14750
14811 1489 15569 15570 15573 15584 15643 15644 15665 15800 15801
15804 15817 15874 16072 20473 20474 20549 20763).
Starting PostgreSQL postmaster.
postmaster successfully started
...
homer:/usr/share/doc/postgresql-contrib#
---------------------------------------------------------------------------
-------

Whenever i restart the server i get a long list of pid's - sometimes its many
lines.

I wrote a little script to restart, vacuum and analyze the database. And
although the script runs, there are no results. i have to restart the db
manualy...
ive seen a post about vacuum an analyze not working from the cron,
unfortunately there was no solution.

Ill be happy with any ideas - in the last week the db required me to haveit
restarted once a day which is not very convenient.

I realize my app is very resource hungry but the thing is that it works great
with mysql. The problem occurs only with pgsql which i realy need.

Best regards,
Piotr






---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postg resql.org
--
Martijn van Oosterhout <kl*****@svana. org> http://svana.org/kleptog/ "All that is needed for the forces of evil to triumph is for enough good
men to do nothing." - Edmond Burke
"The penalty good people pay for not being interested in politics is to be
governed by people worse than themselves." - Plato


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/mpclY5Twig3Ge+Y RAiI9AJ98HGe9LY 2osNblZ/CljrVN7n0WQQCeI pGB
uLWoQO6XsbENa1W zCG+mIPQ=
=qzHj
-----END PGP SIGNATURE-----

Nov 12 '05 #2

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

Similar topics

4
2519
by: David Hickman | last post by:
Hi all, I have a website that I am building in PHP that I would like to send e-mails to users every 2 days to inform of new updates. I know how to trigger the sending of e-mails if a user enters the site, and can limit this to only happening once every 2 days, but I am interested to know if it is possible to have PHP send e-mails...
5
3207
by: anr | last post by:
Hi everyone, I have made a solution where a user is added to the system and a folder is set up for him. In order to make the folder webDAV accessible for him I have to add some lines to the current httpd.conf file and restart the webserver. Is this possible to do from my php script - or even advisable? I could envision an alternative...
3
2759
by: JP SIngh | last post by:
Is there a way to automatically execute code in ASP? I need to send reminders for one my applications and need some suggestions how I can send reminder emails automatically. Many thanks
0
1830
by: HJ | last post by:
The Windows platform provides a mechanism to automatically restart a service when a failure occurs in the 'Recovery' tab in the services panel. It allows you to specify actions on first, second and subsequent failures. My question is this: How does my C# service indicate to windows that it is stopping because of a failure, so I can use...
2
2108
by: ray | last post by:
I have a client that doesn't want Access to automatically repair into a backup file if it crashes (and it crashes only on very rare occasions). My (sketchy) understanding is that this is a Windows function that can't be stopped by using runtime switches, advanced options or other hi-falutin' database properties. Ami I correct that the...
7
4988
RedSon
by: RedSon | last post by:
Hi guys, I don't really know anything about cron jobs but I need something that will check to make sure my mysql server is up and running every few minutes or so. Or maybe one that can detect if the mysql process died and restart it. I also need to make sure that it is set to come on line after a reboot. I'm running Ubuntu Feisty. Mysql Ver...
1
2698
by: symbioid | last post by:
Hello, I'm working on a project, and VMware has problems with suspending the virtual machine. We are accessing the machine through samba. However, when I suspend the VM, it stops the Samba service. The solution we hit upon was to run a script that checks, say, once a minute to determine whether the machine was active or suspended. If...
0
1342
by: =?Utf-8?B?ZmliYw==?= | last post by:
I had to re-install Windows Xp Home Edition. after restart, automatic update informed me that 84 updates did not install. Every time I shut down and later restrt, the same 84 updates are in the tqask bar. I tired custom install hoping to install a few at a time, however no matter how many I try to install, they are fail. Any suggestions?
6
3287
by: chazzy69 | last post by:
Ok two questions- First is it possible to replicate javascripts automatic submit with a php function, i want to do this due to the fact we i run a cron job it wont run javascript. Second If the above is not possible i need to transfer information from the intial page to another another .php and acts similar to the php form in that when u hit...
0
7459
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
7393
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
7803
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5965
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5322
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4942
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
3444
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
1871
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
0
695
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.