Server Overload

Author Message

Mark Gilbert

Saturday 24 April 2004 9:01:11 pm

Hi I am having a problem with servier overload while using eZ Publish. This has been an ongoing problem that I thought had been solved. I am currently building a large site on the same server that is hosting our current live site. This is what my ISP has to say about the problem:

This is a 1 1/4 gig RAM machine, with a 1 gig swap space, and
something saturates every bit of that space almost instantly. It
happened twice this afternoon. Can you correlate anything you did
with the overloads?

During the peaks, the system load, measured as the average number of
processes ready to run over the most recent minute, was over 80.
That is beyond saturated. I could not even log in remotely for some
time, until it had partially worked off whatever induced the load.

The problem seems to happen mainly when I am adding content to the web site.

The site is linux
Apache/1.3.29 Ben-SSL/1.52 (Unix) FrontPage/5.0.2.2634 AuthMySQL/2.20 PHP/4.3.6 mod_jk/1.1.0
PHP 4.3.6

These are teh Apache loaded modules:
Loaded Modules mod_scoreboard_send, mod_frontpage, mod_security, mod_auth_mysql, mod_bandwidth, mod_php4, mod_jk, apache_ssl, mod_setenvif, mod_so, mod_usertrack, mod_headers, mod_expires, mod_digest, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_speling, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core

Part of my problem is when I run the site on my machine it does not have this problem. It runs just fine. But when I run it on my hosting companies serfver we get a server overload. Now my machine is significantly different - Windows XP instead of Linux, the database is on my computer instead of remote, etc. Any ideas??

Mark Gilbert

Sunday 25 April 2004 9:04:39 am

Here is the server information page:

System information
eZ publish

Site:

localhost

Version

3.3-3 (3.3)

SVN revision

5019

Extensions

PHP

Version

4.3.6

Extensions

xslt, xml, tokenizer, standard, session, posix, pcre, overload, odbc, mysql, ldap, imap, gd, ftp, domxml, ctype, zlib, openssl, apache, java

Safe mode is off.
Basedir restriction is on and set to /home/web/f/fbenew/.
Global variable registration is off.
File uploading is enabled.
Maximum size of post data (text and files) is 8M.
Script memory limit is .
Maximum execution time is 30 seconds.
PHP Accelerator

There is no known PHP accelerator active.

Vidar Langseid

Monday 26 April 2004 6:57:43 am

Try this:
- Enable memory_limit in PHP
eZ publish needs more than 8Mb (which is default), but should do fine with about 20Mb. Enabling memory_limit will stop php processess that starts "run away"
- Decrease MaxClients in httpd.conf. You run out of memory. It is better to queue incomming requests than to start swapping.
- Try a PHP accelerator. Apache's memory footprint will increase because of this, but eZ publish will be less CPU intesive so you will be able to server more requests.

Mark Gilbert

Monday 26 April 2004 7:12:31 am

Vidar

Thank you for your reply.

I noticed that my ISP turned the safe mode back on. They turned it off when I asked themn to for eZ Publish. But with the problems over the weekend it looks like they decided to turn it back on. I know that at one time "Safe Mode" did not work with eZ Publish. I also noticed that thier used to be a contribution that had a work around for those ISP's that require safe mode to be on.

Does "Dafe Mode" still need to be turned off with version 3.3-3 and later?

Are thier plans to build a permanent work around or is this going to be a permanent requirement for eZ Publish?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 09:59:29
Script start
Timing: Jan 19 2025 09:59:29
Module start 'layout'
Timing: Jan 19 2025 09:59:29
Module start 'content'
Timing: Jan 19 2025 09:59:29
Module end 'content'
Timing: Jan 19 2025 09:59:29
Script end

Main resources:

Total runtime0.0202 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.1484152.6250
Module start 'layout' 0.00520.0049 741.773439.4453
Module start 'content' 0.01010.0073 781.218893.2109
Module end 'content' 0.01740.0027 874.429734.3047
Script end 0.0202  908.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002914.2013140.0002
Check MTime0.00125.8501140.0001
Mysql Total
Database connection0.00073.486710.0007
Mysqli_queries0.004019.652230.0013
Looping result0.00000.196710.0000
Template Total0.00209.810.0020
Template load0.00115.200110.0011
Template processing0.00094.593610.0009
Override
Cache load0.00073.442010.0007
General
dbfile0.00052.614280.0001
String conversion0.00000.060140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs