Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Apache issues with Glype

  1. #1
    nux
    nux is offline Moderator
    Join Date
    Dec 2008
    Location
    Minneapolis
    Posts
    534
    Thanks
    28
    Thanked 77 Times in 54 Posts

    Apache issues with Glype

    Hey, I've been running into some odd issues that I haven't been able to figure out yet. Apache2 processes are hanging while trying to lock a php session file. They keep hanging until my MaxClients limit is hit, and then the server stops responding to any HTTP requests

    I noticed this on one server, and I ran into my MaxClients limit on another server a couple days later. One server has a pile of proxies - the other just has one. I'm not sure what's going on, but wanted to see if anyone else was having issues.

    Thanks
    Submit Your Proxies @ NewProxySites.com

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts
    Is this a server you have root access to?

    What does the Apache error log say?

    Is there anything relevant in the PHP error log?

    Where are you seeing the error about the PHP session file and what is the exact error?

    Can you raise MaxClients?
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  3. #3
    Nathan's Avatar
    Nathan is offline Work!
    Join Date
    Dec 2008
    Location
    New Zealand
    Posts
    392
    Blog Entries
    1
    Thanks
    37
    Thanked 120 Times in 68 Posts
    Its not just Glype - all proxy scripts will do this if you are getting lots of traffic to your proxies. As long as you have enough RAM you can increase the amount of MaxClients. Generally you divide your RAM by 5 to get to approx. how many MaxClients you can have.
    Programmer, web developer and entrepreneur.

  4. #4
    nux
    nux is offline Moderator
    Join Date
    Dec 2008
    Location
    Minneapolis
    Posts
    534
    Thanks
    28
    Thanked 77 Times in 54 Posts
    I do have root access. There is no mention of anything in error logs.

    Nathan - This isn't just them hanging for a little bit - or hanging for a few hours. They're hanging indefinitely. I generally have about 60-100req/s on my proxy servers and have not had any issues like this up until about the 2nd of August. Not only does the Apache session hang - but the request from the client hangs as well. For example, if you go to google.com through a proxy, and it hangs, that request hangs forever as well. Now every time you try to connect back to the server it tries to send you to that Apache child. Which essentially makes the server unresponsive to you.

    I currently have 2048 ServerLimit and MaxClients. Waaay more than necessary. Generally after about four hours during peak hours I hit the 2048 ServerLimit.

    I have found that Glype 1.1 has this issue, while the older Glype 0.5.3.1 does not. I'm temporarily downgrading all my sites to 0.5.3.1 as a temporary fix.

    I've looked for days trying to figure this out - and my best solution so far is to downgrade. I imagine it's just not me, as I've been able to reproduce this problem on a fresh Debian Lenny install and a fresh unmodified glype-1.1.zip.
    Submit Your Proxies @ NewProxySites.com

  5. #5
    nux
    nux is offline Moderator
    Join Date
    Dec 2008
    Location
    Minneapolis
    Posts
    534
    Thanks
    28
    Thanked 77 Times in 54 Posts
    The odd thing is this seemingly randomly started happening. Maybe it was a software upgrade, but I don't think so. As this happened at about the same time on two different servers of mine.

    I've considered that I'm currently under a DoS attack, but haven't been able to find evidence to prove that - as I'm sometimes able to reproduce this problem myself simply trying to browse to a site through a proxy of mine.
    Submit Your Proxies @ NewProxySites.com

  6. #6
    Keldorn's Avatar
    Keldorn is offline Net Builder
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    400
    Thanks
    21
    Thanked 60 Times in 52 Posts
    Quote Originally Posted by nux View Post
    I have found that Glype 1.1 has this issue, while the older Glype 0.5.3.1 does not. I'm temporarily downgrading all my sites to 0.5.3.1 as a temporary fix.
    I've been using Glype 1.1 for several months and have not had any trouble. Its really hard to say what could be causing your problem. Right now my server load is .38, while it was about 3 during the afternoon. I have not had to restart my server, there are no old processes hanging around.
    I'm going to take a guess maby an update that was done on your server is causing it. Since you said you dont have root access. Your probably not the one who is maintaining the server. The owner may of installed something on the server that causing conflicts? I'm wondering though if you have turned on recently any of the other options like Unique urls, or Load limit? Those also could be the cause if you had them turned off before your problem began.


    Btw if its any help I'm using.
    CentOS release 5.3 (Final)
    PHP/5.2.8
    Apache/2.2.11

    (Also I've heard the Ubunto Linux version OS has problems with PHP sessions.)



    Its not just Glype - all proxy scripts will do this if you are getting lots of traffic to your proxies. As long as you have enough RAM you can increase the amount of MaxClients. Generally you divide your RAM by 5 to get to approx. how many MaxClients you can have.
    1 maxclient general consumes about 15MB ram. Depending how many modules you have installed. But if you set your keepalive to 2 seconds. The user will only use the ram for 2 seconds, then it closes the client. (The default is 300 seconds , which is 5 minutes!)

  7. #7
    nux
    nux is offline Moderator
    Join Date
    Dec 2008
    Location
    Minneapolis
    Posts
    534
    Thanks
    28
    Thanked 77 Times in 54 Posts
    Do you notice a larger amount of running processes than normal? I loaded up the mod_status and set ExtendedStatus On and saw processes in the 'W' state for thousands of seconds. That's where they sit when they hang.

    You must have misread, I said I do have root access. I maintain on main proxy hosting server, which started having big issues. I did do some upgrades not too long before, but the thing that gets me is it also started happening on another server of mine around the same time.

    I loaded a fresh install of Debian on a server, and downloaded a fresh copy of glype-1.1.zip on a server and saw the same results.

    I've seen some processes hanging for a few hundred seconds in the same 'W' status, but they always sooner or later die off. In the situation I'm talking about, if you were to reload apache2, which changes all children to ""G" Gracefully finishing" until they restart, they hang in the G state indefinitely.

    If someone who knows what they're doing (programming/debugging/etc experience) wants to take a look - I am able to reproduce the issue. Maybe we could load up on Skype and try to debug this.

    *shrug* I guess running an older version of glype isn't all that bad...I'm happy with as a solution for now. Would be interested in finding out what the heck is going on.
    Submit Your Proxies @ NewProxySites.com

  8. #8
    Keldorn's Avatar
    Keldorn is offline Net Builder
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    400
    Thanks
    21
    Thanked 60 Times in 52 Posts
    Yes I must of read that wrong.
    So How exactly do you tell from the shell what processors are hanging around? - Edit actually never mind I see you wrote mod_status...
    I might be having the same trouble myself, and not even knowing it. The loads I get during peak seem rather high to me, But I thought it was just maby the Iran traffic. Right now its 1 am and my average load is 1.87. Which seems kinda of high actually.

    Also I wonder if these processes hang around as "zombies" in the top command. Do you have alot of "zombie" processes?
    Last edited by Keldorn; 11 August, 2009 at 07:46 AM.

  9. #9
    nux
    nux is offline Moderator
    Join Date
    Dec 2008
    Location
    Minneapolis
    Posts
    534
    Thanks
    28
    Thanked 77 Times in 54 Posts
    I just reread the post and noticed you said Ubuntu has trouble with sessions. I'm running the latest Debian Lenny, and Ubuntu is based off of Debian. Do you have a link or anything you can point me at about that?
    Submit Your Proxies @ NewProxySites.com

  10. #10
    Keldorn's Avatar
    Keldorn is offline Net Builder
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    400
    Thanks
    21
    Thanked 60 Times in 52 Posts
    Quote Originally Posted by nux View Post
    I just reread the post and noticed you said Ubuntu has trouble with sessions. I'm running the latest Debian Lenny, and Ubuntu is based off of Debian. Do you have a link or anything you can point me at about that?
    I figured as much, I thought you might of been using Ubuntu, so I thought I would mention that I read somewhere about ubuntu having troubles writing Sessions.

    Maby search on google search for "ubuntu php session problems" or something.
    The actual place I read of it was on the session manual at php.net
    But I can't remember which page of these. The person said that ubuntu will drive you crazy with php sessions.

Page 1 of 3 123 LastLast

Similar Threads

  1. LiteSpeed vs Apache
    By sachin410 in forum Web Hosting
    Replies: 10
    Last Post: 3 December, 2009, 17:04 PM
  2. Apache Top
    By Will.Spencer in forum Managing
    Replies: 0
    Last Post: 26 October, 2009, 18:20 PM
  3. CSS issues
    By 1901gt in forum Programming
    Replies: 4
    Last Post: 24 September, 2009, 06:56 AM
  4. Best bundle software for apache
    By yere in forum Managing
    Replies: 6
    Last Post: 25 August, 2009, 16:00 PM
  5. SEO Issues?
    By Electron in forum Promoting
    Replies: 4
    Last Post: 29 July, 2009, 11:01 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •