Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to find out on which resource process _flocks ?

Reply
Thread Tools Display Modes

How to find out on which resource process _flocks ?

 
 
Andreas Wollschlaeger
Guest
Posts: n/a

 
      08-27-2009, 07:34 AM
Hi folks,

i have a strange problem with some PHP webapp running under apache here:

The primary script uses PHP's cUrl library to perform another HTTP request to localhost, thus 2 instances of httpd are involved:

F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
5 48 4614 3990 16 0 40144 18560 flock_ S ? 0:00 /usr/sbin/httpd
5 48 4615 3990 15 0 42060 21140 - S ? 0:00 /usr/sbin/httpd

However, the secondary apache process (4614 in this case) "flock_" s on some resource and then terminates after an hour or so.
My logfiles give no indication on what resource the process blocks, so is there a straightforward way to find out?

I already tried "lsof -p 4614" which obviously shows some open files, but none of them with a lock...

Any help or pointers welcome :-)

Cheers
Andreas
 
Reply With Quote
 
 
 
 
Andreas Wollschlaeger
Guest
Posts: n/a

 
      08-27-2009, 07:43 AM
Andreas Wollschlaeger schrieb:
> Hi folks,
>
> i have a strange problem with some PHP webapp running under apache here:
>
> The primary script uses PHP's cUrl library to perform another HTTP
> request to localhost, thus 2 instances of httpd are involved:
>
> F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME
> COMMAND
> 5 48 4614 3990 16 0 40144 18560 flock_ S ? 0:00
> /usr/sbin/httpd
> 5 48 4615 3990 15 0 42060 21140 - S ? 0:00
> /usr/sbin/httpd
>
> However, the secondary apache process (4614 in this case) "flock_" s on
> some resource and then terminates after an hour or so.
> My logfiles give no indication on what resource the process blocks, so
> is there a straightforward way to find out?
>
> I already tried "lsof -p 4614" which obviously shows some open files,
> but none of them with a lock...
>
> Any help or pointers welcome :-)
>
> Cheers
> Andreas


Well, a former colleagu of mine once told me that it sometimes even helpful to talk to some goldfish :-)

I just found out i have to apply lsof on the PARENT process, which obviously holds a lock
(the PHP session cache file) in this case.

Cheers and have good day y'all
Andreas
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find process for port andrew.bell.ia@gmail.com Linux Networking 2 02-23-2006 09:23 PM
Accessing a LAN resource using WAN IP Jack B. Pollack Broadband Hardware 2 01-20-2006 02:15 AM
Useful resource Natasha Windows Networking 0 12-27-2005 07:01 AM
Useful resource Bill Windows Networking 0 12-27-2005 07:01 AM
sharing of resource gordon Wireless Internet 0 07-05-2005 01:22 PM



1 2 3 4 5 6 7 8 9 10 11