The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
1k views

which pid to use to strace my apache

My apache2 is using running slowly. A single PHP file is takes long time to process. The server is live. I dont want to restart it. So I thought I attach strace to it and check whats happening. So ...
0
votes
1answer
80 views

secure rollback of updates

I'm again and again wondering why there isn't (or did I just not find it?) any tool which can reliably and effortlessly rollback changes done by updates. Let me take an update with apt on Debian as ...
2
votes
1answer
1k views

Attaching strace to 100% CPU Apache process - output

I am having a problem with Apache2 spawning processes that use 100% CPU. Attaching strace to one of such processes produces no output sometimes and sometimes gives this: 2672 17:18:07 poll([{fd=14, ...
0
votes
2answers
1k views

Using strace effectively

Right now I'm dealing with a client's php based site that is somehow clogging up all of the available processes he has with his shared hosting provider. I'd like to prove to him exactly what and how ...
1
vote
2answers
188 views

How to analyze system calls when your disk is in read only and strace output is “Bus error”?

We have a HW problem with the disks, that made all the mount points to be read only. Output of dmesg: end_request: I/O error, dev sda, sector 15574609 sd 0:0:0:0: SCSI error: return code = 0x00040000 ...
2
votes
1answer
400 views

60 second php mail() delay through browser / Apache, but no delay through commandline

I am having a problem on my server when the PHP mail() function is being used in a browser, so through Apache. When the script, lets call it mailtest.php, is being called through a browser, there is ...
8
votes
2answers
6k views

How to set strace output characters string width to be longer?

Strangely i can't find it any where but when i stdout the output of strace into afile like this: strace foo.exe | & tee foo.log the out put is to short, how can i make the width longer?
0
votes
3answers
1k views

Remi Repo Mysql Server Not Starting

Executing the command to start the mysql service fails to start the mysql server. [root@localhost]# service mysqld restart Stopping mysqld: [ OK ] MySQL ...
4
votes
1answer
6k views

Strace poll, trying to diagnose bottleneck

I have no strace skill and knowlegde, but im trying to work through a problem where my clients application is awfully slow. And im trying to find out where the bottleneck / problem may lie. So I ran ...
2
votes
2answers
4k views

How do I run strace or ltrace on Tomcat Catalina?

Running ltrace isn't trivial. This RHEL 5.3 system has based on a Tomcat Catalina (servlet container) which uses text scripts to tie everything together. When I tried to find an executable here's the ...
7
votes
3answers
6k views

Monitor all newly spawned processes on a Linux machine

Sometimes a process comes and goes faster than I can ps aux, I tried watch -d -n0.1 "ps aux | tail" but again, that's restricted to 1/10th of a second. What I really want is to run a command and ...
0
votes
1answer
2k views

How to get PIDs waiting on a semaphore

If I strace a stuck process and see output of the form: [gaius@redhat64 bin]$ strace -p 18185 Process 18185 attached - interrupt to quit [ Process PID=18185 runs in 32 bit mode. ] semop(458760, ...
1
vote
1answer
2k views

Question About No Output From strace

I am using strace to see what certain processes are doing. I have an Apache process that seems to be running forever, taking up 97.8% of a core and almost 2GB of RAM. Now when I run strace on this ...
2
votes
1answer
4k views

Cannot Login as any user other than Root - permission denied

Help! I'm desperate :) I can't login as any user other than root. I'm on Ubuntu 10.04. Here's command output: root@pinky:~# adduser test Adding user `test' ... Adding new group `test' (1003) ... ...
7
votes
3answers
4k views

Monitor system CPU / system calls in Linux

I have a couple processes that are eating up a lot of system CPU time (as determined by looking at vmstat). Is there an easy way to find out what kind of system calls are being made? I know there ...
1
vote
1answer
115 views

Performance problem when launching GUI applications under gnome while connected to VPN

I'm experiencing a severe performance problem starting apps but only when connected to my office VPN. It appears to be related to gnome-session. I believe the following is the relevant strace from ...
1
vote
2answers
2k views

ls -l freezes terminal locally and remotely

I've been reading other SF threads regarding ls not returning results or freezing and stalling terminal sessions and it appears they usually the fault of network problems. My problem however, occurs ...
4
votes
1answer
601 views

debugging irssi using 100% cpu

I have a debian VM I'm running on an ESX4.0 server. This VM hosts a number of users, each running an irssi session inside a screen instance. This is working quite well, except for one user. For ...