(Professional sysadmins laugh at me, so take this with a grain of
salt…)
You’ve got serious memory problems. You’ve more than filled your memory
the numbers for swap are horrible. Ideally you want SwapFree and
SwapTotal
to be the same (as in swapping == pain). You certainly want to slap in
another gig of memory, maybe more, and then keep an eye on things.
Why do you say “initial” swapping? The system’s running at max memory
right
now, no? MemFree is essentially zero.
here is a copy of the /proc/meminfo. There are a couple of java apps
running that could be using a decent amount of mem that could be
accounting
for the intial swapping. That data i sent in my previous email was
after
the app had no requests for quite a few hours but the mongrels have been
up
for a few days.
Yeah … ouch. 800MB swapped on 1GB of real memory? Linux will
definately aggressively keep stuff in REAL memory so its not unusual to
see used memory at about 100% of total real memory, but the same is not
true of swap.
But this is precisely the same scenario I had about 3 weeks ago. I had
about 256MB swapped on 512MB of real ram … anytime I would come back
to the site it would take a while to load then be snappy. Then two days
later as the busier services pushed lightty+fcgi into swap I was back in
Suckville. I bumped up to 1.5GB and was all better.
Get some more RAM or migrate some services elsewhere. This is the point
where I start wishing everything was a virtual machine …
I have seen rails training costing from 2k - 5k given by the Rails
gurus. Since I am not a big fan
of throwing away money and expecting to cram everything in 3 to 5 days,
I am looking for someone
who is willing to provide online training for newbies.
You could just conduct the training twice or three times a week. One
hour per session would be
good enough. Just a simple webcam and the ability to ask questions and
get doubts clarified would
be great. Very practical and hands-on approach with tons of
exercises/homework would be great.
This would be a great opportunity for developers who work full time to
use whatever time is left
to learn Rails quickly. Plus no travel expenses and no need to use your
vacation time!!! It would
also be great to customize the training according to the needs of the
students.
Please reply to this thread so that we can find instructors as well as
students who want to enroll
in the course.
i have been plaugued by the same issues with fcgi and mongrel. The
first startup times are really bad, then every request after that
is blazing fast. I am still yet to find any real solution to this
other than cronning a wget to my site every 30 minutes, which seems
really silly.
I think the only thing that would help will be to preload all of your
classes when the app starts up.
–
Julian ‘Julik’ Tarkhanov
please send all personal mail to
me at julik.nl
Where is your thread buddy? Is the training already available? How can I enroll?
Julik was pointing out that you hijacked the thread “Mongrel / RoR first
page load times”, by replying to a message in that thread and changing
the subject line. You should have posted a new message, rather than
replying in an existing thread.