That -really- seemed to slow down.. almost everything I did. Although when I looked at the results, I was seeing not alot of time spent on the queries.<div><br></div><div><div>/index.html - 0.0208s Toggle 45 queries</div>
<div>/Ticket/Display.html - 0.1104s Toggle 65 queries</div><div>/Search/Results.html - 0.5969s Toggle 232 queries</div></div><div><br></div><div>The only extension I'm running is one called BriefHistory, which filters out a lot of stuff we don't want to sift through in the comments section of tickets, but considering the slowdown can occur on the main page, search pages (before criteria is even entered), etc... I don't think that's the factor. Just to be sure, I restarted without it loaded, and saw similar delays. Below is my current RT_SiteConfig.pm.. does anything look wrong?</div>
<div><br></div><div><div>### Set to try to stop the lag....</div><div>Set($WebSessionClass, "Apache::Session::File");</div><div><br></div><div>Set( $rtname, '-CENSORED-');</div><div>Set($Organization , "-CENSORED-");</div>
<div>Set($CorrespondAddress , '-CENSORED-');</div><div>Set($CommentAddress , '-CENSORED-');</div><div>Set($MailCommand, 'smtp');</div><div>Set($SMTPServer, '-CENSORED-');</div><div>Set($SMTPFrom , '-CENSORED-');</div>
<div>Set($NotifyActor , '1');</div><div>Set($OwnerEmail , 'root');</div><div>Set($MaxAttachmentSize , 10000000);</div><div>Set($DatabaseType, 'mysql');</div><div>Set($DatabaseUser , 'rt_user'); Set($DatabasePassword , '-CENSORED-');</div>
<div>Set($DatabaseName , 'rt4');</div><div>Set($WebPath , "");</div><div>Set($WebBaseURL , "http://-CENSORED-");</div><div>Set(@Plugins,qw(RT::Extension::BriefHistory));</div><div>1;</div><div>
</div><br><div class="gmail_quote">On Mon, May 23, 2011 at 1:42 PM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, May 23, 2011 at 09:09:08AM -0400, Chris Hall wrote:<br>
> Seems after watching a few days this is still an issue. It seems completely<br>
> random.. some pages just... take awhile to load for some reason. 15 - 20<br>
> seconds, and then you can blast through a few pages instantly it seems...<br>
> completely random. I've checked the logs, no errors or anything that stands<br>
> out. Some of the pages that slow down don't access replying via email, so<br>
> SMTP wouldn't be the issue. I examined again my slow query logs for mysql<br>
> and yesterday got this:<br>
<br>
</div>None of these queries look like something generated by RT. RT's ORM<br>
has some... signatures it leaves on the query.<br>
<br>
Are you perhaps using some sort of backup or indexing tool, or an<br>
extension developed in-house?<br>
<div class="im"><br>
> # Time: 110523 2:30:10<br>
> # User@Host: rt_user[rt_user] @ localhost []<br>
> # Query_time: 6 Lock_time: 0 Rows_sent: 70390 Rows_examined: 70390<br>
> use rt3;<br>
> SELECT /*!40001 SQL_NO_CACHE */ * FROM `Attachments`;<br>
> # Time: 110523 2:30:17<br>
> # User@Host: rt_user[rt_user] @ localhost []<br>
> # Query_time: 4 Lock_time: 0 Rows_sent: 125353 Rows_examined: 125353<br>
> SELECT /*!40001 SQL_NO_CACHE */ * FROM `Transactions`;<br>
> # Time: 110523 2:30:20<br>
> # User@Host: rt_user[rt_user] @ localhost []<br>
> # Query_time: 3 Lock_time: 0 Rows_sent: 10343 Rows_examined: 10343<br>
> SELECT /*!40001 SQL_NO_CACHE */ * FROM `sessions`;<br>
<br>
</div>If you'd like to try and examine SQL problems on a particular page, you<br>
can enable $StatementLog and examine the output from the Configuration<br>
-> Tools page as a superuser.<br>
<font color="#888888"><br>
-kevin<br>
</font><div><div></div><div class="h5"><br>
> However, that's only 3 entries.. it happens much more often than that. I'm<br>
> thinking I'll see the CPU peg out maybe 5 - 8 times in a 5 min span, for<br>
> about 10 - 15 seconds each time watching top. My only thought is there's<br>
> some type of a miscommunication between apache and mysql, but I have no idea<br>
> what. At this point, I'm open to any and all suggestions. Please, if<br>
> anybody has any suggestions on where to look, I'd appreciate it.<br>
><br>
> On Thu, May 19, 2011 at 10:33 AM, Chris Hall <<a href="mailto:hiro24@gmail.com">hiro24@gmail.com</a>> wrote:<br>
><br>
> > Well, resolved the below a bit by adding to RT_SiteConfig.pm:<br>
> ><br>
> > Set($WebSessionClass, "Apache::Session::File");<br>
> ><br>
> > However, CPU usage still peaks out on apache2 processes, although it<br>
> > appears to be not AS frequent. Anybody have any other suggestions on areas<br>
> > to look into? Some are saying the slowdown seems to occur most frequently<br>
> > when updating tickets.<br>
> ><br>
> ><br>
> > On Wed, May 18, 2011 at 8:36 PM, Chris Hall <<a href="mailto:hiro24@gmail.com">hiro24@gmail.com</a>> wrote:<br>
> ><br>
> >> I actually saw something about that in a message to the mailing list, and<br>
> >> already turned it off as well, as a precaution. After searching around<br>
> >> some and trying out some tests, it seems the delay happens after the GET<br>
> >> request to the apache server, and watching the logs, nothing appears in the<br>
> >> log until about 20 seconds after the request to say the user asked for it..<br>
> >> so there's about 20 - 30 seconds of dead time from the GET to when the log<br>
> >> shows a request was made. On a forum recommendation, I enabled slow mysql<br>
> >> logging and noticed several entries in the log. Here is a sample:<br>
> >><br>
> >> # User@Host: rt_user[rt_user] @ localhost []<br>
> >> # Query_time: 3246 Lock_time: 0 Rows_sent: 1 Rows_examined: 0<br>
> >> SELECT GET_LOCK('Apache-Session-8a63b00ecb1829c65682fc75db1c05be', 3600);<br>
> >> # User@Host: rt_user[rt_user] @ localhost []<br>
> >> # Query_time: 3204 Lock_time: 0 Rows_sent: 1 Rows_examined: 0<br>
> >> SELECT GET_LOCK('Apache-Session-8a63b00ecb1829c65682fc75db1c05be', 3600);<br>
> >> # User@Host: rt_user[rt_user] @ localhost []<br>
> >> # Query_time: 2897 Lock_time: 0 Rows_sent: 1 Rows_examined: 0<br>
> >> SELECT GET_LOCK('Apache-Session-8a63b00ecb1829c65682fc75db1c05be', 3600);<br>
> >> # User@Host: rt_user[rt_user] @ localhost []<br>
> >> # Query_time: 2885 Lock_time: 0 Rows_sent: 1 Rows_examined: 0<br>
> >> SELECT GET_LOCK('Apache-Session-8a63b00ecb1829c65682fc75db1c05be', 3600);<br>
> >> # Time: 110518 19:51:37<br>
> >> # User@Host: rt_user[rt_user] @ localhost []<br>
> >> # Query_time: 1660 Lock_time: 0 Rows_sent: 1 Rows_examined: 0<br>
> >> SELECT GET_LOCK('Apache-Session-8a63b00ecb1829c65682fc75db1c05be', 3600);<br>
> >> # Time: 110518 19:56:44<br>
> >> # User@Host: rt_user[rt_user] @ localhost []<br>
> >> # Query_time: 14 Lock_time: 0 Rows_sent: 1 Rows_examined: 0<br>
> >> SELECT GET_LOCK('Apache-Session-29fd7421a2e8981d99740258bbb9aea3', 3600);<br>
> >><br>
> >><br>
> >> Dunno if they are of any help, but to me, it seems to indicate several<br>
> >> SELECT queries that are running long for... whatever reason. Do these logs<br>
> >> make sense to anybody?<br>
> >><br>
> >> On Wed, May 18, 2011 at 6:33 PM, Jonah Hirsch <<a href="mailto:jwh83@nau.edu">jwh83@nau.edu</a>> wrote:<br>
> >><br>
> >>> I was having this issue, same exact versions and problems with apache2. I<br>
> >>> turned off mod_deflate and that helped a bit, but I'm still getting some<br>
> >>> slowdowns, just not as much as before.<br>
> >>> -----------------------<br>
> >>> Jonah Hirsch<br>
> >>><br>
> >>><br>
> >>><br>
> >>> On Wed, May 18, 2011 at 11:31 AM, Chris Hall <<a href="mailto:hiro24@gmail.com">hiro24@gmail.com</a>> wrote:<br>
> >>><br>
> >>>> Not sure where to start here, but trying to diagnose why after an<br>
> >>>> upgrade from 3.8.8 to 4.0.0 things have slowed down tremendously. Doing<br>
> >>>> even pedestrian tasks such as loading the home screen or opening the ticket<br>
> >>>> search will about 30% of the time decide it wants to max out the cpu with<br>
> >>>> the apache2 process for roughly 20 - 30 seconds. Sometimes, loading things<br>
> >>>> happens almost instantaneously. Other times, there's this weird delay. Not<br>
> >>>> sure where to start looking, are there any known issues that I might need to<br>
> >>>> be aware of?<br>
> >>><br>
> >>><br>
> >>><br>
> >><br>
> ><br>
<br>
</div></div></blockquote></div><br></div>