Constant disconnections

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:

StartServers 1

MaxClients 20

MinSpareThreads 3

MaxSpareThreads 6

ServerLimit 20

MaxRequestsPerChild 3000

ThreadsPerChild 20

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!

2 Replies

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.

@hoopycat:

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:

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct