Unix Technical Forum

RE: Find a query using very CPU

This is a discussion on RE: Find a query using very CPU within the Informix forums, part of the Database Server Software category; --> This works for me on sysmaster Database. select avg(sqx_estcost) avg_estcost, count(*) num, sqx_sqlstatement from syssqexplain group by 3 having ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 12:30 PM
Jose da Fonseca
 
Posts: n/a
Default RE: Find a query using very CPU

This works for me on sysmaster Database.



select avg(sqx_estcost) avg_estcost, count(*) num, sqx_sqlstatement

from syssqexplain

group by 3

having avg(sqx_estcost) > 100

order by 1 desc;



only looks at currently running sql on database. Pinched it off the net
somewhere so cannot give anyone any credit for it

a it don't remember where it was.



__________________________________________________ ______________________
________

If you can find such a process in OS enviroment with Tool2, you may
also do the same.
1. find the process (onstat -g ses , or using SMI db)
2. find it with Tool2



On 7/6/06, Cristiano Torres <cristiano@wpd.com.br> wrote:


Hello,

someone know How can I find query using very CPU the Informix ?

Thanks

Cristiano
__________________________________________________ ______________




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:11 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com