Current time: 05-03-2024, 05:42 AM Hello There, Guest! (LoginRegister)


Post Reply 
apache2 fcgid = out of memory :(
Author Message
givre Offline
Junior Member
*

Posts: 22
Joined: Nov 2008
Reputation: 0
Post: #1
apache2 fcgid = out of memory :(
Hi ispCP Team Wink

Since i'm using ispcP with apache2 and PHP5 fcgid i have a big problem..

In few words, php5-cgi are taking all of the memory and never dead...
I have many process, over 800 , and few hours later, apache2 is crash Sad

This problem for me is bigger now beaucause i'm using virutal machine

I have test a lot of configuration for fcgid_ispcp.conf always same result = crash

Who can help me or speak about possible configuration for this ?

I made a very interessing configuration ( with web frontend , nfs, load banlancing, ) But actualy the same problem persist for apache2/fcgid

Thanks for you help.

Regards,
Benoît.
12-19-2009 06:24 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: apache2 fcgid = out of memory :(
Please post more infos about your VM (CPU, RAM...)
ispCP Version ?
..
...

Greez BeNe
12-19-2009 11:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
givre Offline
Junior Member
*

Posts: 22
Joined: Nov 2008
Reputation: 0
Post: #3
RE: apache2 fcgid = out of memory :(
Last Ispcp version

For informations about CPU and RAM , it's depend.
I have made some test, with differents configuration
The problem is alaway the same, with vm or not.

The Hyperviseur is :
Processeur: quad @ 2.83 12mo L2
Ram: 8gg de ddr2
Disque 2 X 1500gg sata2
Giga ethernet

Sytem Debian Lenny
Aapache2
fcgid php5

i can't have a litte configuration who dosen't crash
I'm sure is cause of php5-cgi.
If i make a kill of all process php5-cgi, then ram became free an useful

Some informations

Code:
ns2:/# ps aux |grep php5-cgi |wc -l

php5-cgi = 493
ns2:/# ps aux |grep apache2 |wc -l
11

To see result of command "ps auxf"
psauxf

20 min after
Code:
ns2:/# ps aux |grep php5-cgi|wc -l
533
ns2:/# ps aux |grep apache2 |wc -l
9

50 min after
Code:
ns2:/# ps aux |grep php5-cgi|wc -l
597
ns2:/# ps aux |grep apache2 |wc -l
14

80 min after ^^
Code:
ns2:/# ps aux |grep php5-cgi|wc -l
627
ns2:/# ps aux |grep apache2 |wc -l
15


Thank You for Your Help
(This post was last modified: 12-20-2009 03:38 AM by givre.)
12-20-2009 01:51 AM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #4
RE: apache2 fcgid = out of memory :(
I also had this proplem on some machines, i just switched to fastcgi_ispcp.

I know it doesn't fix your problem, but it's a workaround.
(This post was last modified: 12-20-2009 09:14 PM by Lucan.)
12-20-2009 09:13 PM
Find all posts by this user Quote this message in a reply
givre Offline
Junior Member
*

Posts: 22
Joined: Nov 2008
Reputation: 0
Post: #5
RE: apache2 fcgid = out of memory :(
Ok, i will try this.

Can you give more informations about your fastcgi_ispcp.conf , php5-fcgistarter and your apache2 worker please ?

Thank You
(This post was last modified: 12-21-2009 12:50 AM by givre.)
12-21-2009 12:49 AM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #6
RE: apache2 fcgid = out of memory :(
At the moment, i've set up all my machines again.

So everything is at the standart configuration.
But if the standart configuration doesn't help, try the following

go to /etc/apache2/mods-available/fastcgi_ispcp.conf
and change
Code:
-idle-timeout 300 \
# -singleThreshold 100

to
Code:
-idle-timeout 300 \
-singleThreshold 100
(This post was last modified: 12-21-2009 01:08 AM by Lucan.)
12-21-2009 01:07 AM
Find all posts by this user Quote this message in a reply
givre Offline
Junior Member
*

Posts: 22
Joined: Nov 2008
Reputation: 0
Post: #7
RE: apache2 fcgid = out of memory :(
OK, actually i have many error 500

I change some config, i give feed back after.
12-21-2009 02:12 AM
Find all posts by this user Quote this message in a reply
givre Offline
Junior Member
*

Posts: 22
Joined: Nov 2008
Reputation: 0
Post: #8
RE: apache2 fcgid = out of memory :(
Hi all,

The problem is the same , i had made a lot of change, lot of test always the same problem Sad
i'm disappointed .

The unique things who work normally is apache2 and mod_php5.

It possible and i think that i will close my free web hosting...
If there is someone who want to access on system and make some test to understand where is the problem and help me to solve it.. i can give access.

It was a very interesting system, and we could see ISPCP backend make good job but there is some futures that taking so much time like generate (tochange) account ... it will be useful to separate more all actions

Thanks for your response.. and help

Bye
01-13-2010 11:31 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #9
RE: apache2 fcgid = out of memory :(
Send me your IP and root user/pass if you want me to take a look and refine your config.
(This post was last modified: 01-13-2010 11:40 PM by kilburn.)
01-13-2010 11:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
just_hoster Offline
Junior Member
*

Posts: 22
Joined: Jan 2010
Reputation: 0
Post: #10
RE: apache2 fcgid = out of memory :(
i have this problem too... have 3 GB ram and it fills too fast...
and server lags too much on connect.... version 1.0.3

kilburn
can y help me too? Smile
01-20-2010 08:04 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)