Forums / General Questions / How do I stopo my server from running out of memory?

How do I stopo my server from running out of memory?

Started by snaggle on 24 Aug 2012, 4:40 AM · Views: 626

Results 1 to 2 of 2
24 Aug 2012, 4:40 AM
#1
snaggle avatar

snaggle

Zen Follower

Join Date:
Jun 2011
Posts:
113
Plugin Contributions:
0

How do I stopo my server from running out of memory?

I contacted support as to why my site crashed and they told me this

The server is out of memory:
[root@ip-118-139-182-143 ~]# free -m
total used free shared buffers cached
Mem: 1024 1024 0 0 0 0
-/+ buffers/cache: 1024 0
Swap: 0 0 0

Apache is using 1111.38 MB RAM, which is more memory than is present on the server. I have restarted the service, but you will want to review the httpd configuration and review your coding. The site is now loading.

they told a me a programming could fix this?

anyone have any ideas what I can do?

thank you

24 Aug 2012, 6:19 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: How do I stopo my server from running out of memory?

Snaggle:

anyone have any ideas what I can do?

Ultimately, you simply need more memory.

However, there are several things you can do to mitigate the problem.

  1. Find a better host
  2. Create a SWAP file
  3. Reduce the number of apache processes.

This is not a zencart problem and you should be seeking advice from your host (or find a better host).

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.