quasi random (kaolinfire) wrote,
quasi random
kaolinfire

why does the server keep choking?

I don't know. No, I'm not sayign which server. Fie on you!

It might be mysql, poorly configured (though I did change the settings from the horrific defaults, and that only seemed to make a difference for a short while); it might be apache's settings, not quite figured out (it's forking like a mad dishware swashbuckler!) But that's probably right. I mean, there's a lot of traffic.

And I thought it might be an open files limit... but I'm thinking it's not. I managed to figure out how to see how many open files each process had ((though maybe, in retrospect, it would be good to search by parent... or user... hmm....)) anyway, for the above:

lsof | tr -s ' ' ' ' | cut -d ' ' -f 2 | uniq -c | sort -n +0

I hadn't known about the -c parameter for uniq. Found it on a very helpful, random solutions sort of blog. Thing.

That's all.

I still don't know what's up with the server.

_could_ be the kajillion cache files sitting in /tmp. I had to write a double for bash loop to kill them all.... well, most of them.

for i in 1 2 3 4 5 6 7 8 9 a b c d e
  do
  for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
    do
    rm -f cache_398dd12b7b99bd78e3d8a7c0f83a8493_$i$j*
  done
done


Trying to delete more than that chunk at a time left, hmm. I forget the error. Too many arguments to rm, or something like that.

I like my bunny. :)
Tags: fun with unix, overworked, server administration, server tuning, shell scripting, unix
Subscribe

  • feedback loops

    Ah, feedback loops. I was kind of out of sorts, yesterday, and for some reason had a lot of diet coke (to try to feel better, though I "knew" it…

  • What would I say?

    What would I say, if I were here? It's 2014, almost 2015—though on and off this year, I've been sure it was 2015. Something about that number. Next…

  • a list of games....

    A friend recently asked for a list of all the games I have available. And I'd made most of this list up a week ago, for someone else, and figured,…

  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 4 comments