Help!

How to find out on which resource process _flocks ?

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Networking RSS
Next:  Accepted libgnupdf 0.1~20090801-3 (source i386)  
Author Message
Andreas Wollschlaeger
External


Since: Aug 27, 2009
Posts: 2



PostPosted: Thu Aug 27, 2009 4:10 am    Post subject: How to find out on which resource process _flocks ?
Archived from groups: comp>os>linux>networking (more info?)

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 Smile

Cheers
Andreas
Back to top
Andreas Wollschlaeger
External


Since: Aug 27, 2009
Posts: 2



PostPosted: Thu Aug 27, 2009 4:10 am    Post subject: Re: How to find out on which resource process _flocks ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 Smile
>
> Cheers
> Andreas

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

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
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Networking All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum