ultrus Posted February 21, 2007 Share Posted February 21, 2007 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 More sharing options...
ultrus Posted February 21, 2007 Author Share Posted February 21, 2007 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. Link to comment https://forums.phpfreaks.com/topic/39491-phpini-and-scripts-taking-over-my-memory/#findComment-190581 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.