Performance question

I got a comment from a visitor from the Far East, that the site is very slow, and he wondered if is was on his side, or mine.

There is no indication of “slow”, so I would like ‘slow’ to be quantisized, and in comparison to what?  It could well be a matter of perception and expectation.

No, this site isn’t lightning fast. PHP is memory hungy, being an interpreted language, and creating a process and setting up the environment takes time. And this box holds just 512 Mb ofmemory where I should have 1Gb – at least, as it the recommendation. A linux box with Apache, with this amount of memory and the same load, wouldn’t be either.

Besides that: it’s not the only PHP job that runs. And to prevent starvation (causing the whole system to hang) access is limited to a small number of concurrent accesses from one site, and when many accesses occur, the excess may be slowed down or queued – or, if things get really nasty, it may happen that connections are dropped with a 503 Server Busy error.

I do have to take precautions to prevent the site being overwhenelmed with too many abusive accesses. If you may be slowed down, it might be others causing the delay.

Apart the load of PHP, there’s more that runs on this machine: the spam filter, and, of course, the database. Add the occasional abusive access (FTP, SMTP), it doesn’t help performance either…

So it is not “fast”. And it won’t be either. If you really want to read the content, you’ll have to exercise a little patience. I hope it’s worthwhile.

(If anyone can help me out with 2Gb memory for a DS10 (EV67, 667 Mhz) for a fair price (don’t forget I’m just a hoobyist :)) I would be quite happy)

By the way: There IS a solution bit it will take quite some time to have it installed: Mark Daniel has created a VMS-native CMS program that keeps all in one big file. But I want to store my daat in a database. Less fast, less efficient, but I don’t have to extract all data and store it in  that single textfile…And spare time is rare…

Rest assured: it could be worse. Several months ago I helped Michelle Popejoy on her WordPress site – her hosting provider runs an emulated DS10 with 1 Gb of memory, and has SWS (Apache) installed and the site was slow – even slower than mine. So I installed both SWS and WASD on a spare PWS500 with 256 Mb memory – similar to the one I ran this site on before, but with just one single, internal disk. SWS works – but it took ages for the WordPress homepage to appear, and the system pages massively during the processing

I also installed WASD on that machine and after some problems with configuration (and chnages in the code of the PHP engine and WASD) I could run her site, which reacted much faster (and with far less paging than SWS).

Shameless plug for WASD? Yes – but not without reason 🙂

18-Jul-2013

Internet Lights Out
Two days ago, when trying to acces webmail at 16:00, the connection that was fine 15 minutes earlier, was gone completely. None of the sites was accessable, even the router could not be accessed, something that is normally no problem. Seconds later I got a message on my cellphone that TV was gone as well. Tried to phone: gone as well.
Because the TV worked, except it didn’t get a signal, en the phone looked fine, it was obvious it wasn’t a power outage. So either the router broke down, or something was wrong with the external (Fiber) connection.
When at home, two hours later, I checked the router by checking the wifi-signal, but that looked Ok. I could connect both phone and laptop op Wifi, and access any machine on the local network. But any attempt to get out onto the Internet, failed.
So it was definitively a matter of the external conenction. So I looked at the box that connects the router to the fibre. And indeed, one of the LEDs that should blink, was off. For my ISP that was proof that the lights of the Internet were turned off….
Service disruption, indeed. So a ticket to handle the repair was created, and I would be informed – over SMS – of any change.
But yesterday at 16:00, no message had arrived, so I decided to call the ISP on the progress: since ALL services were off, I would expect them to hurry…But no, I was to be handled today; they couldn’t locate the problem remotely so the problem might be in the PointOfPresence. Worst case, if not, an appointment would have to be made to have a look from my side. No idea how long THAT would take.
Given the reuptation of the big company behind the ISP, it could take days, if not weeks….

Luckily, the disruption was solved when I tried to access the webmail site at 16:00 this afternoon.

But not any status update over SMS…..

Well, it all works again. But if you promise your customer to inform him on the progress of the work on the ticket, it would be nice if that promise was kept. EVen if it turns out the disruption is caused by a mistake – or even something stupid.