Jump to content

stoneyd

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by stoneyd

  1. i had the query log on just for a short time to see if i could see any problems in it. but other sites running this same source haven't encountered problems like this. I'm trying to figure out why this happens. Where do you think the bottleneck is happening? Also its gonna be impossible to get ahold of the source code to this.
  2. Well i guess in theory i could go with general log so it logs every query. but in a matter of 20-60 minutes or so i accrued close to 100k or 1mil lines in that file
  3. Seriously? Damn physical hardware limitations. I doubt upgrading RAM would help? but I don't think I'm gonna be able to upgrade the proc or anything else. During low times our load average: 0.32, 0.50, 1.41. I'll post tonight what our peak load averages are.
  4. See it is a intermittent issue. i've got the host set to the the actual ip. the localhost works but the 127.0.0.1 returns 'Warning: mysql_connect(): Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/www/dev/test.php on line 4' no no, back here... lol. right i forgot about that. see localhost works because it connects over the unix socket. but 127.0.0.1 wont work because the mysqld isnt listening to that ip its looking for the actual ip of the server. But under high-ish loads when it connects over the actual ip it the issue above. Which doesnt really make since.
  5. so there is not difference between PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in 'some/file/on/my/web/server.php' and PHP Warning: mysql_connect(): Lost connection to MySQL server at 'reading initial communication packet', system error: 110
  6. I dont think its the same problem. tho the previous problem wasnt getting logged like that. which makes me think it may not be the same problem. if it is the same problem then we just gotten a clearer diagnosis of it
  7. PHP Warning: mysql_connect(): Lost connection to MySQL server at 'reading initial communication packet', system error: 110 And now I get this error. Lovely the first problem disappear and now this shows up. We got 500'd and started getting those errors.
  8. Well if i could have it bind to something without it blocking others then i'd be happy. but from my understanding localhost blocks everything but local connections and 127.0.0.1 as a synonym for localhost would prolly do the same thing. Can someone confirm this?
  9. Well, the average load on the server is usually under 5. tho i think i know why 127.0.0.1 isnt working. the bind in my.cnf is set to my actual ip and not the localhost or 127.0.0.1. I think i set it up like that because from my understanding 127.0.0.1 would have prevented outside connections from a diff server connecting to mysqld. Well since switching to the IP i havent gotten anymore of those errors about cant find mysqld.sock. who knows maybe this fixed it.
  10. See it is a intermittent issue. i've got the host set to the the actual ip. the localhost works but the 127.0.0.1 returns 'Warning: mysql_connect(): Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/www/dev/test.php on line 4'
  11. what were those issues ? And was there anything useful in the error logs ? I think they should have the reason that the connection fails in. You could do it the lazy way and try setting the limit to 100k and see if that helps. Orignally the max connection was set to about 1000. so i think 10k is pretty high comparatively. /var/log/mysql.error.log logs only the startup info then nothing. syslog doesnt do much for me either. php and lighttpd logging doesnt have much
  12. mmk well even with just 127.0.0.1 it had issues. my.cnf max connections is set to 10k processlist is minimal like 3 entries
  13. rofl. Yeah right. Like it ever would tell me what the problem is. However instead of using 127.0.0.1 i decided to try using the real ip of the server. and the site isnt broken. we'll see how this goes. *stoneyd crosses fingers
  14. The socket file is still there. far as i can tell it doesnt go away unless i shutdown the mysql server. So i'm not sure how forcefully reinstall the mysql-server package would help. Could you clarify? Also 4.41 is both rx and tx. yesterday's average is 5.03Mbit/s We have about 25k users and average user daily is just over 3500.
  15. the other sysop was the one who noticed the slow down. i was asleep when it started slowing down. I'll try switching it back. vnstat for today reports avg rate at 4.41mb/s so far. I'll try switching it back. EDIT: Well I tried switching to 127.0.0.1:3306 but apparently the php file i dont have access to editing (they're encrypted) don't like the new config and it breaks the site. define('MYSQL_HOST', 'localhost'); tried changing to define('MYSQL_HOST', '127.0.0.1:3306'); and it breaks my site
  16. I tried that. It bogged down the site. Apparently using the regular 127.0.0.1:3306 causes too much lag and the site massively slows down.
  17. PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in 'some/file/on/my/web/server.php' The file name just changes but I get a ton of these. it seems like the server cant connect to the server at all times. MySQL Server version: 5.1.49-3 PHP Version 5.3.3-7+squeeze1 Since most of the files I have troubles with are encrypted I can't really give you a query statement. And I dont think its specific to a query. i can cat you anything from my.cnf or php.ini. Not sure what kind of info you need. Is it possible that there is a limit how many connections any unix socket can have?
×
×
  • 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.