728x90
Question
How to isolate High CPU usage for Informix?
Looking at the OS statistics, sometimes it can be observed that 'oninit' process(es) corresponding to the configured CPU-class virtual processors, use an high percentage of the server CPU
.
Such high CPU usage events are short peaks and not the normal condition.
Here are a few ways to associate to each Informix running session the amount of CPU that is being used by it.
Answer
- You can do onstat -u to get session ids then onstat -g ses <sessionid> to
get threads. Finally do onstat -g ath to list threads and and look at the ones which have a status of running. - You can see active threads with 'onstat -g act -r 2'. This will show you active
threads every 2 seconds. If you will see same thread repeatedly, then you can
use value of 'rstcb' column of previous output to catch session:
onstat -u | grep value_of_rstcb
Then you can get sql causing high CPU utilization with onstat -g ses session_id"
http://www-01.ibm.com/support/docview.wss?uid=swg21617121&myns=swgimgmt&mynp=OCSSGU8G&mync=E
728x90
'Informix > informix reference' 카테고리의 다른 글
Using Informix Dynamic Server backup and restore filters (0) | 2013.01.15 |
---|---|
How to check the real memory used by locks in different Informix Server versions (0) | 2012.11.18 |
Adding logical logs in a HDR pair environment (0) | 2012.11.15 |
Changing Primary and Secondary server types in HDR (0) | 2012.11.07 |
Client based DBaccess Availability (0) | 2012.10.30 |