Results 1 to 12 of 12
-
07-25-2009, 08:49 PM #1Newbie
- Join Date
- May 2003
- Location
- SF Bay
- Posts
- 19
VPS n00b, need some help with services and optimization
Hi all,
I am switching from shared hosting to managed VPS. I have minimal knowledge of UNIX/Apache, pretty good with PHP and programming in general.
So, what I have now is my VPS, with 512mb of ram, CentOS, cpanel and my two sites, not live yet, that is, I haven't changed dns records in the registrar.
I want to try to optimize the box or whatever is the correct name for it and understand the whole thing better. Mainly to learn more, I dot' think I'll be pressed for memory or bandwidth for now. Still, at least knowing things I can optimize for speed of space.
Few things that I assume should allow for some simplification and RAM savings(hopefully) is that:
a) Both sites are hobby sites, not very big load. Few thousand visitors a day. Traffic is around 10gb monthly combined.
b) Both sites are mine, nobody else on that box, so I don't have to worry about customers screwing things up and caging things internally.
Based on that, I don't really need email for the second site domain.
When I run top command I see 2 exim processes running. Is that normal, or is it because I have 2 domains registered there? And if yes can one be disabled?
Same applies to pop3-login and imap-login processes, 2 copies of each. Can I have just one of each, i.e. exim, pop3-login and imap-login?
Next, I selected not to run log analyzer cpanellogd for 21 hours, i.e. it'll run for 3 hours a day. I assume that should be sufficient for the site like mine?
I did read sticky about securing the site and quite a bit about Apache/mysql optimizations.
Anything else I should read/look into, and any other advices will be highly appreciated.
-
07-26-2009, 08:16 PM #2Newbie
- Join Date
- May 2003
- Location
- SF Bay
- Posts
- 19
Come on guys, someone must know at lease some of it? There's nothing explaining that stuff in the dox.
-
07-26-2009, 09:19 PM #3Corporate Member
- Join Date
- Feb 2008
- Location
- Houston, Texas, USA
- Posts
- 3,262
I'd start by breaking up your question into smaller chunks . Exim runs two daemons minimum. One to manage the queue and the other SMTP over TLS/SSL. I doubt you need the latter so you might want to disable it. But that's barely 2MB.
There are many things one can do to reduce the memory footprint but you have to know your way around the shell and understand what each program does.
Good luckLast edited by UNIXy; 07-26-2009 at 09:26 PM.
UNIXy - Fully Managed Servers and Clusters - Established in 2006
Server Management - Unlimited Servers. Unlimited Requests. One Plan!
cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy
-
07-27-2009, 02:47 AM #4Newbie
- Join Date
- May 2003
- Location
- SF Bay
- Posts
- 19
Thanks.
Sorry, I thought I was pretty specific and chunky
At this point I want to know why 2 exim processes and can I use just one.
#2) Why 2 pop3 processes, can't I just use one, especially that I'm using only one domain for mail.
#3) Why 2 imaps, same reason as above.
That's still better than nothing. I can add those 2 megs to mysql cache after all. Most of my query results will fit in there.
There isn't much running there and more or less I know what's what.
-
07-29-2009, 12:36 AM #5Corporate Member
- Join Date
- Feb 2008
- Location
- Houston, Texas, USA
- Posts
- 3,262
The reason there are two is the same. There's the SSL and clear-text daemons. If you want to disable the non-SSL one checkout /usr/lib/courier-imap/etc/pop3d and set POP3DSTART=n. You can also adjust how many worker threads are spawned (MAXDAEMONS). Similar options exist for about most programs (/usr/lib/courier-imap/etc/imap*).
Also, why don't you disable the cPanel daemon? Turn it on via SSH when you need it.
BestUNIXy - Fully Managed Servers and Clusters - Established in 2006
Server Management - Unlimited Servers. Unlimited Requests. One Plan!
cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy
-
07-29-2009, 07:12 AM #6Web Hosting Master
- Join Date
- Dec 2007
- Location
- UK
- Posts
- 951
if your that concerned and want to optimize the box, hire someone to harden/optimise your server.
Follow me on Twitter: @conrjac
-
07-31-2009, 12:25 AM #7Newbie
- Join Date
- May 2003
- Location
- SF Bay
- Posts
- 19
Thanks a bunch! I found thread thingy earlier. I'll test the rest.
I want to optimize by what I learn. Even as it is it, I am sure it'll handle whatever the load easily.
If someone else does it for me, it's pretty much useless for learning isn't it?Last edited by ZviSoft; 07-31-2009 at 12:32 AM.
-
07-31-2009, 01:55 AM #8Retired Moderator
- Join Date
- Feb 2005
- Location
- Australia
- Posts
- 5,849
IMO when it comes to memory footprint you should be looking at Apache, PHP, MySQL and SpamAssassin (or whatever other webserver, scripting language, database server and spam filter you might choose to use). Compared to those, on a hosting server, the combined memory usage of everything else isn't worth worrying about.
Chris
"Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter
-
07-31-2009, 02:48 AM #9Web Hosting Evangelist
- Join Date
- Apr 2009
- Posts
- 481
Exceptional VPS Hosting. With love, 6sync.
-
07-31-2009, 05:03 AM #10Web Hosting Master
- Join Date
- Dec 2007
- Location
- UK
- Posts
- 951
Follow me on Twitter: @conrjac
-
08-01-2009, 03:14 AM #11Newbie
- Join Date
- May 2003
- Location
- SF Bay
- Posts
- 19
-
08-01-2009, 03:17 AM #12Newbie
- Join Date
- May 2003
- Location
- SF Bay
- Posts
- 19
Spamassasin is currently disabled, but once the site goes live I'll probably have to enable it, I get lots of spam. Apache I think I did what I could, at least what I knew. There is plenty of info on Apache optmizations, that included rebuilding apache with mod_deflate. Same is true for mysql. Haven't looked into php yet.
Exim, pop3 and pretty much everything mail related is more difficult, at least to me. Docs and specs I found aren't very "explanatory" for inexperienced guys like me.
Similar Threads
-
Kernel & Server Optimization services.
By viGeek in forum Systems Management OffersReplies: 1Last Post: 04-26-2008, 02:08 AM -
Search Engine Optimization Services
By senaia in forum Employment / Job OffersReplies: 8Last Post: 11-06-2004, 04:42 PM -
SE Optimization :: Site Submission Services
By Charlottezweb in forum Web Design and ContentReplies: 0Last Post: 05-28-2004, 11:46 PM -
Terminal Services n00b question
By pgkooijman in forum Dedicated ServerReplies: 5Last Post: 11-01-2002, 12:12 PM