WordPress.org

Forums

Memory usage db size
[resolved] Limit seems incorrect (7 posts)

  1. Mike Challis
    Member
    Posted 2 years ago #

    I see this in the footer:
    db 14.693M ~ Mem 42.23 of 268435456M

    http://wordpress.org/plugins/wp-memory-db-indicator/

  2. sLaNGjIs Team
    Blocked
    Plugin Contributor

    Posted 2 years ago #

    Limit Seems Incorrect ? ... umh!

  3. Mike Challis
    Member
    Posted 2 years ago #

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

  4. sLaNGjIs Team
    Blocked
    Plugin Contributor

    Posted 2 years ago #

    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!

  5. Mike Challis
    Member
    Posted 2 years ago #

    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;`

  6. sLaNGjIs Team
    Blocked
    Plugin Contributor

    Posted 2 years ago #

    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!

    :)

  7. sLaNGjIs Team
    Blocked
    Plugin Contributor

    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.