Debian Bug report logs - #539058
php5: memory_limit = 128M, MaxClients = 150

version graph

Package: php5; Maintainer for php5 is (unknown);

Reported by: Olaf van der Spek <OlafvdSpek@GMail.Com>

Date: Tue, 28 Jul 2009 19:42:01 UTC

Severity: minor

Found in version php5/5.3.0-2

Done: "Thijs Kinkhorst" <thijs@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, \, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#539058; Package php5. (Tue, 28 Jul 2009 19:42:05 GMT) (full text, mbox, link).


Acknowledgement sent to Olaf van der Spek <OlafvdSpek@GMail.Com>:
New Bug report received and forwarded. Copy sent to \, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 28 Jul 2009 19:42:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Olaf van der Spek <OlafvdSpek@GMail.Com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5: memory_limit = 128M, MaxClients = 150
Date: Tue, 28 Jul 2009 21:25:25 +0200
Package: php5
Version: 5.3.0-2
Severity: normal

Hi,

/etc/php5/apache2/php.ini:
memory_limit = 128M

/etc/apache2/apache2.conf:
MaxClients = 150

128 m * 150 = 19 g

That's gonna be fun! ;)

Greetings,

Olaf

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5 depends on:
ii  libapache2-mod-php5           5.3.0-2    server-side, HTML-embedded scripti
ii  php5-cgi                      5.3.0-2    server-side, HTML-embedded scripti
ii  php5-common                   5.3.0-2    Common files for packages built fr

php5 recommends no packages.

php5 suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#539058; Package php5. (Thu, 09 Feb 2012 15:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Lior Kaplan <kaplan@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 09 Feb 2012 15:51:03 GMT) (full text, mbox, link).


Message #10 received at 539058@bugs.debian.org (full text, mbox, reply):

From: Lior Kaplan <kaplan@debian.org>
To: 539058@bugs.debian.org
Subject: #539058 php5: memory_limit = 128M, MaxClients = 150
Date: Thu, 9 Feb 2012 17:47:56 +0200
[Message part 1 (text/plain, inline)]
Hi,

Notice that this is the maximum value, it's not allocated by default:

Quoting http://www.php.net/manual/en/ini.core.php#ini.memory-limit :

This sets the maximum amount of memory in bytes that a script is allowed to
> allocate. This helps prevent poorly written scripts for eating up all
> available memory on a server.


Kaplan
[Message part 2 (text/html, inline)]

Severity set to 'minor' from 'normal' Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Sun, 08 Apr 2012 20:06:06 GMT) (full text, mbox, link).


Reply sent to "Thijs Kinkhorst" <thijs@debian.org>:
You have taken responsibility. (Mon, 10 Mar 2014 10:54:11 GMT) (full text, mbox, link).


Notification sent to Olaf van der Spek <OlafvdSpek@GMail.Com>:
Bug acknowledged by developer. (Mon, 10 Mar 2014 10:54:11 GMT) (full text, mbox, link).


Message #17 received at 539058-done@bugs.debian.org (full text, mbox, reply):

From: "Thijs Kinkhorst" <thijs@debian.org>
To: 539058-done@bugs.debian.org
Subject: Re: [php-maint] Bug#539058: php5: memory_limit = 128M, MaxClients = 150
Date: Mon, 10 Mar 2014 11:51:33 +0100
On Tue, July 28, 2009 20:25, Olaf van der Spek wrote:
> Package: php5
> Version: 5.3.0-2
> Severity: normal
>
> Hi,
>
> /etc/php5/apache2/php.ini:
> memory_limit = 128M
>
> /etc/apache2/apache2.conf:
> MaxClients = 150
>
> 128 m * 150 = 19 g
>
> That's gonna be fun! ;)

As indicated in the bug log, the 128m is only an upper limit; and it's a
default configurtion, that has hardly let to any concrete problems in the
past 5 years since this bug was filed. It's the administrator's
responsibility to configure the limits that fit their specific available
resources.

Oh, and even then, 19G is of course for current machines not that much
anymore anyway.


Cheers,
Thijs



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 08 Apr 2014 07:28:58 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 01:26:29 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.