473,799 Members | 2,941 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP5: Memory Limits Not Available?

Zac
I've been googling all day and I haven't seen anyone else having this
problem, so I thought I'd check to see if I'm unique or I should be
expecting this behavior.

I've recompiled and reinstalled my PHP SO for Apache with the configure
flag "--enable-memory-limit" I'm running Apache 2.0.52 and PHP 5.0.3
(on FreeBSD 5.3). After restarting Apache with the new PHP SO in
place, I checked phpinfo(). The "configure line" does, in fact, show
"--enable-memory-limit" as one of the many configure options. However,
I've heard that there might also be a section or indication of memory
limit further down in the phpinfo() page. I don't see anything (the
only time the word "memory" shows up on the page is for the configure
line)--not even the php.ini settings are shown in the table.

I've checked the PHP 5.0.4 changelog and there is no indication that
they touched the memory limit code. There are currently no submitted
bugs regarding memory limits. I also haven't found any indication that
this function might not be available in the Apache module form of PHP.

The most important problem I'm having is that the memory_get_usag e()
function is not available. I'm trying to write a small benchmarking
script to help generate statistics to compare scaling with large
amounts of database activity. I hope to prove that my technique is
faster and uses less memory than an existing piece of code. I've toyed
with the idea of reading the memory usage for the entire process using
ps, but that seems to scew things since, in addition to my script,
there's also a PHP interpreter with a bunch of overhead along with
whatever resources were necessary to open the shell and run ps.

TIA,
Zac

Jul 17 '05 #1
0 1633

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

Similar topics

8
2993
by: Rob Ristroph | last post by:
I have tried out PHP 5 for the first time (with assistance from this group -- thanks!). The people I was working with have a site that uses lots of php objects. They are having problems with speed. They had a vague idea that PHP5 has improved handling of objects over PHP4, so it would probably be faster also. In fact it seems slower. We did a few timing loops, in which a a number of objects were created and and members were...
3
2472
by: Rich | last post by:
Hello all I have an application that is segmented into various Dlls, one of which contains caching mechanisms that create very large in-memory data structures. No matter what I do to attempt to allow the Application to utilize 2-3GB of RAM, both through standard and /3GB /4GT /PAE switches and the like for the system and combinations of /LARGEADDRESS... etc. for the app config .. the App will always fail when it hits *1GB* on the
4
3679
by: Yoyoma | last post by:
Hello, I have a client running db2 udb 7.2 workgroup , FP10a on a Windows 200 server with 4GB of memory. The database is 25GB big, but from that maybe 50% is current data. My issue is that we are noticing that DB2 is only using about 100-150mb of RAM on the server. This is a productrion machine with 50-75 of transactions a minute on the database. Now flaming me about using W2k as the OS, we have running similar testes on SUSE 9 with...
19
26762
by: Jerry | last post by:
I am wondering what is the maximum size of memory that malloc() could handle. Is there any limitation on that? Where am I supposed to get this kind of information? Thank you everybody.
8
4756
by: clsmyth | last post by:
Folks, Hi, I have never posted to a language group before so please excuse me if this is inappropriate. I have posted this to comp.unix.solaris (well, I am one of the folks on the thread at least)...the subject is "4 GB hard constraint on a Solaris 8 server". I figured I'd post over here because we aren't getting anywhere too fast over there, and I think it is a code issue. We have a piece of software that we purchased. It is a...
3
4002
by: Mladen Gogala | last post by:
Is there such a thing? I need a good pager for Oracle RDBMS which will not re-execute the same query gazillion times. In order to do that, I plan on writing query results to a file and then map the file to an array. In order for the whole thing to work reasonably fast, I need something similar to mmap - therefore the question. I need to map large chunk of disk space to memory and do it fast. Any ideas? -- Mladen Gogala...
0
2313
by: israelekpo | last post by:
phpPaypalPro version 0.2.0 Released The second version of phpPaypalPro has been released. phpPaypalPro is an object-oriented framework developed in PHP5 to integrate easily with the Website Payments Pro SOAP 1.1 API from Paypal. The framework is very easy to deploy, allowing you to execute any of the operations from the API in just a few lines of code. It's so easy to use, even a caveman can do it! phpPaypalPro deploys the built-in...
8
2321
by: FFMG | last post by:
Hi, I am slowly moving my code to php5. But I would like to make it backward compatible in case something bad happens, (and to make sure I understand what the changes are). The way the constructors work seem to have changed quite a bit and I am not getting the same behavior across the versions. // Some simple code/
11
3581
by: Bryan Parkoff | last post by:
I want to know how much static memory is limited before execution program starts. I would write a large array. The large array has 65,536 elements. The data size is double word. The static memory would allocate 256K. The 256K is a fixed memory size. After the compiler has completed compiling header and source code, the execution program might fail to run or crash. The operating system might do not display error message saying,...
0
9686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9540
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10475
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10222
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10026
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.