Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Jan 14, 2012 5:09 am 
Offline
Junior Member

Joined: Sun Jul 31, 2011 5:03 pm
Posts: 49
Website: http://www.clubpenguincheatsy.com/
AOL: thefiame12
Location: GA
So recently (a few hours ago) I removed apache from my server and reinstalling everything with nginx. I was told it was the better option to run multiple sites with.

So I looked up a quick little guide on how to get wordpress installed on nginx since it's what I use on almost all of my sites, and to my surprise when I had gotten everything installed I was using 420 of 720mb. I'm not really sure if this is normal since I'm new to nginx and even virtual hosting for that matter.

I used this 4 part guide to install:
http://themesforge.com/featured/high-pe ... ss-part-3/

I've never worked with nginx so any tips or suggestions?


Top
   
 Post subject:
PostPosted: Sat Jan 14, 2012 2:32 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Using 420MB out of 720MB? Sounds like you're right where you want to be. Why would you not want to use the memory that you paid for?

Besides, the tutorial that you used only promises "high performance". It doesn't promise that it will give you low memory usage. In fact, it's easy to get high performance if you just throw more memory at the problem.

What's your value of pm.max_children? Part 2 of the tutorial suggests 5, in which case PHP would use up to (5 x memory_limit) MB of memory, plus a few more MB for the interpreter itself. WordPress typically requires at least 32MB of memory_limit, and even higher if you have a lot of heavy plugins. So that's at least 160-180MB.

Also, Part 4 of the tutorial suggests a high value (128MB) for apc.shm_size -- insanely high, in my opinion. If all of that cache were actually utilized, PHP could easily gobble up 300MB of memory. Add nginx, MySQL, and a few other system services, and 420MB sounds like a reasonable result.

And this will probably give you much better performance than an Apache/mod_php setup that uses the same amount of memory. So the tutorial does deliver what it promised.


Top
   
 Post subject:
PostPosted: Mon Jan 16, 2012 8:35 pm 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 567
Website: http://www.mattnordhoff.com/
Also, are you really using 420 MB? http://www.linuxatemyram.com/

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group