command taking lot of time to execute

Hi,

I am running the following command, and it tries to delete some dn from ldap, however, it takes lot of time before it finally request LDAP server to delete it.

I am trying to find why it is taking lot of time. Could you anyone help me in this regard. I have copies the pstack output, and i can see it says "waitpid".

Any help in this regard is appreciated.

./saml2meta 
 ff3dc734 waitid   (0, 5b4b, ffbff888, 83)
 ff3d8954 s9_waitsys (0, 5b4b, ffbffa28, 83, 0, 0) + 18
 ff3dc698 s9_handler (0, 5b4b, ffbffa28, 83, 0, 0) + 90
 ff159214 _waitpid (5b4b, ffbffb0c, 80, 0, 0, 0) + 5c
 000233c8 ???????? (3a784, 1, 21098, 1ddec, 34, 0)
 0001df14 execute  (0, 39800, 3c69c, 0, 1, 0) + 71c
 00015940 ???????? (0, 0, 366b4, ffbffdd2, 73, ff36ec90)
 000156f4 main     (9, ffbffcc4, ffbffcec, 36400, 7d8, ffbffdc4) + 600
 000150dc _start   (0, ffbffcc4, 1, ff3dc608, ff3ee834, ff3ee000) + 108

Thanks, John

This must be a Linux system.

ff3dc734 waitid   (0, 5b4b, ffbff888, 83)

The waitid system call in this case amounts to waitpid(). So it's waiting for some child process or other to finish. Check out what children it has and what they're doing...

If it is Linux, run the command under strace and see what it's doing:

man strace

You'll probably need -f in order to track its children.

You can strace an already-existing process with strace -ppid