Ok, thanks for the help. The problem is, there is no "slow action", it's just the login page, it sends one query to the database (10 records total), then redirects to a list of matters (it's just a "Matter.find(:all)). The problem I'm getting is precisely this: there is nowhere to optimize...
The application is a "Matter chooser" (something like this, sorry, english isn't my primary language): Students login into a page, choose a couple of matters, and then submit a form. Problem is, each matter has a limited number of students, so the first one that submits gets the matter. So, the application stays online for two days, and in the first 3 hours of the first day, there are a lot of students (200+) that tries to login, and when passenger timeouts their connections, keep pressing F5 to update the page... and that is when things get complicated, because everyone that already logged-in simply gets a timeout screen. It's no use trying to optimize anything, because this happens only in the first 3 hours, for example - after this, things go back to normal... Suggestions? And, somebody said I could limit simultaneous connections in passenger, how do I do this? Thanks! On Oct 10, 12:04 pm, Tony <[email protected]> wrote: > If you are using MySQL....check your slow query > loghttp://dev.mysql.com/doc/refman/5.1/en/slow-query-log.html > > This can also help you find slow > actions:http://github.com/jtrupiano/slow-actions > > On Oct 10, 10:07 am, Brian Piercy <[email protected]> wrote: > > > Mauricio, > > As one poster suggested, Google 'Scaling Rails' for a good overview. > > My first option would be to look for page caching opportunities. > > Everywhere. > > Best, > > BrianP. > > > On Oct 9, 7:38 am, Maurício Szabo <[email protected]> wrote: > > > > Hello, folks. > > > > We have a system that is used by all students on the university. Problem > > > is, > > > when the system is overloaded, people keep strinking F5, and eventually > > > things become too slow to be usable (sometimes, even passenger dies). > > > > How to protect against these cases? > > > > Thanks in advance, > > > Mauricio --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

