DB2 Tips n Tricks Part 30 - How to Find Which DB2 Thread is consuming High CPU

  Рет қаралды 19,994

DB2-LUW-ACADEMY

DB2-LUW-ACADEMY

10 жыл бұрын

How to Find Which DB2 Thread is consuming High CPU
Solution:
db2pd -edus
Top -Hp db2syscpid
Ps -Lp db2syscpid -o pid,ppid,pcpu,pmem,lwp
Happy Learning & Sharing

Пікірлер: 30
@thiagorossetto7223
@thiagorossetto7223 9 жыл бұрын
Those simple commands can save your life ! Thanks for showing us your technique, Harish !
7 жыл бұрын
Very versy usefull. Thank you for the tutorial :). Your insides from the DB2 to Operating System really helped me! :) Thank you
@DB2LUWAcademy
@DB2LUWAcademy 10 жыл бұрын
Video Tutorial-How to Find Which DB2 Thread is consuming High CPU
@OtavioNunesHC
@OtavioNunesHC 10 жыл бұрын
Excellent explanation. You did not beat around the bush.
@srikanth1910
@srikanth1910 10 жыл бұрын
Nice tip & easy narration.
@swathisuggu
@swathisuggu 6 жыл бұрын
very useful.
@pvsraghuram
@pvsraghuram 9 жыл бұрын
You the man..!
@umavallimurugan5094
@umavallimurugan5094 10 жыл бұрын
Good
@DB2LUWAcademy
@DB2LUWAcademy 10 жыл бұрын
Please subscribe to my channel
@ananthanarayanan8985
@ananthanarayanan8985 10 жыл бұрын
hi .. it was an excellent video.. i just wanted to know if we have the equivalent of top -Hp in Aix ..
@DB2LUWAcademy
@DB2LUWAcademy 10 жыл бұрын
topas command in AIX is similar
@santoshkumar-yg9yc
@santoshkumar-yg9yc 9 жыл бұрын
***** hi..can u tell me what is equivalent command in aix for top -Hp..I have tried it in aix , and it didnt worked.
@fayazkhanmohammed9738
@fayazkhanmohammed9738 10 жыл бұрын
wanted to learn automatic storage database issues as advanced level . is it possible make it please.... Thanq
@sudheeshek
@sudheeshek 9 жыл бұрын
What is the commands in AIX ?top -hp wont work in AIx environment
@sivudu4u
@sivudu4u 9 жыл бұрын
Hi Harish.. I am big fan of your videos. I have question here.. Kindly address this. You said in this video, At 5:39, "From the name of the thread, we can know the functionality of the thread". But in our live prod environments, let say we have multiple db2agent threads(in the above example we have only one that too idle) and one of them consuming more resources,. In that case how can we find exact application handle from the Name of the Thread. Appreciate your response. Thanks.
@DB2LUWAcademy
@DB2LUWAcademy 9 жыл бұрын
sivudu4u Hi Application Snapshot command will have "Agent process/thread ID" correlate it with db2pd -edus will give you the information you are looking for. Welcome.
@ynkishoresarda
@ynkishoresarda 9 жыл бұрын
Hello Harish if any application gets fired from OS level, it would have different PIDs at OS level and db level. Is there a way we can correlate these PIDs ? I mean that we can figure out application XXX is having process id YYY at OS level and ZZZ at db level. Please suggest. Thanks
@DB2LUWAcademy
@DB2LUWAcademy 9 жыл бұрын
hi, you have to elaborate. let me reply as far as i understand. an application connected from remote client machine will have an Agent serving that application. Application Snapshot will even reveal the client process id in the remote machine as well. if that is what you are looking for. All agents thread based in DB2 only one process db2sysc at OS level from V9.5. thanks.
@ynkishoresarda
@ynkishoresarda 9 жыл бұрын
Hello Let me rephrase my question Application Server :- server A Application Name :- Batch A OS process id at Server A :- 1908 Database Server :- Server B Here is a simple architecture where Server A is application server and Server B is a db server. Server A is having more then one batch process running in parallel with different process id and eventually there will be multiple db connections with multiple process id. Now any batch is running with OS process id 1908 at server A. now i want to know what is the process id at db server which can be correlate with process id 1908. Once i have the process id at db server then i can do Application snapshot etc ? And please suggest what should be pin point in out put of snapshot. if i do a "List Application" then it will list all connection coming from server A. Thanks
@DB2LUWAcademy
@DB2LUWAcademy 9 жыл бұрын
Naval Kishore Sarda Hi, If you are using DB2 Client software(IBM runtime client or data server client) and establishing a connection the application snapshot shows the client process id as well. If you are using JDBC Drivers, you will have to pass some string to database to uniquely identify a connection. you can set unique application name, set connection attributes for example.Please look at the video(33) how to set application name. there are also other connection attributes you can set. I am not aware of directly mapping process id in Application Server to DB Server, not having any environment also to verify. Hope my reply was helpful.
@sureshnaani8773
@sureshnaani8773 2 жыл бұрын
How can I solve DB2sysc process using more memory still continue
@DB2LUWAcademy
@DB2LUWAcademy 2 жыл бұрын
not very sure on memory consumption. sorry for not being to help.
@sunilkumarshetty9148
@sunilkumarshetty9148 7 жыл бұрын
high I am trying in UNIX, below command does not work ps -Lp db2syscpid -o pid,ppid,pcpu,pmem,lwp can any one tell me which option
@DB2LUWAcademy
@DB2LUWAcademy 7 жыл бұрын
consult UNIX documentation for specific command options. every body has their own UNIX.
@rohith2786
@rohith2786 10 жыл бұрын
what is the equivalent command for Ps -Lp db2syscpid -o pid,ppid,pcpu,pmem,lwp in AIX. It doesn't seem to recognize -p option and -o lwp option
@sudheeshek
@sudheeshek 9 жыл бұрын
+Rohith Kumar Thagilipally i think this tutorial is only for DB2 on linux.This dosent seems to be working on AIx
@DB2LUWAcademy
@DB2LUWAcademy 9 жыл бұрын
sudheesh ek feel free to add the appropriate commands for AIX. Unix tool sets varies across different platforms. Solaris/HP-Unix may also have their implementation slightly different. Care should be taken when using OS tools.
@sudheeshek
@sudheeshek 9 жыл бұрын
thank you for the quick response. btw DO you know the equivalent of top -Hp in AIX please ?
@DB2LUWAcademy
@DB2LUWAcademy 9 жыл бұрын
Please consult IBM AIX Knowledge Center
@shayon_gangopadhyay
@shayon_gangopadhyay 5 жыл бұрын
For Ps -Lp db2syscpid -o pid,ppid,pcpu,pmem,lwp in Linux the equivalent command in AIX is : ps aux
db2top: Troubleshoot Locks in DB2 LUW/UDB
13:25
Ravi Nandigam
Рет қаралды 7 М.
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,7 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 21 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 202 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 24 МЛН
Mainframe DB2
22:38
racingmars
Рет қаралды 59 М.
DB2 Find Application Consuming High CPU
5:20
Database Guy
Рет қаралды 4 М.
How To Fix High RAM/Memory/CPU/DISK Usage on Windows 11/10
11:05
EasyTechGeek
Рет қаралды 1,2 МЛН
WebRTC Crash Course
1:10:06
Hussein Nasser
Рет қаралды 224 М.
Paging in Operating Systems with Example & Working - Memory Management
17:26
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 681 М.
What if my Intel CPU explodes??
14:20
Paul's Hardware
Рет қаралды 62 М.
Elon Musk update on 2nd human who got Neuralink implant
9:12
Lex Clips
Рет қаралды 11 М.
DB2 Basics Tutorial Part 18 - Restore and rollforward Demo
16:12
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,7 МЛН