Defect #6796
Long Description Causes 100% CPU on Windows
| Status: | New | Start date: | 2010-11-02 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Issues | |||
| Target version: | - | |||
| Affected version: | 1.0.2 | Resolution: |
Description
DB: postgres 8.4.3
Ruby: 1.8.7
Rails: 2.3.5
Redmine: 1.0.2
Creating an issue with a long description causes 100% CPU utilization on Windows. The text I was adding to the description is attached as a file.
History
#1 Updated by Felix Schäfer over 1 year ago
Which process eats up the CPU? Ruby or the DB?
#2 Updated by Erich Rockman over 1 year ago
Sorry. Ruby.exe.
#3 Updated by Felix Schäfer over 1 year ago
Mmh, I don't have a windows machine so I can't try to reproduce it… Have you tried reproducing it on the demo redmine? If not, please do so.
#4 Updated by Jean-Philippe Lang over 1 year ago
I can confirm the issue. And it comes from Redcloth3 that takes minutes to format this 185kB text.
A solution would be to upgrade to Redcloth4 which is considerably faster for such long texts.
#5 Updated by Erich Rockman over 1 year ago
Thanks. I did a gem install RedCloth. It installed 4.2.3. How do I get redmine to see it. Seems to still be using v3. Thanks.
#6 Updated by Jean-Baptiste Barth over 1 year ago
RedCloth 4 is not supported for the moment, see #6269 ; the patch provided there will just let you boot redmine with redcloth 4, but it's absolutely not functional (you'll have basic textile working, but not the additions from redmine itself, such as autolinking on ticket numbers, wiki pages, etc.)
