Title: Limit seems incorrect
Last modified: August 21, 2016

---

# Limit seems incorrect

 *  Resolved [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/limit-seems-incorrect/)
 * I see this in the footer:
    db 14.693M ~ Mem 42.23 of 268435456M
 * [http://wordpress.org/plugins/wp-memory-db-indicator/](http://wordpress.org/plugins/wp-memory-db-indicator/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [slangji](https://wordpress.org/support/users/slangji/)
 * (@slangji)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/limit-seems-incorrect/#post-4344005)
 * Limit Seems Incorrect ? … umh!
 *  Thread Starter [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/limit-seems-incorrect/#post-4344006)
 * Yes, would I really have 268,435,456 megs or RAM?
 *  Plugin Contributor [slangji](https://wordpress.org/support/users/slangji/)
 * (@slangji)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/limit-seems-incorrect/#post-4344007)
 * 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!
 *  Thread Starter [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/limit-seems-incorrect/#post-4344008)
 * 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 [slangji](https://wordpress.org/support/users/slangji/)
 * (@slangji)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/limit-seems-incorrect/#post-4344009)
 * 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 [slangji](https://wordpress.org/support/users/slangji/)
 * (@slangji)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/limit-seems-incorrect/#post-4344049)
 * This issue was inserted as Ticket #4912267 on to [Todo List](http://wordpress.org/plugins/wp-memory-db-indicator/changelog/)
   for Future Development.
 * Thanks to [Mike Challis](http://profiles.wordpress.org/mikechallis/) and all 
   others users was send me same solution via [Contact Form](http://slangji.wordpress.com/contact/)
 * If are satisfied of this plugin, please, consider one [Small Donation](http://slangji.wordpress.com/donate/)
   for my free work.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Limit seems incorrect’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-memory-db-indicator_614636.svg)
 * [Memory usage db size](https://wordpress.org/plugins/wp-memory-db-indicator/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-memory-db-indicator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-memory-db-indicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-memory-db-indicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-memory-db-indicator/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [slangji](https://wordpress.org/support/users/slangji/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/limit-seems-incorrect/#post-4344049)
 * Status: resolved