Jump to content

problems debugging big site with occasional long process


Recommended Posts

I have a loop somewhere in my code, but I can't find it.  The site has lots and lots of includes and various functionalities which make tracking it hard.  I don't know which file, where in the code, which request is causing it.
The site is http://www.myowndictionary.com and the code base is larger than it appears.

So far I have checked several things:
1) postgresql queery log but when the process is running it is not making a query
2) mysql query log but the queeries have stopped when the process is looping
3) I have added the pid to a log file by using PEAR's Log class like this
    $pid = getmypid() ;
    $Log = &Log::singleton('file', '/var/www/myowndictionary/out.log', $pid );
so it is in front of all my Log entries.
BUT the pid which is the long running process's PID (viewed using 'top') has never matched the logged PID

So, I don't even know which process and which request start the thing.  I can say that it seems to happen on viewing just the home page, normally, and it's never happened to me, but obviously something is going on.

I need an idea what to try next as my options are running out, as is my patience with this untractable bug.

any help anybody can give is welcome, I'm willing to spend lots of time to get this thing discovered.
thank you for your time,

joseph.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.