Forums

Join
bbPress Support ForumsTroubleshootingbbpress is slow like godaddy says?

Info

bbpress is slow like godaddy says?

  1. my site is getting slower and having more error after raising this topic. ok i need to stop posting now and do a backup fast in case i'll lose everything :D

  2. vannak, if you activated load options, something is still wrong because it's using 36 queries on the front page. Are you using bbPress 1.0 or bbPress 0.9 ?

    Make sure your bb-topic-views plugin is the latest version (1.6.3)
    The old version before I took over used excessive queries.

    If you are using an earlier 1.0 alpha version, it also had excessive queries (still does on the newest version in some places).

    Before you run to hostmonster or other provider, make sure you do your homework and check those suggestions I gave you.

    Oh one more tip for choosing a hosting provider - if they use the word "unlimited" in any of their advertising, find another provider.

  3. We have communicated with the customer and he appears to be satisfied with the resolution.

    Thanks,

    Alicia R.
    Go Daddy Hosting

  4. Alicia R, are you guys using NFS? I poked around your site but I can't find the answer.

  5. Most hosts will not admit and definitely not advertise NFS, it's a downside, not a plus.

    But you can tell if you have an account with them by studying df -a though the shell, php shell or perl cgi shell. Or if they hide/block all that you can write a script to time 1000 reads of filemtime (with clearstatcache) which cannot be cached by the OS and will have telltail lag.

    Marketing-wise NFS is usually spun as "unlimited" or "expanding" storage space, like Dreamhost promises extra space each month.

    I'm very curious to find out what the "resolution" was.
    The latest page show shows 1.432 - 36 queries which is still poor.

  6. hi _ck_ i'm using bbpress 0.9.2. yes i'll do that homework as soon as i have new hosting. one more thing, there was no resolution at all from godaddy.

    Talking about this, it reminds me about what godaddy did to my friend 6 months ago. her hosting acc was completely expired and everything lost. when she asked for the backup godaddy charged from her 170$US.

    The problem that her acc expired is that godaddy failed to automatically renew the acc. and even she did it manually but still could not. she and i thought that it was a problem with Visa card. i suggested her send an email to godaddy not to delete her acc as she had problem with her card. she also was subscribing new card.

    After getting new card, she did the renew again but still failed. finally, the hosting expired.

    Then she tried to buy new hosting by using the same card. yes, she succeeded. Strange? anyway, it was her fault that she didn't do the back up.

  7. Vannak if acc. is expired is only a trouble of your friend. I've also a Godaddy hosting, and about 4 months before expiring, GD sens periodically via mail a reminder... So charging for recovery data (in consequence of your forgots) in my opinion is normal.

  8. yes, that is normal. but i just wonder why the same card couldn't be used to renew but to buy new hosting? and she did tell them to hold her acc by email.

  9. I'd like to see some feedback on my experimental NFS detector below.
    Be sure to chmod 777 it after you upload or it won't work.
    Delete after you are finished with it for security.

    Dreamhost takes over 7 seconds, sometimes more.
    My apache servers with local storage take less than one second.
    My Windows XP with XAMPP takes 12 seconds (old slow IDE drives)

    <?php
    /*
    Experimental NFS detector - upload this file to server and chmod 777
    Script should take less than one second to run.
    If it takes more than one second, then it's likely NFS (or Windows or a bad configuration)
    Any error means the time is unreliable as the script has failed.
    */
    error_reporting(E_ALL); $file=__FILE__; $time=strtok(microtime(),' ')+strtok('');
    for ($i=0; $i<=9999; $i++) {if (touch($file)) {clearstatcache(); filemtime($file);} else {break;}}
    echo ((strtok(microtime(),' ')+strtok(''))-$time)." seconds";
    ?>
  10. Huh. Awesome script, _ck_, you're a goddess.

    Server 1 (my personal site) - average of 0.81909894943 seconds
    Server 2 (my busy site) - average of 1.08337402344 seconds

    These are on identical Apache servers (actually, server 2 has more memory, but the specs are the same for the servers). Same version of Apache, PHP, SQL etc. Server 2, however, is always slow and pegging the CPU. Even when I turn off WordPress (which my isp blamed at one point) I'm hammering the hell out of the poor box.

  11. 1&1 shared hosting:
    PHP4: average 0.241
    PHP5: average 0.215

    1&1 root server:
    PHP5: average 0.129

    Another 1&1 root server:
    PHP5: average 0.118

    My 2 year old desktop (local SATA drive, 1GB RAM):
    PHP5: average 0.265

  12. Thanks for the feedback Ipstenu and Chris!

    When you say "1&1 root server" is that a dedicated or vps or something like that?

    Interesting your desktop is very fast compared to mine, is it Windows or Linux? If it's Windows, is it NTFS or FAT32? I wonder what my windows bottleneck is, or maybe basically it just doesn't cache the filetables on FAT32.

    I should enhance that code to show if the server is in safemode or not and what functions are disabled in PHP. Could be a handy tool for evaluating potential hosts.

  13. _ck_ the desktop is Linux. I think it's Kubuntu.

    On the root server at 1&1, let's see:

    The 0.129 result is this: 1&1 Root Server II (not available any more, it's an old account)
    The 0.118 result is this: 1&1 Business I Server

    Their VPS offerings are something else. Not really sure what these are.

    I just checked another 1&1 account I manage, another Business I Server, I got 0.199 for the first result and a consistent 0.165 for the next 10 in a row.

    Hope that helps.

    I think it would be cool if you extended into a host evaluation tool. But how would someone run it on the host before they have an account there?

  14. They could find someone else to run it.
    Or some hosts have a free trial period (though that is less and less thanks to spammers).

    Your linux desktop is why it is so fast.

    So my theory is right, under 1 second is excellent, around 1 second is good.
    Anything much higher is suspect.

    But I need more NFS candidates, will have to see if I have access on some of these old servers.

    Let's see if I can run it on NearlyFreeSpeech.
    Aha! They are NFS. 13.26 seconds

    For those that get an error even when the file is chmod 777, you'll have to create a testing directory and move the file into there. Then chmod 777 the directory and change the first line to
    error_reporting(E_ALL); $file=dirname(__FILE__)."/test.txt"; file_put_contents($file,''); $time=strtok(microtime(),' ')+strtok('');

  15. Turns out mine aren't the same (exactly).

    Server 1

    Operating system 	Linux
    Kernel Version 	2.6.9-55.0.9.ELsmp
    Apache version 	1.3.41 (Unix)
    PERL version 	5.8.8
    PHP version 	5.2.4
    MySQL version 	5.0.67-community

    Server 2

    Operating system 	Linux
    Kernel Version 	2.6.9-67.0.4.ELsmp
    Apache version 	1.3.37 (Unix)
    PERL version 	5.8.8
    PHP version 	5.2.1
    MySQL version 	5.0.51a-community
  16. Well we don't need to pinpoint exactly the server configuration as the timing will never be exactly the same twice on the same machine. But it will be within a very close range. What we are looking for are times that are way beyond one second.

    I'll do some more digging over the weekend against some of the more popular hosts.

    I want to see it run on godaddy though. That will be interesting. I'm sure I can find a good discount coupon code to get the first month very cheap so I'll give that a go if so.

  17. On a Windows server (GoDaddy) there isn't such a thing as 777 permissions is there? It looks like 777 in my FTP client anyway, even though they're not shown as such.

    I get this error there:

    Warning: touch() [function.touch]: Utime failed: Permission denied in D:\Hosting\123456\html\godaddy\nfs.php on line 9
    0.00044894218444824 seconds

    This is a GoDaddy Windows hosting account.

  18. Make a directory called \test, go in there and put this version of the script in there:

    <?php
    /*
    Experimental NFS detector - upload this file to server and chmod 777
    Script should take less than one second to run.
    If it takes more than one second, then it's likely NFS (or Windows or a bad configuration)
    Any error means the time is unreliable as the script has failed.
    */
    error_reporting(E_ALL);
    $file=dirname(__FILE__)."/test.txt"; file_put_contents($file,'');
    $time=strtok(microtime(),' ')+strtok('');
    for ($i=0; $i<=9999; $i++) {if (touch($file)) {clearstatcache(); filemtime($file);} else {break;}}
    echo ((strtok(microtime(),' ')+strtok(''))-$time)." seconds";
    ?>
  19. _ck_

    I needed to change the /test.txt to \\test.txt, but even once that was done, I get this error (prior to this, the filename and path were not right):


    Warning: file_put_contents(D:\Hosting\123456\html\godaddy\test\test.txt) [function.file-put-contents]: failed to open stream: Permission denied in D:\Hosting\123456\html\godaddy\test\default.php on line 9


    Warning: touch() [function.touch]: Unable to create file D:\Hosting\123456\html\godaddy\test\test.txt because Permission denied in D:\Hosting\123456\html\godaddy\test\default.php on line 11
    0.00028681755065918 seconds

  20. Hi _ck_ i did what you told already. and the fastest one is 9.9959759712219 seconds (in Cambodia). what do u think about it?

  21. Sounds like it's on NFS.

  22. vannak, 10 seconds is very bad (the time is independent of where you access it from)

    chrishajer, something's not right there, Windows must think you don't have access rights to write to the directory. Whatever Windows's equal to chmod has to be done.

    According to php.net the chmod in php actually does do something on some windows setups.
    So try replacing this line, like so:

    $file=dirname(__FILE__)."/test.txt"; $h=fopen($file, "wb"); fclose($h); chmod($file, 0777 );
  23. Yes too bad and goodbye Godaddy, Candice, and Danica.

  24. _ck_

    Sorry, that didn't work. More errors this time. It's making GoDaddy look worse and worse.


    Warning: fopen(D:\Hosting\123456\html\godaddy\test\test.txt) [function.fopen]: failed to open stream: Permission denied in D:\Hosting\123456\html\godaddy\test\default.php on line 9


    Warning: fclose(): supplied argument is not a valid stream resource in D:\Hosting\123456\html\godaddy\test\default.php on line 9


    Warning: chmod() [function.chmod]: No such file or directory in D:\Hosting\123456\html\godaddy\test\default.php on line 9


    Warning: touch() [function.touch]: Unable to create file D:\Hosting\123456\html\godaddy\test\test.txt because Permission denied in D:\Hosting\123456\html\godaddy\test\default.php on line 11
    0.00039196014404297 seconds

  25. Well the creation errors aren't exactly godaddy's fault, it's just something weird with windows I don't completely know about since I hate IIS and won't even test it.

    Makes no sense that a php program can't create a file. Something is wrong there.
    Only intelligent thing I can find about it is here:
    http://us2.php.net/manual/en/function.fopen.php#50601

    Do you have some kind of security panel where you can give your account write permission to the /test/ directory?

  26. I know, I rethought that after I posted it. I don't understand Windows/IIS servers either, so it makes no sense to me. On Linux, there's nothing funny about it at all. It just works. Make a directory, it works. You can write to it. It's easy. This makes no sense.

    I will check into write permissions for that folder. I don't see why a file in that folder can't write to the folder, but hey, I don't know anything about Windows servers at all.

    Is there a way to go 'round the problem, hardcoding something or creating the file manually first?

  27. Maybe someone who uses GoDaddy hosting has a Linux account there and can test _ck_'s NFS Detector™?

  28. I think vannak did that, and it's 10 seconds:
    http://bbpress.org/forums/topic/bbpress-is-slow-like-godaddy-says/page/2#post-21978

    What happens if you upload a random file and name it test.txt ?
    Since it can't modify the php file, I guess it won't be able to modify the text.txt file either but maybe it's only because the php file is open by the same process.

  29. I tried creating that test.txt file first and it failed with the same problem. Looks like someone else got the information you needed anyway.

  30. You must log in to post.