Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: statistics ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 8 Topic 15488 of 17437
Post > Topic >>

Re: statistics collector process is thra****ng my cpu

by magnus@[EMAIL PROTECTED] (Magnus Hagander) May 8, 2008 at 11:37 AM

William Temperley wrote:
> Dear All
> 
> Sometimes postgres.exe will thrash one of the cores and won't stop
> until I kill the process. I know it's the statistics collector as I
> get this message when I kill the process:
> "statistics collector process (PID 172) exited with exit code 1"
> Nothing other than this app is accessing my PG server.
> 
> I'm developing a web mapping application which retrieves point data
> via multiple statements like this:
> 
>  select xmlelement(name "amr:mapFeatureType",
> xmlattributes(featuretype as name),xmlagg(
> 				xmlelement(name "amr:mapFeature",
> xmlforest(y(the_geom) as "amr:latitude", x(the_geom) as
> "amr:longitude", lable as "amr:description"))
> 				))
> 	        from (select featuretype, the_geom, lable from poi
> 	                WHERE the_geom && setsrid(
> 	                        'BOX3D(-5.625 52.482780222078205,0
> 55.7765730186677)'::box3d, 4326)
> 	                and featureclass = 'layer3'
> 	                limit 15) as ss
> 	         group by ss.featuretype
> 
> I don't even know why this process would run anyway, as I haven't
> updated the database for weeks (it's only a dummy dataset).
> 
> I'm also getting hundreds of these messages in a few hours work:
> 2008-05-08 09:22:56 BST LOG:  loaded library
> "$libdir/plugins/plugin_debugger.dll"
> 2008-05-08 09:22:56 BST LOG:  loaded library
> "$libdir/plugins/plugin_debugger.dll"
> Why would it load it twice within the same second?

You get one of those everytime you start a new backend.


> Select version() - "PostgreSQL 8.3.1, compiled by Visual C++ build
> 1400" Machine - XP sp2, core 2 duo 7250 laptop
> 
> The only non 'out of the box' setting I've changed in postgresql.conf
> is: log_statement = 'all'
> 
> Any ideas why this might be happening, and how I can stop it?

It'd be interesting to know what the stats collector is actually doing.
Could you, using Process Explorer or a debugger, get a stack trace from
that process while it's in the tra****ng state?

//Magnus

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 8 Posts in Topic:
statistics collector process is thrashing my cpu
willtemperley@[EMAIL PROT  2008-05-08 10:29:05 
Re: statistics collector process is thrashing my cpu
magnus@[EMAIL PROTECTED]   2008-05-08 11:37:01 
Re: statistics collector process is thrashing my cpu
willtemperley@[EMAIL PROT  2008-05-08 11:20:14 
Re: statistics collector process is thrashing my cpu
magnus@[EMAIL PROTECTED]   2008-05-08 19:14:34 
Re: statistics collector process is thrashing my cpu
willtemperley@[EMAIL PROT  2008-05-08 23:55:56 
Re: statistics collector process is thrashing my cpu
magnus@[EMAIL PROTECTED]   2008-05-09 15:55:16 
Re: statistics collector process is thrashing my cpu
magnus@[EMAIL PROTECTED]   2008-05-23 15:33:38 
Re: statistics collector process is thrashing my cpu
willtemperley@[EMAIL PROT  2008-05-26 21:36:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 12:02:54 CST 2008.