Quantcast
Channel: iRedMail
Viewing all articles
Browse latest Browse all 47934

Re: How can I limit required System resources?

$
0
0
ZhangHuangbin wrote:
olaf wrote:

It is not possible to limit the number of processes or the amount of allowed memory?

ZhangHuangbin wrote:

I have no idea yet, sorry. You already limit process number in Postfix master.cf, you should reduce value of '$max_servers' in Amavisd config, not '$max_use'.

Ok. I will look into it. Thank you.

olaf wrote:

I also noticed that there is an Apache process running as "iredadmin" and one running as "root". Both are not the default and highly recommended default user "www-data". Is this initiated by Iredmail? Especially the root user is what is worrying me.

ZhangHuangbin wrote:

Both are required.

*) We configure iRedAdmin to run as a separate, non-priviliege system user, 'iredadmin' by default, better for security.
*) The root user, i believe it's used to start Apache daemon first, then chroot sub-processes to 'www-data'.

Yes, you are right about the chroot. I was just a bit surprised that it was bound to 0:0:0:0 and that there were more Apache processes spawned than specified in the config. (I already limited the number of processes there although Apache uses not that much RAM compared to other processes.)

olaf wrote:

I implemented above suggestion by disabling outgoing contentscanning. It does not do a thing.

ZhangHuangbin wrote:

It's for outgoing emails, if you have lots of incoming emails, they will eat much system resource as usual.

Regardless if outgoing email is being filtered or not, when starting Iredmail and components, the same amount of processes start and the same amount of RAM is consumed. So maybe there is a difference in the working environment and how much RAM is used, but the initial reservation of RAM is the same and therefor this apparently is not the solution I am looking for.

olaf wrote:

As the server was fully rebooted an other (Jetty) process was started preventing mysql/mariadb to be started. Both require about 20% RAM. My goal is to allow them to run together, but I fail to see how this can be done without limiting the resources eaten by cbpolicyd, amavis and clam as they sum up to 60% of RAM regardless if it is a 512mb or 1 GB RAM VPS.

ZhangHuangbin wrote:

Sorry, what's 'Jetty' process? i don't know it at all.

Jetty is a Java App Server like Tomcat, Jboss, Glassfish, etc. However it requires a small footprint compared to others. I can limit it to say 200-250mb. It is not that relevant to my question however. it is just "something"I would like to be able to run aside.

So this leaves say 700mb (with 50-100mb spare for other and temp processes etc) for a LAMP server + IredMail.
As some people claim they have got it running on an even smaller footprint I wonder how (as they did not specify),
I felt it should be doable with 1 GB if performance was not a real issue (and it is not) considering this, however doubling the memory did not resolve much hence my asking.
Obviously the correct answer to everything here mentioned is to upgrade to at least 4 GB RAM. However that would impose spending an awful lot of extra money on a monthly basis. Way too much for simple personal use in my opinion. So either I should stick to tweaking or look for an other mail solution.

Any further remarks much appreciated as I think the questions raised might also be relevant to others.


Viewing all articles
Browse latest Browse all 47934

Trending Articles