LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > cPanel site creation very slow

Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2009, 03:07 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Default cPanel site creation very slow

I'm not sure this is a LSWS problem, but I'm attacking it from all sites. We create cpanel accounts via our billing system. It uses the xml-api to create the accounts. The account creation process is very (very, very) slow. If we manually create the account it appears to be the 'restarting services' that's the slow part.

I seem to remember another thread on this but I can't find it. Any ideas what's causing this slow down?

Thanks
Reply With Quote
  #2  
Old 08-15-2009, 09:42 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Any thoughts on this one? This is beginning to become a serious issue. When I set get added/add-on gets created the server load can sometimes spike from a normal 2 - 3 to 20 - 30 for 5 or 10 minutes. This is beginning to cause serious problems.
Reply With Quote
  #3  
Old 08-15-2009, 11:31 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
How big is your httpd.conf? cPanel account creation gets pretty slow on Apache as well as the httpd.conf gets larger. As for the load spikes is it possible it's from having extra PHP processes running while lsws is being gracefully restarted. This can use quite a bit of memory depending on how active the server is.
__________________
Hawk Host
Frog Host
Reply With Quote
  #4  
Old 08-16-2009, 04:19 AM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Hello Tony,

That is not what I want to hear. Define 'big'. Number of lines in httpd.conf, number of hosts? One of the reasons for using LSWS is having more sites on one server. If LSWS dies with bigger httpd.conf's that kind of kills the purpose. Any know work-arounds?
Reply With Quote
  #5  
Old 08-16-2009, 09:00 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
100,000 lines?

The bigger the httpd.conf gets the slower it's going to be at doing the reload. cPanel adds a lot of includes to or used to. You'd have something like this on every vhost:

Include "/usr/local/apache/conf/userdata/std/2/username/domain.com/*.conf"


They may have fixed the logic in adding that now or maybe not my memory on that is a little fuzzy as we changed our templates around. That can really slow down reloads of the httpd.conf.

My experience is lsws is far better at reloads than Apache is. The more vhosts you get the longer the reloads become on either system. At least with lsws it's graceful system handles it much better than Apache does.

Your issue does seem very strange though even our most loaded and biggest httpd.conf's can handle them without major issues. The only thing that happens for us is memory goes up as more PHP processes are there to handle the few remaining requests before the reload finishes. I could see it being a problem if you had tons of restarts in a row but you would probably have Apache completly down if that happened.
__________________
Hawk Host
Frog Host

Last edited by Tony; 08-16-2009 at 09:28 PM..
Reply With Quote
  #6  
Old 08-16-2009, 09:09 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
Nope, then these are not big :-) They are only about about 25K lines. It's just very inconsistent. Sometimes it works fine, no load etc, the next time it spikes. The biggest problem (of course) is that you can't control when it will happen. Clients add add-on/sub-domains at any time.

cPanel is still putting those include lines in but they are all commented out by default.
Reply With Quote
  #7  
Old 08-16-2009, 11:11 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
4.x should work better on this.
Reply With Quote
  #8  
Old 08-17-2009, 06:04 AM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
@mistwang,

I'm not sure that we're ready to upgrade to 4.x yet. We need to see a bit more stability in that version.

What is really throwing us is that it's not consistent. Things will be fine (no long restart, no high load) for a bunch of domain adds then 'poof' one will just tank the server.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:44 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.