0
votes
2answers
49 views

PHP exec “unable to fork” intermittent error on CentOS VPS

Using: PHP 5.5.10 nginx 1.5.10 Centos 6.5 a xen-based 4GB VPS My site uses encrypted paypal buttons. This encryption is done by the following code: $openssl_cmd = "($OPENSSL smime -sign -signer ...
2
votes
1answer
113 views

Our RAM usage is high, including -/+ buffer/cache, but top has no answers

We are running CentOS 6 with a PHP web application. After we pushed a new version live it seems we have a memory issue, however top does not show any high usage instances. I have looked around and ...
-1
votes
1answer
998 views

Suhosin.memory_limit does not allow PHP to use more memory

I have a server where PHP memory_limit is 256M. Some scripts need more memory and does a ini_set('memory_limit', '256M'); but since Suhosin is installed and activated, I find this in log file Sep 17 ...
0
votes
1answer
203 views

How to limit the total (not per process) amout of memory Apache 2.4 uses

Is there a way to limit the total (not per process) memory Apache uses? I have a web server that runs PHP and MySQL. I need a PHP memory limit of 1G or some scripts will fail (dompdf/phpexcel). The ...
1
vote
1answer
476 views

How to determine php memory usage on apache?

Sorry if I didn't phrase my question correctly. I use the php function "memory_get_usage()" to see the amount memory allocated to PHP on a script I am running. On server A I get around 2 MB. ...
5
votes
3answers
704 views

Optimizing VPS Server Memory

WHAT I'M TRYING TO DO The server resource limits sometimes run tight; to help prevent memory exhaustion, I've had to limit server processes. I'm needing a little expert help to know if I'm on the ...
1
vote
3answers
808 views

Why Are My High CPU Processes Located In /usr/bin/?

I keep getting RAM and CPU spikes but I can't figure out where it is coming from. If I look at the Process manager, I see, /usr/bin/php /home/hellohel/public_html/index.php Repeated several times. ...
1
vote
1answer
500 views

Avoiding memory full -> swap full -> crash

I'm experiencing an issue when sometimes the memory gets 100% full, and the swap file also, and the server becomes non-responsive and has to be restarted (causing also problems in database). This is ...
-1
votes
3answers
74 views

Running a LAMP application entirely in memory

Our company uses a PHP/MySQL-based project management app heavily. So heavily that the app is really starting to slow down. It's not that the app is running out of memory -- I never go above 50% ...
2
votes
1answer
624 views

Apache httpd processes and PHP out of memory

I have a VPS running apache-php-mysql on centos and a single drupal website installed. The VPS has 256MB of RAM (could be the root cause of all my problems... maybe I just need more). Whenever I try ...
0
votes
2answers
711 views

Overriding memory_limit with .htaccess resulting in mysterious alerts in syslog (suhosin)

PHP version: PHP 5.3.10-1ubuntu3.4 with Suhosin-Patch (cli) Used in apache2 with: libapache2-mod-php5 The global options memory_limit for PHP is set to 512M. So far so good. Now a script tries to ...
3
votes
1answer
93 views

PHP APC and Linux “free” interpretation [duplicate]

My understanding of the output of free is that buffer/cache values are a true reflection of available memory. I have assigned 512M to PHP APC opcode cache and although it is utilising all of this ...
2
votes
1answer
186 views

Apache : with Googlebot connections, a single process takes all server memory

Following Unbelievable issue : a single apache process takes 4 GB of memory I post as a new question because I was able to identify the fact that it happens when the client connecting is Googlebot. ...
0
votes
0answers
118 views

Unbelievable issue : a single apache process takes 4 GB of memory

That's an unbelievable issue but we have single apache process that takes 4 GB of memory ! And it doesn't happens always with the same URLs, it's unpredictable and we don't understand why it is ...
0
votes
1answer
1k views

PHP memory_limit local value does not match php.ini value

CentOS system. Summary: changed memory_limit in master and local php.ini and yet no change in the local value for a particular virtual host. Trying to improve performance, I set the memory_limit to ...
7
votes
1answer
7k views

How should I tune apache when I see high CPU, but low memory usage?

My CentOS web nodes (LAMP stack) are experiencing high CPU usage but low memory usage. Nearly all of the processes are apache. I know I could just add additional web nodes until my cpu usage becomes ...
0
votes
1answer
99 views

php: Does memory_limit setting influence running time / speed?

If I increase php memory_limit could that increase the speed of a process? Or if there is more memory allowed than needed the extra resource will not be used by the system to increase speed of the ...
3
votes
2answers
2k views

Unusually high memory usage on a CentOS VPS with 512 guaranteed RAM

I'm working on a medium-sized web application written in PHP that's running on a VPS with 512mb ram. The webapp hasn't been officially launched yet, so there isn't too much traffic going on, just me ...
2
votes
1answer
1k views

How to free PHP-FPM memory?

There are several discussions complaining high memory usage of PHP-FPM, without any practical approach to overcome. As I explored the problem with numerous tests, the problem is related to the age of ...
1
vote
1answer
107 views

Having host problems, can anyone recommend a solution or another host option?

I have a PHP/MySQL web application that gets about 600,000 hits per month. It has been running well for the last few months, but more recently the server is OOMing and crashing. The times between the ...
9
votes
3answers
10k views

How to investigate a memory leak with Apache and PHP?

We're running a heavy Drupal website that performs financial modeling. We seem to be running into some sort of memory leak given the fact that overtime the memory used by apache grows while the number ...
0
votes
0answers
169 views

php5.cgi running wild

I'm running a pretty standard CMS site on a VPS with almost 500MB of RAM. I've been consistently pushing the memory limits of the server, and I can't imagine how with a standard site (it's not doing ...
0
votes
1answer
204 views

