WordPress.org

Support

Support » Plugins and Hacks » Memory usage db size » [Resolved] Limit seems incorrect

[Resolved] Limit seems incorrect

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor sLaNGjIs Team

    @slangji

    Limit Seems Incorrect ? … umh!

    Yes, would I really have 268,435,456 megs or RAM?

    Plugin Contributor sLaNGjIs Team

    @slangji

    Hey Mike, thanks for your report!

    For me is more important, but i have tested my plugin on various host, and various “localhost”, without reproduce this issue …

    Please test your “Mem Limit” with another similar plugin and report to me if the issue is the same or not 😉

    After report to me plugin name and result 🙂

    P.S. If you have code solution for this issue, i am happy to include your patch on my plugin and credit your batch …

    Thanks!

    I tested several other plugins, they were doing the same thing.
    I looked at your code, it looks OK.
    However, I still see 268435456M

    this number is 256M in bytes
    MB = NumberOfBytes/1024/1024

    I cannot figure out why it prints like that because if I
    print (int) ini_get(‘memory_limit’);
    it prints 256

    but your line:
    $this->memory[‘wpmldbu-limit’]
    prints 268435456

    But on another server it prints 128M, so the problem is only on this HostGator server.

    I guess a patch could be (because this fixes it)
    `$this->wpmldbu_load();
    $memorylimit = (int) ini_get(‘memory_limit’);
    $content .= ‘ ~ Mem ‘ . $this->memory[‘wpmldbu-load’] . ‘ of ‘ . $memorylimit. ‘M’;
    return $content;`

    Plugin Contributor sLaNGjIs Team

    @slangji

    Hostgator: shared, vps or dedicated?
    PHP version?
    SQL version?
    Hosting caching method?

    P.S. Please try my plugin (old official tag and new dev build) WP Overview (lite) and report if “limit value” is correct or not … thanks!

    🙂

    Plugin Contributor sLaNGjIs Team

    @slangji

    This issue was inserted as Ticket #4912267 on to Todo List for Future Development.

    Thanks to Mike Challis and all others users was send me same solution via Contact Form

    If are satisfied of this plugin, please, consider one Small Donation for my free work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Limit seems incorrect’ is closed to new replies.
Skip to toolbar