Running a perl script against my dev server (pg 7.3.4) that currently runs
fine on the production server. And for some reason Pg always seems to hang
during the process (see below for Top print out). This happens randomily
throughout the script and can be on a SELECT, INSERT, or UPDATE statement,
but doesn't cause the Pg server to go down (which is good). Any
suggestions on where to start looking?
Perl version 5.6.1
---Top print out
4:08pm up 23 days, 4:46, 3 users, load average: 1.00, 1.05, 1.39
78 processes: 75 sleeping, 2 running, 1 zombie, 0 stopped
CPU0 states: 30.4% user, 4.0% system, 0.0% nice, 64.4% idle
CPU1 states: 47.0% user, 3.3% system, 0.0% nice, 49.0% idle
Mem: 513640K av, 505332K used, 8308K free, 0K shrd, 13176K
buff
Swap: 2044056K av, 48624K used, 1995432K free 356028K
cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
16094 postgres 14 0 98.8M 97M 18900 R 85.2 19.4 31:38 postgres:
phatcher mdc_oz [local] SELECT
16655 postgres 9 0 1052 1052 836 R 0.1 0.2 0:00 top
14397 postgres 8 0 1964 1840 1708 S 0.0 0.3 0:00
/usr/local/postgresql7.3.4/bin/postmaster
14398 postgres 9 0 2932 2780 1700 S 0.0 0.5 0:03 postgres:
stats buffer process
14399 postgres 9 0 2168 2016 1704 S 0.0 0.3 0:05 postgres:
stats collector process
16074 postgres 9 0 23836 20M 18884 S 0.0 4.1 16:24 postgres:
phatcher mdc_oz [local] SELECT waiting
16076 postgres 9 0 21792 20M 18916 S 0.0 4.1 644:42 postgres:
phatcher mdc_oz [local] SELECT waiting
16546 postgres 9 0 17988 16M 17208 S 0.0 3.3 0:11 postgres:
phatcher mdc_oz [local] SELECT waiting
16650 postgres 9 0 1332 1332 1060 S 0.0 0.2 0:00 /bin/bash
TIA
Patrick Hatcher
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster 2 2606
""Patrick Hatcher"" <PH******@macys.com> wrote in message
news:OF******************************************* ************@fds.com... Running a perl script against my dev server (pg 7.3.4) that currently runs fine on the production server. And for some reason Pg always seems to
hang during the process (see below for Top print out). This happens randomily throughout the script and can be on a SELECT, INSERT, or UPDATE
statement, but doesn't cause the Pg server to go down (which is good). Any suggestions on where to start looking?
Perl version 5.6.1
---Top print out
4:08pm up 23 days, 4:46, 3 users, load average: 1.00, 1.05, 1.39 78 processes: 75 sleeping, 2 running, 1 zombie, 0 stopped CPU0 states: 30.4% user, 4.0% system, 0.0% nice, 64.4% idle CPU1 states: 47.0% user, 3.3% system, 0.0% nice, 49.0% idle Mem: 513640K av, 505332K used, 8308K free, 0K shrd, 13176K buff Swap: 2044056K av, 48624K used, 1995432K free 356028K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 16094 postgres 14 0 98.8M 97M 18900 R 85.2 19.4 31:38 postgres: phatcher mdc_oz [local] SELECT 16655 postgres 9 0 1052 1052 836 R 0.1 0.2 0:00 top 14397 postgres 8 0 1964 1840 1708 S 0.0 0.3 0:00 /usr/local/postgresql7.3.4/bin/postmaster 14398 postgres 9 0 2932 2780 1700 S 0.0 0.5 0:03 postgres: stats buffer process 14399 postgres 9 0 2168 2016 1704 S 0.0 0.3 0:05 postgres: stats collector process 16074 postgres 9 0 23836 20M 18884 S 0.0 4.1 16:24 postgres: phatcher mdc_oz [local] SELECT waiting 16076 postgres 9 0 21792 20M 18916 S 0.0 4.1 644:42 postgres: phatcher mdc_oz [local] SELECT waiting 16546 postgres 9 0 17988 16M 17208 S 0.0 3.3 0:11 postgres: phatcher mdc_oz [local] SELECT waiting 16650 postgres 9 0 1332 1332 1060 S 0.0 0.2 0:00 /bin/bash
TIA
Patrick Hatcher ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster
Looks to me like you probably have a bad SELECT holding up all of the
others... Any chance its a "SELECT .. FOR UPDATE ??? that's hung and you
have a transaction open ? That'll cause everything else to wait...
--
Greg Patnude / The Digital Demention
2916 East Upper Hayden Lake Road
Hayden Lake, ID 83835
(208) 762-0762
Patrick,
Can you provide the code (or at least the relevant parts) for us to look at?
Quoting Patrick Hatcher <PH******@macys.com>: Running a perl script against my dev server (pg 7.3.4) that currently runs fine on the production server. And for some reason Pg always seems to hang during the process (see below for Top print out). This happens randomily throughout the script and can be on a SELECT, INSERT, or UPDATE statement, but doesn't cause the Pg server to go down (which is good). Any suggestions on where to start looking?
Perl version 5.6.1
---Top print out
4:08pm up 23 days, 4:46, 3 users, load average: 1.00, 1.05, 1.39 78 processes: 75 sleeping, 2 running, 1 zombie, 0 stopped CPU0 states: 30.4% user, 4.0% system, 0.0% nice, 64.4% idle CPU1 states: 47.0% user, 3.3% system, 0.0% nice, 49.0% idle Mem: 513640K av, 505332K used, 8308K free, 0K shrd, 13176K buff Swap: 2044056K av, 48624K used, 1995432K free 356028K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 16094 postgres 14 0 98.8M 97M 18900 R 85.2 19.4 31:38 postgres: phatcher mdc_oz [local] SELECT 16655 postgres 9 0 1052 1052 836 R 0.1 0.2 0:00 top 14397 postgres 8 0 1964 1840 1708 S 0.0 0.3 0:00 /usr/local/postgresql7.3.4/bin/postmaster 14398 postgres 9 0 2932 2780 1700 S 0.0 0.5 0:03 postgres: stats buffer process 14399 postgres 9 0 2168 2016 1704 S 0.0 0.3 0:05 postgres: stats collector process 16074 postgres 9 0 23836 20M 18884 S 0.0 4.1 16:24 postgres: phatcher mdc_oz [local] SELECT waiting 16076 postgres 9 0 21792 20M 18916 S 0.0 4.1 644:42 postgres: phatcher mdc_oz [local] SELECT waiting 16546 postgres 9 0 17988 16M 17208 S 0.0 3.3 0:11 postgres: phatcher mdc_oz [local] SELECT waiting 16650 postgres 9 0 1332 1332 1060 S 0.0 0.2 0:00 /bin/bash
TIA
Patrick Hatcher ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster
--
Keith C. Perry
Director of Networks & Applications
VCSN, Inc. http://vcsn.com
____________________________________
This email account is being host by:
VCSN, Inc : http://vcsn.com
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: RL |
last post by:
Hello Perl gurus,
1. I have a web page where I can push a button (dospawn.html).
2. This button calls a CGI script (spawnboss.cgi)
3. spawnboss.cgi calls a forking perl script (forkme.pl)
4....
|
by: rtm |
last post by:
I am interested in running a process with a timeout. Also I'm
interested in analyzing the output of this process.
Under Unix, the solution is described clearly in the Perl Cookbook
"16.10: ...
|
by: Scott |
last post by:
So I can't figure out how to Google for this problem, I'll
try asking for a solution here.
Whenever I deploy changes, whether they are changed
code-behind DLL's or ASPX/ASCX/ASAX pages to my...
|
by: Kirk |
last post by:
The following C# web service works fine until you uncomment the lines
setting UserName and Password. Then the process starts as the
specified user, but hangs in a suspended state. In fact, any...
|
by: Alexander Widera |
last post by:
hello,
if i start a program (an exe-file) with Process.Start(...) I don't have the
required permissions that the programm needs (i could start the programm but
the program needs special rights)....
|
by: Podi |
last post by:
Hi,
I am using Python 2.4.4 on Windows XP SP2.
I am trying to start a process (infinite loop application) in the
background and I've tried several options and none of them seem to
work.
...
|
by: test3 |
last post by:
Hello folks,
I'm using System.Diagnostics.Process to start a thirdparty program
(that works perfectly when started via command line). I'm using
Process.StandardOutput to get the output of the...
|
by: Saya |
last post by:
Hi Folks,
I have now spend app. 3 days to get the below scenario to work, but
can not get there!
..Net version = 2.0.50727
Windows version = Microsoft Windows = Windows
Server 2003
Now I...
|
by: Samuel A. Falvo II |
last post by:
I have a shell script script.sh that launches a Java process in the
background using the &-operator, like so:
#!/bin/bash
java ... arguments here ... &
In my Python code, I want to invoke...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
| |