Jump to content

Memory issue --> Usage 522MB+

Featured Replies

Posted

Hello,

How much does a normal forum use ?

Mine is taking more then 500MB
then it go's up to 1250MB
and then I need to reboot the server.

Can I somwhere limit the usage of memory?

Hello, It may depend on the size of the community and server configuration, It could be a script causing it, Have you set any limits ?

Also if you have server access, In SSH type in top and then press ctrl + M, You will see what process is causing the server to use a lot of memory.

How much does a normal forum use ?



Mine is taking more then 500MB


then it go's up to 1250MB


and then I need to reboot the server.

From a community software only stand point, I have to ask, how many forums do you have on just the one site? How many visitors at a time? What's the CPU usage looking like?


Also if you have server access, In SSH type in top and then press ctrl + M, You will see what process is causing the server to use a lot of memory.

Here's a little secret, but don't tell anyone. After typing 'top', you can press the Enter key instead of holding down the ctrl key and pressing M.
;)
  • Author

30 users
900 bot connections

CPU usage : peaks between 45% and 75% from apache and my username of the forum (httpd)
Mem usage : between 2 and 4% from the above users

%7Boption%7D

%7Boption%7D

php max usage is 128MB

Why are there only maximum of 4 httpd processes? Do you have a proxy or another handler in front like nginx?

You will likely benefit heavily from increasing max child count of httpd. You may be getting bogged down due to low process count. This will actually increase potential memory usage, but faster handling will, in the end, lower it.

If you have problematic bot connections, it'll also be worthwhile to ban them via firewall.

You can also opt for less memory hogging alternatives like nginx+php-fpm.

Do you have a control panel? The memory usage doesn't really seem to add up... Given your httpd, highest one uses like 3%.

  • Author

I have more httpd processes ( a few minutes ago i had 12 of them )

where can I increase max child count of httpd ?

For the moment the site is stable on 50% of its memory

If you have bunch of idling httpd processes or a higher limit already, ignore my recommendation. It wouldn't help you, only make it worse.

You can find the max child in apache configuration. Where exactly, I cannot tell you since I don't know your system. And frankly, I cannot realistically assist further either as you haven't really given enough information.

With the number of connections you have stated only using 750mb of memory is actually pretty low, keep in mind linux will use most of the memory available for many items/processes, typically if you have 2gb installed, if setup properly, you will use 98% of this 2gb of memory. It's nothing to worry about however as linux memory management will allocate memory where it's needed.

Are you seeing a problem with performance or just looking for one?

  • Author

We have a performance issue because sometimes CPU and MEM is peaking to 120% and then server stops responding.
I will upgrade with another 1GB memory

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.