ispCP - Board - Support
Slow, high load, Performance issue - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Slow, high load, Performance issue (/thread-10784.html)



Slow, high load, Performance issue - brainslush - 05-26-2010 02:23 AM

Hey, I've a problem...
I've a lot of performance problems since I've installed Joomla on my VServer. Every time when I try to login into Joomla it takes around 30seconds to process the login and "top" shows me a cpu-load of 13% "php5-cgi" (the highest I can get, means 100%). The front-page is offline so there can't be anyone else who is accessing the webpage at the same time.

My system:

OS: Debian Lenny
RAM: 1GB save, 2GB dyn.
CPU: 384 MHz of a 8 Cores Intel Nehalem processor

I already switched between fcgid and fastcgi but it didn't solve the problem

/etc/ispcp/apache/working/fastcgi_ispcp.conf
/etc/apache2/mods-available/fastcgi_ispcp.conf
Code:
<IfModule mod_fastcgi.c>
    FastCgiWrapper On
    FastCgiIpcDir /var/lib/apache2/fastcgi2

    FastCgiConfig -minProcesses 1 \
                  -maxProcesses 400 \
                  -maxClassProcesses 5 \
                  -multiThreshold 80 \
                  -killInterval 60 \
                  -startDelay 5 \
                  -idle-timeout 300 \
                  -singleThreshold 100
                  # -autoUpdate \
                  # -pass-header HTTP_AUTHORIZATION

    FastCgiServer /var/www/fcgi/master/php5-fcgi-starter -user vu2000 -group vu2000 -idle-timeout 300

    #
    # PHP5 SUPPORT
    #

    AddHandler php-fastcgi .php .php5

    <Location /php5/php5-fcgi-starter>
        SetHandler fastcgi-script
        Options +ExecCGI
    </Location>

    Action php-fastcgi /php5/php5-fcgi-starter
    AddType application/x-httpd-php .php .php5
</IfModule>

/etc/apache2/mods-available/fastcgi.conf
Code:
<IfModule mod_fastcgi.c>
  AddHandler fastcgi-script .fcgi
  FastCgiWrapper /usr/lib/apache2/suexec
  FastCgiIpcDir /var/lib/apache2/fastcgi
</IfModule>

php5-fcgi-starter
Code:
#!/bin/sh

umask 022

PHPRC="/var/www/fcgi/domain.de/php5/"
export PHPRC

TMPDIR="/var/www/virtual/domain.de/phptmp"
export TMPDIR

# PHP_FCGI_CHILDREN=2
# export PHP_FCGI_CHILDREN

exec /usr/bin/php5-cgi

Some ideas? THX


RE: Slow, high load, Performance issue - dcreation - 05-26-2010 02:36 AM

I think there is nothing we can do here. Thats a really strange setup (alot of extremly "bad" cores.) You may try to reinstall the Server without any control panel and only apache+mysql+php yourself and install a joomla there. But iam pretty sure the performance stays bad.


RE: Slow, high load, Performance issue - brainslush - 05-26-2010 03:04 AM

(05-26-2010 02:36 AM)dcreation Wrote:  I think there is nothing we can do here. Thats a really strange setup (alot of extremly "bad" cores.) You may try to reinstall the Server without any control panel and only apache+mysql+php yourself and install a joomla there. But iam pretty sure the performance stays bad.

I already had confixx 4 on it but i didn't like it because of its lack of security and there I had no problems like this.


RE: Slow, high load, Performance issue - dcreation - 05-26-2010 03:13 AM

Confixx uses apache2+mod_php - thats the "normal" setup when you setup a server yourself, but is bad concering security.
I think it is possible to run ispcp with mod_php. There is a how-to anywhere on the forum.

But, you said the problem is there since Joomla. Did you have Joomla installed on "confixx?"


RE: Slow, high load, Performance issue - brainslush - 05-26-2010 03:22 AM

(05-26-2010 03:13 AM)dcreation Wrote:  Confixx uses apache2+mod_php - thats the "normal" setup when you setup a server yourself, but is bad concering security.
I think it is possible to run ispcp with mod_php. There is a how-to anywhere on the forum.

But, you said the problem is there since Joomla. Did you have Joomla installed on "confixx?"

Yeah, I had. I get same problems with other CMS aswell. I tried WP and BB-Board.
I already thought about your idea but as you told before it's insecure.