command taking lot of time to execute


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users command taking lot of time to execute
# 1  
Old 03-03-2011
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.

Code:
./saml2meta

Code:
 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
# 2  
Old 03-03-2011
This must be a Linux system.
Code:
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...
# 3  
Old 03-03-2011
If it is Linux, run the command under strace and see what it's doing:

Code:
man strace

# 4  
Old 03-03-2011
You'll probably need -f in order to track its children.

You can strace an already-existing process with strace -ppid
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Du -sh command taking time to calculate the big size files

Hi , My linux server is taking more time to calculate big size from long time. * i am accessing server through ssh * commands # - du -sh * #du -sh * | sort -n | grep G Please guide me for fast way to find big size directories under to / partition Thanks (8 Replies)
Discussion started by: Nats
8 Replies

2. AIX

AIX_timeout_thread using lot of cpu time

Hi, i am seeing some strange things on a lpar which we have at this moment. With nmon i see a process aix_timeout_thread which is using lots of cpu (70-80%, all cpu which is "free" is used). This is a kernel process (for as far i can find out) but i am wondering what is causing this to happen... (5 Replies)
Discussion started by: aixvinnie
5 Replies

3. Shell Programming and Scripting

Taking one input at a time

Legends, Please help me to come out of the below Bermuda triangle. I have four inputs in a shell script: A B C D Now, If A is passed by user then, B C D will be ignored. If C is passed by user, then A B D will be ignored. Regards, Sandy (11 Replies)
Discussion started by: sdosanjh
11 Replies

4. UNIX for Dummies Questions & Answers

SED taking too much time

Hi I am trying to remove some characters from my data file. The data file has huge number of records say 90000 records. I am using sed for this purpose. eg : cat FILENAME|sed 's/;//g' (to remove semi colon ';') However as the data file is too huge , it is taking too much time to give... (3 Replies)
Discussion started by: dashing201
3 Replies

5. Programming

Time Taken to execute a command

How can we find the time taken by a comman to execute say cp a b what is the time taken by this command (2 Replies)
Discussion started by: abhisheklodha13
2 Replies

6. Shell Programming and Scripting

Execute via crontab taking username/password from file

Dear All Here is the details what i want to achieve from shell scripts I have a sever where 5 databases are created. which i having diffrent SID's. Now i want to execute some SQL queries on each one of the databases. (SQL Query is same).That i want to acheive via crontab Now each one of the... (2 Replies)
Discussion started by: jhon
2 Replies

7. Solaris

Telnet/ssh connection takes a lot of time.

We have three Oracle instances running on our Sun-Blade-T6300. Telnet or SSH connection to one of the instance (or to user oramach) takes a lot of time whether using putty or SecureCRT but connection to any other user is very fast. Any idea what may be causing this slow connection to this... (5 Replies)
Discussion started by: esmgr
5 Replies

8. Shell Programming and Scripting

find command takes a lot of time ( can I skip directories)

I have a file called "library" with the following content libnxrdbmgr.a libnxrdbmgr.so libnxtk.a libnxtk.so libora0d_nsc_osi.so I am trying to locate if these libraries are on my machine or not. find command runs for about few seconds and hangs after this. Can someone please help me and... (3 Replies)
Discussion started by: knijjar
3 Replies

9. Shell Programming and Scripting

Shell script is taking more than 3 hrs to execute

Hi I am doing a process of converting all the values of key column into a row, for eg Key col1 col2 1 1 1 1 2 1 1 1 3 1 3 1 2 ... (2 Replies)
Discussion started by: nvuradi
2 Replies

10. UNIX for Advanced & Expert Users

Truss taking time in stopping

Hi Experts, I am starting my unix servers with truss cmd and taking truss output in a file . But when I run it for considerabely long time, it is not stopping easily on doing ^C ..... It is taking lotz of ctrl-C's to stop. Please let me know is there any other way to stop truss except ^C and... (1 Reply)
Discussion started by: aarora_98
1 Replies
Login or Register to Ask a Question