 |
|
 |
|
Next: Config Layout deprecated in apache 1.3.31 ?
|
| Author |
Message |
External

Since: Mar 11, 2004 Posts: 27
|
(Msg. 1) Posted: Sat May 15, 2004 7:26 pm
Post subject: running out of memory Archived from groups: alt>apache>configuration (more info?)
|
|
|
Hi there,
I am running the newest apache 1.3.x version and php/mysql with dynamic
generated pages and about 15000 PI per day.
The system has 1GB of ram and is a P4 2.6G
After about a day running, the ram is used and it startes swaping. It looked
first as it would stop with a swap at 10.000KB, but today the system was getting
slower minute by minute until I finally rebooted it.
This was the top before reboot:
top - 14:47:22 up 31 days, 23:14, 1 user, load average: 2.64, 2.40, 2.31
Tasks: 92 total, 4 running, 88 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0% user, 64.6% system, 0.0% nice, 35.4% idle
Mem: 1025160k total, 1013300k used, 11860k free, 212k buffers
Swap: 2048276k total, 1027316k used, 1020960k free, 53120k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4 root 14 0 0 0 0 S 38.0 0.0 20:37.35 kswapd
8925 www 14 0 1238m 808m 389m R 17.2 80.8 8:51.81 httpd
Now the free memory is declining slowly. I guess it will start to swap by
tomorrow. Does anybody know how to deal with this? I guess I have some
parameters to adjust in httpd.conf, but which one? I was reading about apache
processes using about 20MB for one image served?!
Thank you for any recomendation you migh have.
Best regards,
Merlin >> Stay informed about: running out of memory |
|
| Back to top |
|
 |  |
External

Since: May 08, 2004 Posts: 3
|
(Msg. 2) Posted: Sat May 15, 2004 8:03 pm
Post subject: Re: running out of memory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Sat, 15 May 2004 16:26:26 +0200, Merlin wrote:
> I am running the newest apache 1.3.x version and php/mysql with dynamic
> generated pages and about 15000 PI per day.
Do you serve/manipulate images using GD? (GD needs a imagedestroy() call).
Anything else PHP related, not closed or destroyed?
> The system has 1GB of ram and is a P4 2.6G
[..]
> This was the top before reboot:
> top - 14:47:22 up 31 days, 23:14, 1 user, load average: 2.64, 2.40, 2.31
> Tasks: 92 total, 4 running, 88 sleeping, 0 stopped, 0 zombie
> Cpu(s): 0.0% user, 64.6% system, 0.0% nice, 35.4% idle
> Mem: 1025160k total, 1013300k used, 11860k free, 212k buffers
> Swap: 2048276k total, 1027316k used, 1020960k free, 53120k cached
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 4 root 14 0 0 0 0 S 38.0 0.0 20:37.35 kswapd
> 8925 www 14 0 1238m 808m 389m R 17.2 80.8 8:51.81 httpd
>
> Now the free memory is declining slowly. I guess it will start to swap by
> tomorrow. Does anybody know how to deal with this? I guess I have some
> parameters to adjust in httpd.conf, but which one? I was reading about apache
> processes using about 20MB for one image served?!
How is PHP actually using memory and resources, and how much is allocated?
max_execution_time = ?
max_input_time = ?
memory_limit = ?
post_max_size = ?
How is Apache configured?
KeepAliveTimeout ?
MinSpareServers ?
MaxSpareServers ?
StartServers ?
MaxRequestsPerChild ?
Which modules are loaded, (do you need them all)?
Have you monitored your server using mod_status?
--
mvh/regards
Joachim Mæland
If everything seems under control, you're just not going fast enough.
-Mario Andretti<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: running out of memory |
|
| Back to top |
|
 |  |
External

