Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Dec 12, 2012 9:11 am 
Offline
Senior Member

Joined: Tue Sep 13, 2011 7:13 am
Posts: 67
I switched my apache to mpm-worker and php is now fcgi, but there is nothing fast about this :(

I have linode with 2 GB and few sites on it (drupal) and most are anonymous users which are served as static files. Anyway when i use pages that are dynamicly generated it takes from 10 to 15 seconds each time to do so. It is not due to queries, so there is some problem with speed of page generation, that would be I guess CPU's part? I see that each proccess usually does use 80-90 % of CPU's power. So I would guess there is the problem of slow page generation? memory is ok and there is always some free. I have 5 GB swap file, don't know if that is a problem but swap is not used anyway when there is memory. Below is my top data, please help with this and how to make make pages generate faster?


top - 14:06:32 up 6 days, 3:45, 2 users, load average: 3.21, 3.37, 4.28
Tasks: 103 total, 3 running, 100 sleeping, 0 stopped, 0 zombie
Cpu(s): 26.2%us, 0.2%sy, 0.0%ni, 46.8%id, 0.0%wa, 0.0%hi, 0.0%si, 26.8%st
Mem: 2066856k total, 1866036k used, 200820k free, 122840k buffers
Swap: 5242876k total, 49620k used, 5193256k free, 1150132k cached


Top
   
PostPosted: Sun Dec 16, 2012 9:49 am 
Offline
Senior Member

Joined: Tue Sep 13, 2011 7:13 am
Posts: 67
I know this is not a easy task and need some work to determin a problem.

I also have a problem now with images and get internal server error and can't upload images even If i have GD library. Trying to get info on mpm-worker online, not so easy to do.


Top
   
PostPosted: Sun Dec 16, 2012 11:31 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
Marko - what we really need is your apache config, your php-cgi config, and your error logs.
Well, or a crystal ball. Both are possible ways to find out what went wrong in your setup. :)

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
PostPosted: Wed Dec 19, 2012 11:41 am 
Offline
Senior Member

Joined: Tue Sep 13, 2011 7:13 am
Posts: 67
I know I didnt put a good post.

I realized that internal server error comes for everything now when using fcgi, don't know if it's possible to see errors as usual in this mode. But I did found out that I need to do this http://drupaldump.com/fcgid-settings-apache when i checked my error log.


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