Jump to content

php.ini, and scripts taking over my memory


ultrus

Recommended Posts

Hello,

I'm using a php class that geerates data that takes up a TON of memory for the life of the script, and takes a bit of time to process. That's OK, and I adjusted the php.ini file as follows to accomadate this:

 

max_execution_time = 300
max_input_time = 300
memory_limit = 300M

 

When I run the script a few times (never more than once at a time), it takes up more memory with each use, and never seems to let it go. After a while, the machine starts to run REALLY slow while disk memory gets used up. It then gets worse from there and I usually get a time out error after that.

 

Has anyone else had this problem? Are my changes above bunk? Any ideas on how to resolve the memory issues? Let me know if I can provide script examples.

 

Thanks much :)

Link to comment
https://forums.phpfreaks.com/topic/39491-phpini-and-scripts-taking-over-my-memory/
Share on other sites

Hmmm. I just thought of something else. After I leave my computer alone for a while after all the memory gets eaten up and everything goes to hell, my memory is free again. I wonder if the memory is kept for the script execution time (php.ini seting) before letting it go.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.