Since: Mar 11, 2004 Posts: 27
|
(Msg. 3) Posted: Sat May 15, 2004 8:48 pm
Post subject: Re: running out of memory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hello Joachim,
I think you are right. The imagedestroy() function is missing!
This could really be the problem since there are thousands of pictures served on
this system.
Thank you fro your help!
Merlin
Joachim Mæland wrote:
> On Sat, 15 May 2004 16:26:26 +0200, Merlin wrote:
>
>
>>I am running the newest apache 1.3.x version and php/mysql with dynamic
>>generated pages and about 15000 PI per day.
>
>
> Do you serve/manipulate images using GD? (GD needs a imagedestroy() call).
>
> Anything else PHP related, not closed or destroyed?
>
>
>>The system has 1GB of ram and is a P4 2.6G
>
> [..]
>
>>This was the top before reboot:
>>top - 14:47:22 up 31 days, 23:14, 1 user, load average: 2.64, 2.40, 2.31
>>Tasks: 92 total, 4 running, 88 sleeping, 0 stopped, 0 zombie
>>Cpu(s): 0.0% user, 64.6% system, 0.0% nice, 35.4% idle
>>Mem: 1025160k total, 1013300k used, 11860k free, 212k buffers
>>Swap: 2048276k total, 1027316k used, 1020960k free, 53120k cached
>>
>> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
>> 4 root 14 0 0 0 0 S 38.0 0.0 20:37.35 kswapd
>> 8925 www 14 0 1238m 808m 389m R 17.2 80.8 8:51.81 httpd
>>
>>Now the free memory is declining slowly. I guess it will start to swap by
>>tomorrow. Does anybody know how to deal with this? I guess I have some
>>parameters to adjust in httpd.conf, but which one? I was reading about apache
>>processes using about 20MB for one image served?!
>
>
> How is PHP actually using memory and resources, and how much is allocated?
>
> max_execution_time = ?
> max_input_time = ?
> memory_limit = ?
> post_max_size = ?
>
> How is Apache configured?
>
> KeepAliveTimeout ?
> MinSpareServers ?
> MaxSpareServers ?
> StartServers ?
> MaxRequestsPerChild ?
>
> Which modules are loaded, (do you need them all)?
>
> Have you monitored your server using mod_status?
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: running out of memory |
|
| Back to top |
|
 |  |
External

Since: May 09, 2004 Posts: 17
|
(Msg. 4) Posted: Sun May 16, 2004 3:36 am
Post subject: Re: running out of memory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Merlin <news.groups.DeleteThis@gmx.de> wrote in news:2gmse6F4hcrcU1@uni-berlin.de:
> I think you are right. The imagedestroy() function is missing!
> This could really be the problem since there are thousands of pictures
> served on this system.
ouch!
I have looked at this module but have yet to full around with it. I will
definately remember to do this as well  )<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: running out of memory |
|
| Back to top |
|
 |  |
External

Since: Jan 06, 2004 Posts: 11
|
(Msg. 5) Posted: Tue May 18, 2004 10:40 am
Post subject: Re: running out of memory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Merlin wrote:
> After about a day running, the ram is used and it startes swaping. It
> looked first as it would stop with a swap at 10.000KB, but today the
> system was getting slower minute by minute until I finally rebooted it.
>
> This was the top before reboot:
> top - 14:47:22 up 31 days, 23:14, 1 user, load average: 2.64, 2.40, 2.31
> Tasks: 92 total, 4 running, 88 sleeping, 0 stopped, 0 zombie
> Cpu(s): 0.0% user, 64.6% system, 0.0% nice, 35.4% idle
> Mem: 1025160k total, 1013300k used, 11860k free, 212k buffers
> Swap: 2048276k total, 1027316k used, 1020960k free, 53120k cached
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 4 root 14 0 0 0 0 S 38.0 0.0 20:37.35 kswapd
> 8925 www 14 0 1238m 808m 389m R 17.2 80.8 8:51.81 httpd
Ouch - don't reboot unless the system is non-responsive (hard lockup) or
you're upgrading something core like glibc or the kernel  You've
identified the culprit (httpd) so you can safely terminate it and restart
it without a reboot. Depending on the flavour of Linux or Unix you're
using the method for this will vary slightly but in general the following
should work (as root):
1. killall -TERM httpd or,
apachectl stop
2. apachectl start
Voila  *nix ain't windows and if one process runs away or hogs all the
resources you can *usually* just kill it without taking the whole system
out. Try THAT on windows with any confidence
OK flamesuit on, and this ends "Sysadmin 101 for Webmasters" -
James
--
Wedding is destiny, and hanging likewise.
-- John Heywood<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: running out of memory |
|
| Back to top |
|
 |  |
| Related Topics: | memory abuse ? - hello, i ve a problem with my web server. its a pentium 2000 Mhz but with only 128 Mo ! when i look the apace thread i ve 12 childs process with a average of 8 Mo each... i can not continue... how down this memory ? 8 Mo : its the pile in a childs..
Urgent: Memory Leak in 1.3.28 ? - Hi, it seems like I have a problem in compiling apache under debian 3.0. Although everything runs fine I'm having a memory leak, which might be related to compiling apache this way: apache: ../configure --prefix=/opt/apache_1.3.28 --enable-module=expire...
Apache and apache2 memory configuration - Hi all, I have the following question. We have a mailserver running and at the moment it runs apache, the server has webmail and also pop3 and imap. The question is regarding memory usage. The server has about 2000 users stored in Mysql. It would be..
Putting and retrieving data in memory - Hi all, I am currently using Apache and I am using a CGi program to generate my dynamic pages. My CGI is linked to a dll and I am trying to make it an Apache module. The reason is I am trying to keep it in memory, allocate a memory pool so I can....
Apache2 uses huge amount of memory - Hi I got a Apache2/Perl... binary package from http://perl.apache.org/dist/win32-bin/ for my win32 system. Once installed and started it uses about 50 MB of memory without any requests comming in. Is there any possibility to decrease the amount of.. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|