Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Thu Apr 13, 2006 7:07 pm 
Offline
Senior Member

Joined: Thu Sep 29, 2005 9:52 pm
Posts: 79
Website: http://www.hectorg.net
Location: Miami, Florida
I think I may have found my problem

I wasn't releasing my result sets from my queries. like you saw in the warnings above. Im not sure why this would make mysql crash but it did. I thought the result sets automatically closed upon exit of the query or the page? Or even time out after a while.

Here was the solution

<?php

mysql_free_result("QUERY VARIABLE HERE");

?>


Top
   
 Post subject: Its back
PostPosted: Tue Apr 18, 2006 4:44 pm 
Offline
Senior Member

Joined: Thu Sep 29, 2005 9:52 pm
Posts: 79
Website: http://www.hectorg.net
Location: Miami, Florida
Problem is back! even with all my pages releasing the results. I also tried closing the mysql connection but that didnt seem to help either. I have not done this to all my pages though. Is it advisable to close my connection on every page? I do multiple quieries to the same database. :?


Top
   
 Post subject:
PostPosted: Wed Apr 19, 2006 7:43 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Have you ran mysqlcheck (or whatever it's called) on all your tables?

Just a thought...

-Chris


Top
   
 Post subject:
PostPosted: Thu Apr 20, 2006 6:55 am 
Offline
Senior Member

Joined: Thu Sep 29, 2005 9:52 pm
Posts: 79
Website: http://www.hectorg.net
Location: Miami, Florida
No actualy I havent I will try that and get back to you.


Top
   
 Post subject:
PostPosted: Thu Apr 20, 2006 6:34 pm 
Offline
Senior Member

Joined: Thu Sep 29, 2005 9:52 pm
Posts: 79
Website: http://www.hectorg.net
Location: Miami, Florida
2 clients are using or haven't closed the table properly
this is all I get but its on acouple of tables...

did it a couple of times more and evretrything checks out ok


Top
   
 Post subject:
PostPosted: Thu Apr 20, 2006 6:41 pm 
Offline
Senior Member

Joined: Thu Sep 29, 2005 9:52 pm
Posts: 79
Website: http://www.hectorg.net
Location: Miami, Florida
This might give us a clue.
I have max media manager installed after getting errors so I know its not because of this and I get this whenever I try to see statistics.


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /var/www/localhost/htdocs/xyz/max-v0.3.21-alpha/lib/pear/HTML/Template/Flexy/Tokenizer.php on line 1197


Top
   
 Post subject:
PostPosted: Fri Apr 21, 2006 12:20 am 
Offline
Senior Member

Joined: Thu Sep 29, 2005 9:52 pm
Posts: 79
Website: http://www.hectorg.net
Location: Miami, Florida
seems that is a different error I just upped the memory to 16M instead of the default 8 and I got rid of the problem above.

Havent had mysql crash today yet but I dont think the two problems were related.


Top
   
 Post subject:
PostPosted: Mon Apr 24, 2006 3:25 pm 
Offline
Senior Member

Joined: Thu Sep 29, 2005 9:52 pm
Posts: 79
Website: http://www.hectorg.net
Location: Miami, Florida
Server still crashing randomly no Idea what to try next. The code seems to work great on the development machine without a problem.
Development machine has same setup gentoo os and mysql versions are identical.


Top
   
 Post subject:
PostPosted: Mon May 01, 2006 10:31 pm 
Offline
Senior Member

Joined: Thu Sep 29, 2005 9:52 pm
Posts: 79
Website: http://www.hectorg.net
Location: Miami, Florida
I just unmerged removed all traces of mysql nd reinstalled mysql 5.0... still seems to have the same problem.


is this a bad setup for a production server?


Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode On On


mysql.trace_mode I just turned this off


Top
   
 Post subject:
PostPosted: Tue May 02, 2006 7:15 pm 
Offline
Senior Member

Joined: Thu Sep 29, 2005 9:52 pm
Posts: 79
Website: http://www.hectorg.net
Location: Miami, Florida
host 45 reboot this morning might have solved my problem.

I can't pinpoint it though because I un-merged mysql removed all databases and re-emerged mysql then restored my databases.

everything was running until host 45 just stopped responding at around 7:12 EST.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group