UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old May 1st, 2008, 07:02 AM
shantanuo shantanuo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: Mumbai, India
Posts: 242 shantanuo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 15 h 18 m 16 sec
Reputation Power: 9
PHP Memory allocation issue:

[root@comp-server ~]# head -30000 mysql-slow.log > mysql-slow1.log
[root@comp-server ~]# php mysql_filter_slow_log.php mysql-slow1.log > mysql-slow-queries.log

The first 30,000 lines works ok. But it I select the first 40,000 then I get an error as displayed.

[root@comp-server ~]# head -40000 mysql-slow.log > mysql-slow1.log
[root@comp-server ~]# php mysql_filter_slow_log.php mysql-slow1.log > mysql-slow-queries.log
PHP Fatal error: Allowed memory size of 31457280 bytes exhausted (tried to allocate 71 bytes) in /root/mysql_filter_slow_log.php on line 545

How do I correct the problem and run the query on 40,000 lines instead of 30,000 lines?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > PHP Memory allocation issue:


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway