Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Constant disconnections
PostPosted: Mon Nov 29, 2010 7:14 am 
Offline
Senior Newbie

Joined: Fri Mar 27, 2009 11:04 am
Posts: 6
Hi all there:

I have a real problem.

Debian lenny.
Linode 768
Server version: Apache/2.2.9 (Debian)
Server MPM: Worker

I've configured the apache server in order to avoid memory leack:

<IfModule mpm_worker_module>
StartServers 1
MaxClients 20
MinSpareThreads 3
MaxSpareThreads 6
ServerLimit 20
MaxRequestsPerChild 3000
ThreadsPerChild 20
</IfModule>

The "problem" is that the server has continous disconnections when users use some of the server applications, like webmail or joomla. Always they have to login again.

I think the problem is apache2 but It seems all is ok.

Do you need som other information?

Where's the problem?

Thanks a lot!


Top
   
 Post subject:
PostPosted: Mon Nov 29, 2010 9:09 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
It sounds like a session-related problem with either your application, framework, or PHP itself. The first thing that sticks out about your configuration is that you're using the Worker MPM. With PHP, you shouldn't (mustn't?) use a threaded MPM; try using Prefork MPM and see if that improves things at all.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Mon Nov 29, 2010 4:20 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
hoopycat wrote:
With PHP, you shouldn't (mustn't?) use a threaded MPM

s/PHP/mod_php/ - it's perfectly good, and actually the better choice if you're using php via fastcgi (and possibly via fpm - I'm still confused about just what the latter does)
hoopycat wrote:
try using Prefork MPM and see if that improves things at all.

"prefork" and "improves" in a single sentence? WHO ARE YOU AND WHAT DID YOU DO TO HOOPYCAT?!

Also: check out your session timeouts in php.ini, and try to switch the stuff to cookie mode. I know I saw such random session losses many times, and never could quite troubleshoot it.

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group