Forums / Install & configuration / Server Overload

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?

eZ debug

Timing: Jan 19 2025 07:03:29
Script start
Timing: Jan 19 2025 07:03:29
Module start 'content'
Timing: Jan 19 2025 07:03:29
Module end 'content'
Timing: Jan 19 2025 07:03:30
Script end

Main resources:

Total runtime0.2375 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0097 588.9453180.8438
Module start 'content' 0.00970.0087 769.789197.7578
Module end 'content' 0.01840.2190 867.5469528.2266
Script end 0.2374  1,395.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00411.7211200.0002
Check MTime0.00160.6939200.0001
Mysql Total
Database connection0.00120.489310.0012
Mysqli_queries0.177874.88031410.0013
Looping result0.00150.61581390.0000
Template Total0.218592.010.2185
Template load0.00160.673710.0016
Template processing0.216991.326110.2169
Override
Cache load0.00100.438810.0010
Sytem overhead
Fetch class attribute can translate value0.00080.352910.0008
XML
Image XML parsing0.00050.200810.0005
General
dbfile0.00953.9836200.0005
String conversion0.00000.008830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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