Apache uses more memory than PHP's memory_limit

I am having some issues on a server where multiple Apache processes are being spawned and eating up the physical memory and swap. Each httpd process consumes around 130MB of RES. However, PHP's ...
0
votes
2answers
471 views

Tuning Apache memory usage

I've been working on on getting my webserver in check and I'm running into some issues. First of all, using top I've noticed that Apache is using a lot of memory, no surprise really, but 130-150M per ...
2
votes
1answer
1k views

High memory usage by apache after server switch

Recently moved to a new server with CentOS 5.4 and is 64 bit as opposed to our old 32-bit. It's got dual processors now and a bit higher memory. I realized though, that apache has been heavily eating ...
1
vote
2answers
619 views

Memory usage on debian webserver keeps going up

my webserver is running apache 1.3.x for a PHP application, along with mysql on the same machine. Most of the time it runs fine, CPU usage still with nice margin, but somehow memory usage keeps ...
5
votes
7answers
4k views

Unable to remove limit on memory usage for PHP script

The Situation I am having an issue with a PHP script getting the following error message: Fatal error: Out of memory (allocated 359923712) (tried to allocate 72 bytes) in ...
3
votes
2answers
285 views

When does APC allocate memory?

If I set apc.shm_size = 64M, will 64M of memory be allocated by APC when it starts or does it get allocated in chunks as it is needed?
3
votes
3answers
429 views

PHP memory auto release after certain time

We have a web server running a PHP application to serve customers. PHP 4 3 GB memory Centos Apache HTTP server. As our customer load has increased, we are having server memory issues. Sooner or ...
0
votes
1answer
207 views

Explain Apache/PHP/WordPress memory allocation to me

ok so I'm really confused about how Apache, PHP and WordPress memory allocation works. For example in WordPress there is a config variable (define('WP_MEMORY_LIMIT', '64M');) for memory allocation ...
0
votes
2answers
673 views

Upper memory limit apache

I have a big php script that needs a gigabyte or more to run. I set the memory_limit in php.ini to 2048M. If I echo the limit with ini_get, I get the 2048M as expected. But when I run the script it ...
12
votes
1answer
7k views

Memory Usage Numbers In top/htop

Can someone please explain this top output. Each PHP process is using 30% of the total memory or of the used memory? Furthermore how can it be that the combined used memory across all the PHP ...
1
vote
4answers
285 views

please take a look at my server's ram usage

i am a noob with servers. I have a centos5.5 vps with 512mb ram. My goal is to have it host just one magento store. I've installed Magento on the server without any control panel, by just installing ...
0
votes
1answer
138 views

Installing APC on a server with little ram

I'm going to install APC on my server to enhance Drupal performances, however I've read on internet that if I have little ram it might be a risk, and performances could get worse. I have 256MB ram, ...
3
votes
4answers
3k views

Where's my memory?! Nginx + PHP-FPM front end webserver slows to a crawl

I'm not sure if I have a problem with a memory leak (as my hosting company suggests), or if we both need to read http://linuxatemyram.com. Maybe you clever people can help us out? This is a front-end ...
0
votes
2answers
134 views

PHP APC on 64MB box

I have a small VPS with 64MB RAM. I use it as an internal proxy. I only have one index.php on this server, which has the logic to fetch data from another server using php curl and display to the ...
1
vote
1answer
666 views

Managing server memory (php, fastcgi, apc)

Ok really need someone to help me out here i'm running CentOS on a VPS with Plesk installed I launched a new website which gets a couple of hundred visits a day (nothing crazy) but have been plagued ...
2
votes
1answer
1k views

Apache2 memory usage when uploading large files

I am running apache2.2.12 along with PHP 5.2.10. PHP is configured to run as a separate process through fcgid. The problem is that when users upload a file, size of the apache process swells by almost ...
0
votes
3answers
102 views

PHP, MYSQL, & RAM?

My computer: Windows Vista Basic, Intel Core 2 Duo 2.8GHZ, 4GB memory. Task manager shows 1.61GB memory currently being used. Currently I can insert anywhere from 10k to 15k rows (<1kb/row) per ...
16
votes
4answers
10k views

How can I determine the cause of an apparent memory leak in my Apache/PHP based web app?

About once a week, but sometimes even a couple of times a day after running fine for days, my EC2 instances become unresponsive. Munin's memory graphs tell a pretty straightforward story: memory ...
0
votes
1answer
1k views

How to automatically kill PHP processes with infinite loops at server level

I have a sandbox on my server where I allow users to run their own PHP scripts. If a PHP script has an infinite loop, it only stops when Apache times the process out (30 seconds) which is obviously ...
0
votes
2answers
135 views

What could be causing my linux server (VPS) to constantly use more memory?

I have a VPS running CentOS with some PHP sites. It's been running fine for weeks. Recently it has become slower and slower (both website usage and when logged in via SSH). I have determined that it ...
5
votes
4answers
9k views

Memory usage of php-cgi processes is growing steadily

I'm trying to set up a web server on a VPS. My problem is that memory usage of php-cgi processes increases over time even though the website is not receiving any traffic at all. (it is behind a ...
2
votes
1answer
745 views

Lighttpd big uploads memory consumption

Consider the following scenario: I am running lighttpd-1.4.19 and I am handling big uploads (hundreds of MBs but less than 1GB) through it. Server is running on Ubuntu 8.04 LTS. Files are ...
3
votes
8answers
2k views

Scaling a LAMP stack

Once you move beyond 100k hits/month, what would people in this community say is the biggest hurdle? My situ: Tons of static media (audio/video/images) being served off of S3/CDN, but being stored ...