About Greenplum Collection Tool

Source: Internet
Author: User

Three collection tool for Greenplum:pstack, Strace, Gcore.

[Email protected] ~]$ Ps-ef | grep postgres|grep data|grep master|grep-v grep
Gpadmin 3653 1 0 May21? 00:00:00/usr/local/greenplum-db-4.2.5.2/bin/postgres-d/data/master/gpseg-1-P 5432-b 1-z 2--silent-mode=true-i m Aster-c -1-x 0-E
[Email protected] ~]$ Pstack 3653
#0 0x00000034104ce183 in __select_nocancel () from/lib64/libc.so.6
#1 0x000000000087a63b in Postmastermain ()
#2 0x000000000077ff3a in Main ()
Copy the output to a file,or usage:pstack 3653 >pstack-gp.txt.


[Email protected] ~]$ strace-p 3653
Process 3653 Attached-interrupt to quit
Select (5, [3 4], NULL, NULL, {7, 897000}) = 0 (Timeout)
Rt_sigprocmask (Sig_setmask, ~[ill TRAP ABRT BUS FPE SEGV CONT SYS rtmin rt_1], NULL, 8) = 0
Rt_sigprocmask (Sig_setmask, [], NULL, 8) = 0
Select (5, [3 4], NULL, NULL, {0} <unfinished ...>
Process 3653 Detached
You must hole for at least-seconds and use "Ctrl + C" to terminate. Copy the output to a file.


[Email protected] ~]$ Gcore 3653
' Import site ' failed; Use-v for Traceback
Traceback (most recent):
File "<string>", line +, in?
Importerror:no module named Os.path
[Thread debugging using libthread_db enabled]
Warning:no loadable sections found in added Symbol-file system-supplied DSO at 0x7fffea126000
0x00000034104ce183 in __select_nocancel () from/lib64/libc.so.6
Saved Corefile core.3653
-eof-

Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.

About Greenplum Collection Tool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.