Is the php memory limit at 64 MB for server Boru? and other stuff

Status
Not open for further replies.

apexams

New Member
Messages
16
Reaction score
0
Points
0
I was having issues a while ago with the php limit at 32 MB not being able to handle the wordpress admin that I used. You guys kept on saying that Corey will change the memory limit to 64 MB but after 2 months it was still the same (including the time x10 switched servers). Is it at 64 MB now?

The reason I am bringing this up is because my wordpress blog loads very inconsistently. Most of the time it loads in about 2 seconds. Other times, it will take about 30 seconds just to connect to the server. Maybe this is php issue. Maybe this is server issue. Maybe there are too many people on x10.

Also, sometimes my website never loads. "Connection has been reset." & "Unable to Connect" would occur each time I try to refresh. After a while though, the site is back on. What is going on? I keep checking the server status page by x10 but there would be no new updates.
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
Yes, PHP memory should be 64 MB now.

Also, PHP Memory have nothing to do with the speed a site loads. It's probably just server load.

You can check the memory limit yourself by adding this into a new PHP file:

PHP:
<h1>PHP Memory Limit</h1>
<?php 
    function echo_memory_usage() { 
        $mem_usage = memory_get_usage(true); 
         
        if ($mem_usage < 1024) 
            echo $mem_usage." bytes"; 
        elseif ($mem_usage < 1048576) 
            echo round($mem_usage/1024,2)." kilobytes"; 
        else 
            echo round($mem_usage/1048576,2)." megabytes"; 
             
        echo "<br/>"; 
    } 
?>
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,372
Reaction score
326
Points
83
If it was the PHP script memory limit your script would crash and you would get an error message like "Allowed memory size of nnnnnnn bytes exhausted (tried to allocate nnnnnnnn bytes)" .
Since you are not reporting that, it is probably just slow server response.
 

apexams

New Member
Messages
16
Reaction score
0
Points
0
I tried the script. Nothing came up.
HTML:
http://www[dot]apexamnotes[dot]com/php_mem_limit.php
 
Status
Not open for further replies.
Top