Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have a problem, My site starts lagging at random times, the server shows no signs of CPU load or hard disk swapping during I/O, I just upgraded the server (768 Linode) yet the site lags, anyone in the field have any idea of what could be the cause? I am leaning towards increasing PHP's memory access limits but I don't think it's the cause.
I am using nginx, the access log size is like 600MBs should I disable that?
What else could be the cause? I mean my site is small right now but it's facing terrible slow downs.
Edit: I am running on VPS Linode 768, No memcache only MySQL and PHP, Lagging is like the site does not load, a page takes like 24-50 seconds to load.
Site: http://scapehouse.com
Maybe your scripts uses some API through HTTP - try to add
nameserver 8.8.8.8
nameserver 8.8.4.4
as FIRST lines into /etc/resolve.conf file to reduce time of resolving domains. It was solution for me once (I use Linode too).
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
Improve this question
I have a website that I built using PHP and HTML hosted on GoDaddy. When the website is idle for more than ~30 minutes, it takes around 20 seconds for it to load on the first visit after that.
I am suspicious that GoDaddy puts the server to sleep if there is no activity for ~30 minutes, but GoDaddy support tells me that is not the case.
I have tried to add session_write_close() just in case there was an issue with session locking. I have also tried clearing my browser cache to see if the website was just loading fast from my cache, but that also did nothing.
Any ideas would be very appreciated. Thank you.
You can follow these steps,
make sure images of website are not too big.
find out whether any JavaScript is taking too long to load.
find out whether any api call is taking too long to return values
bad coding can also increase website loading time
you can use this site -> https://developers.google.com/speed/pagespeed/insights/
or your google chrome to find out the problem
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I recently made a website which has a very strange issue blowing my mind.
If some one can test the blow two urls and tell me how can i debug this issue ?
I have two hosting servers
Website hosted on server1:
http://test.ici.com.pk/
Website hosted on server2:
http://ici.com.pk/
I have copied same website + database on both servers (uploaded 3 times to verify)
Strange issue is that IE8 not loading blue background in SERVER2
Unable to debug is this is the issue from server side setting or css code.
Seems to me that these two websites have totally different sources, you would've see yourself if you took a look at page source on browser.
And I guess the problem with IE is IE's ridiculous 32 stylesheets limit.
http://drupal.org/node/228818
First you should find out why page source if different (wrong template?) then you may need to merge some of your stylesheets and keep their count below 32 for IE (e.g http://drupal.org/node/510442).
I think it is a problem with the virtual host....try to configure the virtual host for SERVER2 proper that doesnt leads conflicts to you
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Service Provider: Godaddy
CMS: Wordpress
Maximum Database Size Allowed: 1GB
Recently i got message from my hosting provider saying that my shared hosting database maximum size could be 1GB only, and they want me reduce the size of database for not closing the database because of the over-sized database voilation it. If i can't reduce it then they are asking to shift it to VPS. But VPS is too expensive for me, also, i don't want to change my website IP Address, that will happen if i switch to any other service provider or even to a VPS. Because ppl say that changing IP Address, affects SEO.
Now what i want to know, if it possible to use WordPress with two databases, as i am having more free databases with this service provider, and have almost 20 more databases. So if i could keep one database as my previous one and another one as new, this will solve my problem.
But is that possible?
You can do it using HyperDB.
More information can be found here:
https://wordpress.stackexchange.com/questions/11154/split-wp-install-between-2-databases
But is that possible?
It's kind of possible, but you'd have to set up a completely new Wordpress install.
It's not possible to connect the same WP install to two databases.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a website which hangs about 20 times a day for between one and ten minutes. I have a hosting company who cannot find the problem, I have an application developer who cannot find the problem and they both blame each other. Its the Server, says the developer as is doesnt show on the Dev Server. Its the Application, says the Host, as they can't find any error log issues.
Can anyone offer me a few hours consultancy to get to the cause of the problem?
Best thing to do is - while the server is hanging - check an other page/file on your website/webapplication server. If that opens fine, logic dictates that its not your hosting company. Also check on other computers/internet pages then your own. It could be a local problem. I think you must log all tasks; see what is eating up your connection and/or cpu during the 10 minutes.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have leased VPS with 2GB mem.
Problem i have is that i have few joomla installations and server get in to very slow response if there is more than 30-50 users attached at same time.
Do you have any tips, books/tutorials/suggestions how to increase response time in this situation?
Pls. give me only very concrete and useful URLs, i would be very grateful.
In attachment i attached just part of htop view on that VPS
The easiest and cheapest thing you can do is to install a bytecode cache, e.g. APC. Thus, php does not need to process every file again and again.
If you're on Debian or Ubuntu this is as easy as apt-get install apc.
I'm going to guess that most of our issues will come from joomla - I'd start by looking through this list: https://stackoverflow.com/search?q=joomla+performance
Other than that, you might want to investigate a php accelerator: http://en.wikipedia.org/wiki/List_of_PHP_accelerators
If you have any custom sql, you might want to check your sql queries are making good use
of indexes
A quick look at your config suggests your using apache pre fork - you might want to try
using threaded worker mode, though always benchmark each config change you make (apache
comes with a benchmarking tool) to ensure any changes have a positive effect.
Some other links..
http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/
Though this is for wordpress, the principals should still apply.
http://blog.mydream.com.hk/howto/linux/performance-tuning-on-apache-php-mysql-wordpress
A couple of things to pay close attention to.
You never want your server to run out of memory. Ensure any apache config limits the
number of children to within your available memory.
Doing SHOW PROCESSLIST on mysql and looking for long running queries can highlight some
easy wins, as nothing kills performance like a slow sql query.