#3779 closed defect (fixed)
Reports takes minutes to complete
Reported by: | omry at yadan dot net | Owned by: | Christian Boos |
---|---|---|---|
Priority: | high | Milestone: | 0.10.1 |
Component: | wiki system | Version: | 0.10b1 |
Severity: | critical | Keywords: | slow |
Cc: | trac@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
My database contains about 35 tickets. recently reports started to work very slowly. when I open a report, apache cpu usage spikes to 100% for a few minutes (!) and then I get the results. I inserted the sql query directly into sqlite3, and it returned instantly
Note: this is a problem with the wiki engine, when rendering attachment:ticket35.txt
— cboos
Attachments (2)
Change History (26)
comment:1 by , 18 years ago
comment:3 by , 18 years ago
Keywords: | needinfo added |
---|
comment:6 by , 18 years ago
Keywords: | needinfo removed |
---|---|
Milestone: | → 0.10.1 |
assigned to milestone 0.10.1
comment:7 by , 18 years ago
Milestone: | 0.10.1 |
---|
Do not assign a milestone without providing a reason or a patch.
Please describe your environment (version of the OS, Python, Svn, Pysqlite, etc.)
comment:8 by , 18 years ago
Debian etch. Kernel 2.6.15. Python 2.4 SVN 1.3.2 pysqlite: 1.1.7-2 AND 2.3.2-1 (could this be the problem?)
comment:11 by , 18 years ago
figured it out: ticket 35 in the attached database had a long message insife ![brackets]. when I deleted it from the database all went back to normal.
comment:12 by , 18 years ago
Owner: | changed from | to
---|
hm, that's not a good reason to take minutes… Can you please copy/paste that message in a block, here? (or attach it?)
comment:13 by , 18 years ago
Cc: | added |
---|
I removed it from my database, but its in the attached file. ticket 35.
comment:14 by , 18 years ago
After upgrade sqlite2 → sqlite3, got same problem. Very slow and httpd > 99% CPU (eaccelerator website …)
comment:15 by , 18 years ago
sorry, i forgot some things: Fedora Core 3, Python 2.4 Trac 0.9.3
Before update sqlite, everything was ok.
comment:16 by , 18 years ago
franck34, as an emergency care, find the bad ticket and remove it from the database. you can do it by viewing all the tickets on at a time till you find the slow one. there was no obvious way to remove the ticket, but I found something after some searching.
comment:17 by , 18 years ago
Keywords: | slow added |
---|
Very good !
I found a ticket with a description > 300 000 chars.
I've change the description of this ticket and i put 99% of the description in an attachement instead of directly in the description.
Now everything is ok, problem solved for me.
comment:18 by , 18 years ago
As suggested by matt_good on irc, request feature as been written in ticket #3944
comment:19 by , 18 years ago
My problem is not due to a huge ticket size. I extracted the ticket content from the database and I am attacing.
by , 18 years ago
Attachment: | ticket35.txt added |
---|
comment:20 by , 18 years ago
Component: | report system → wiki |
---|---|
Description: | modified (diff) |
Milestone: | → 0.10.1 |
Right, problem reproduced. Thanks for having extracted the ticket35.txt ;)
comment:21 by , 18 years ago
comment:22 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Above issue fixed by r3949:3950.
comment:23 by , 18 years ago
Summary: | Reports takes minutes to compleet → Reports takes minutes to complete |
---|
if you need my database or anything else to reproduce, just ask.