473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

is there a max size to MySql?

I'm playing around with the code that runs my site. Suddenly I started
getting this error:

<b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted
(tried to allocate 311020 bytes) in
<b>/home/www/krubner/atp/mcIncludes/mcDatabase.php</b> on line
<b>72</b><br />

This shows up at the bottom of the page, after everything else has
run, when the code attempts to update how many times the page has been
viewed. What could it mean? Does MySQL have some size limit?
Jul 16 '05 #1
2 3795
Hi Lawrence!
On 31 Aug 2003 16:28:04 -0700, lk******@geocities.com (lawrence)
wrote:
I'm playing around with the code that runs my site. Suddenly I started
getting this error:

<b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted
(tried to allocate 311020 bytes) in
<b>/home/www/krubner/atp/mcIncludes/mcDatabase.php</b> on line
<b>72</b><br />
Thats the amount of bytes PHP has allocated. Most probably your
recordset is a bit to big to put it into an array. The user might not
want to see 100000 records anyway. Try LIMIT in the SQL statement

This shows up at the bottom of the page, after everything else has
run, when the code attempts to update how many times the page has been
viewed. What could it mean? Does MySQL have some size limit?


Nothing to do with MySQL directly.

HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 16 '05 #2
lk******@geocities.com (lawrence) wrote in message news:<da**************************@posting.google. com>...
nc@iname.com (Nikolai Chuvakhin) wrote in message news:<32**************************@posting.google. com>...
lk******@geocities.com (lawrence) wrote in message
news:<da**************************@posting.google. com>...

I'm playing around with the code that runs my site. Suddenly I started
getting this error:

<b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted
(tried to allocate 311020 bytes) in
<b>/home/www/krubner/atp/mcIncludes/mcDatabase.php</b> on line
<b>72</b><br />


This has nothing to do with MySQL per se. Note that 8388608 bytes
is exactly eight megabytes. The default value for memory_limit
directive is in fact "8M". So your script simply ran out of memory.
Increase memory_limit or find a way to tame your script's apparent
memory hunger...


How does one test memory size in PHP? Am I looking for an array, or
series of arrays, that has more than 8 megs? That, I think, would make
sense: after the page has rendered, and printed to screen, the
software attempts to update the log info for that page, but that log
info might be huge, might easily be more than 10 megs. So my
hypothesis would be to go and look at that. But how does one test
memory size in PHP?


Let's assume I'm stumbling on log info. How does one log info in PHP?
Suppose I want to record the IP address of everyone visits my website.
Suppose it is a popular site. After awhile, the log file, with
everyone's IP address, is larger than 8 megs. How then, do I handle
the file? How does anyone deal with files larger than 8 megs in PHP?
Jul 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jackiu | last post by:
------=_NextPart_000_0001_01C35286.10843160 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0002_01C35286.10843160" ------=_NextPart_001_0002_01C35286.10843160 Content-Type:...
0
by: Alcyone Oliveira | last post by:
------=_NextPart_000_000D_01C36572.F6480CE0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_000E_01C36572.F6480CE0" ------=_NextPart_001_000E_01C36572.F6480CE0 Content-Type:...
6
by: Matt Liverance | last post by:
I REALLY dont want to switch to oracle :( but I cant get these tables working any faster. I've got 2 dedicated servers, each with a slave, all run 32gig 15k rpm raid 5 on u320 perc raid...
1
by: jlee | last post by:
I'm pretty much a newbie on mysql, and I need some help. I am running mysql Ver 12.22 Distrib 4.0.24, for portbld-freebsd5.4 (i386) on a server hosting an active website. The site's developer...
5
by: asadikhan | last post by:
Hi, I am trying to configure my asp.net application to work with MySQL using Connector/NET and I wish to use connection pooling. What is the best way to do this? This is what I have so far: ...
1
by: Good Man | last post by:
Hi there I've noticed some very weird things happening with my current MySQL setup on my XP Laptop, a development machine. For a while, I have been trying to get the MySQL cache to work....
1
by: grabro | last post by:
Having just upgraded to from Suse 10.0 to 10.1 mysql-administrator will not work. When I try to acccess it I get the following message. linux:/home/grabro # mysql-administrator...
1
by: Ike | last post by:
Recently, I began using a different MySQL verver (i.e. different machine as well as different version#, going from 4.12a to 4.1.9 max). The following query used to work: select firstname,...
8
by: The Natural Philosopher | last post by:
This is so weird. What I am trying to do is to upload files and stuff them in a mysql database. Everything works except the file content is zero. using the load_file command from mysql...
221
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.