HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[SOLVED] Server response time - deathly slow!

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#104694 (In Topic #20436)
Avatar

Well-settled

Configuration issue, perhaps?

Greetings,

I'm experiencing invariably appalling server response times (25 to 60+ secs) for my ocP v.9.0.9 site which haven't been in the least reduced by CDN (Cloudflare) handling. (My domain provider is Hostpapa, whose servers are in Canada, while I'm UK based.) By contrast, page-loading time (with data compression enabled) is virtually instantaneous, once the server responds. In addition, both the server response time (SRT) and the loading time for my Hostpapa cPanel are extremely quick.

Before I take this up with Hostpapa, I'm wondering if there's anything I can do myself, as regards my site configuration settings, to reduce the SRT to an acceptable latency. For example, would my SRT be due to the fact that my site is https throughout? Alternatively, is there an .htaccess factor accountable?

Thanks to the links they've provided in their profiles here, I've spent a while visiting a variety of forum-users' ocPortal sites to get a measure of their SRTs, and every one of them responded within 5 seconds. (Some great looking sites there, btw!). I'm naturally wondering if their creators had to take any specific configuration-related steps in order to achieve that. 

 If any of you can offer any advice I'd be hugely grateful!
Back to the top
 
Posted
Rating:
#104695
Avatar

This sounds like a bogged down server. ocPortal 9 generates the page before responding, so a slow CPU or database would delay that, then the page would be done and immediately spit out.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#104696
Avatar

Well-settled

Many thanks Chris - that's helpful info to know. 

I guess my course of action will be to find a less-bogged down host, won't it? As to which, I'll take my lead from the replies to Jason Verhagen's plea (in Topic #19238)for recommendations.

 A propos of those replies, can anyone update me about Elief? Is Elief still your recommended provider for ocP sites, Chris?

Kind regards,

Richard
Back to the top
 
Posted
Item has a rating of 5 (Liked by RichT)  
Rating:
#104697
Avatar

You can ask them about it. Maybe their control panel will also show system load.

We no longer recommend eLief, for reasons I won't go into other than they were a good recommendation at one point but it didn't last. Our recommended host is now Arvixe who are a much larger company with good servers and support (avoid their live chat though :lol:).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#104698
Avatar

Well-settled

Thanks again - and the Arvixe recommendation is thoroughly reassuring! (I may say, way back when I looked around for a host for my very first website, Arvixe and Hostpapa were my two top choices amongst dozens explored. I decided which on the toss of a coin.  C'est la vie...:puppyeyes:)

Kind regards!
Back to the top
 
Posted
Rating:
#104933
Avatar

Well-settled

Update:

I've now transferred my site to Arvixe.:) - initially to their cheapest plan (Personal Class) - and am happy to report a big improvement on the server response time front - now routinely 5-10 seconds as opposed to 50+secs with HostPapa's equivalent package. That's still slow, of course, but bearable for the time being. Once the site is fully operational, doubtless I'll be upgrading to a plan with a faster server.

Arvixe's customer service throughout the transfer process has been 100% praiseworthy. It proved to be rather fiddly -  owing to a few unforeseen hurdles posed by the terms of my Hostpapa plan - and necessitated a good deal of to-and-fro communication between various Arvixe staff and myself. Every reply from them was prompt (6hrs max. wait) if not proactive on their part, and a positive step forward in the overall process. I invariably encountered speedy, articulate and helpful service on their live chat too. Arvixe's high reputation seems to me entirely deserved.

I'd like to ask a couple of quick questions here regarding hosted servers and response times (SRT).
1) The SRT I typically encounter when submitting a request to my server for a file is usually 0.5 seconds. Given that the SRT for the ocPortal site is also usually around 1-2 secs, I'd be really grateful to anyone who can explain what accounts for the considerably extended SRT when I request a page of my site (as opposed to a file on the server). Is it solely a matter of bandwidth, or of the number of simultaneously issued requests entailed in retrieving a page (typically 14-18 for my pages) and the resulting load on the server's CPU?

2) Would anyone using Arvixe care to share your SRT experience and the type of hosting plan you're using?
Given the really impressive performance of the ocPortal site, would it be improper to ask what kind of hosting it's on? (VPS if not dedicated, would be my guess.)

Thanks in anticipation!
Back to the top
 
Posted
Rating:
#104948
Avatar

Well-settled

Further to my above post: I forgot to mention the following, which could throw some light on what's causing the still pretty slow SRT I'm experiencing on the Arvixe servers:-

When I initially purchased the Arvixe domain, it came set up "optimized for ocPortal" with a clean installation of v9.0.14. The SRT for that was about 1-2 seconds for all pages I requested - most encouraging, in other words. But since the object of purchasing the domain was to transfer my site to it, Arvixe obligingly removed their 9.0.14 and replaced it with a full backup of my themed 9.0.9 site. And with that, the SRT increased to its current 10sec-ish delay. In view of that, I can't help concluding that the cause of the slow SRT is attributable to my site not having been "optimized" in the manner of Arvixe's own ocP installation, rather than to a server-specific cause. 

If that's indeed the case, my question would be: can anyone inform me as to what settings would need to be altered to achieve such optimization? Or is this, rather, something I should be asking for Arvixe's assistance with?

Thanks for reading!
Back to the top
 
Posted
Rating:
#104954
Avatar

There's no specific optimisation process on Arvixe, it's just we've vetted the hosting environment and maintain a good working relationship.

Usually to find why a site is slow I:
  1. check the template and block caches are enabled
  2. then I try some different pages to see if I can narrow it down
  3. I try putting ?keep_wide=1 in the URL to see if the panels or header are causing a slow-down

As a basic rule, the more code and content that has to run on a page, the longer it will take to execute.

We recently introduced an embedded profiler in ocPortal which you can turn on with a hidden option. That can be used to scan for specific bottlenecks such as external URLs needing to be downloaded to render pages (just one of two dozen examples).

It can be enabled in OcCLE through:

Code

:set_value('enable_profiler','1');
and then look to see what is in the profiler logs that get created under data_custom.

Don't leave the profiler on indefinitely. It is very low overhead, but your data_custom directory would fill up.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#104958
Avatar

Well-settled

Thank you Chris, over and over!!

Well, following your instructions, I straightaway realized I'd left the template and block caches disabled!

Result of enabling them? 1-2 seconds SRT. WOW! At one stroke my site has become professional in feel - and fun to use:thumbs::thumbs::thumbs:

One decidedly happy bunny here. Beaming all over, in fact.

I'll certainly check out the other measures you mentioned as soon as time permits - right now, though, I need to visit the Points Store.

Thanks again, Chris, and warm regards,

Richard.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: