6.0.0-beta1
7/19/25

[#8379] High CPU utilization watching HTML messages
Summary High CPU utilization watching HTML messages
Queue DIMP
Queue Version FRAMEWORK_3
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester jan (at) horde (dot) org
Created 06/26/2009 (5867 days ago)
Due
Updated 07/13/2009 (5850 days ago)
Assigned
Resolved 07/13/2009 (5850 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/13/2009 10:12:28 AM Jan Schneider Comment #10
Taken from Michael Slusarz
Taken from Jan Schneider
State ⇒ Not A Bug
Reply to this comment
Turns out that this is due to the PHP-based JSON encoding, namely the 
preg_match_all() call when encoding strings.
07/07/2009 09:22:10 PM Michael Slusarz Comment #9 Reply to this comment
Jan's issue dealt with FW_3 - once he gets back, hopefully he'll be 
able to track this down a bit more.
07/07/2009 09:17:55 PM Chuck Hagenbuch Comment #8 Reply to this comment
Basically confirmed; the issue I saw is much much better after another pull.
07/07/2009 09:12:07 PM Michael Slusarz Comment #7 Reply to this comment
In the latest git IMP, as of today, I am now seeing HTML message not
loading at all (maybe they'd complete after a long time) in the
preview. If I open them in a separate window, it works. So there
might be an issue with the difference (separate window vs. not?).

This was *not* a problem for me until today's git updates for the
Cleanhtml filters and related.
This was likely due to a charset issue that was resolved earlier today.


07/07/2009 08:24:36 PM Chuck Hagenbuch Comment #6 Reply to this comment
In the latest git IMP, as of today, I am now seeing HTML message not 
loading at all (maybe they'd complete after a long time) in the 
preview. If I open them in a separate window, it works. So there might 
be an issue with the difference (separate window vs. not?).



This was *not* a problem for me until today's git updates for the 
Cleanhtml filters and related.
06/26/2009 05:46:20 PM Michael Slusarz Comment #5 Reply to this comment
I don't see this.  That message loads instantaneously in Git, and 
slightly slower (maybe a second or so) on FW_3.  I am using tidy, 
although disabling in Git doesn't seem to affect loadspeed at all.   
But no crushing CPU utilization seen for me.
06/26/2009 01:34:29 PM Jan Schneider Summary ⇒ High CPU utilization watching HTML messages
 
06/26/2009 01:34:04 PM Jan Schneider Comment #4 Reply to this comment
Disabling the session handler doesn't change the CPU problem, but at 
least it doesn't log me out anymore. Both issues have to tracked 
separately.
06/26/2009 01:21:46 PM Jan Schneider Comment #3
New Attachment: heise online News 25.06.2009.eml Download
Reply to this comment
For the record, this also happens with loading the message in the 
preview, though the session doesn't time out. Attached is an example 
HTML message.
06/26/2009 01:17:26 PM Jan Schneider Comment #2 Reply to this comment
Maybe not a DIMP issue. Not sure if this is symptom or root of the 
problem, but I just noticed that I have the mysql session handler 
configured, probably for debugging reasons. This is what I get in the 
log:



Jun 26 15:11:06 HORDE [error] [horde] Error retrieving session data 
(id = 6a119572ade9652e716a388de9afc4fc): Lock wait timeout exceeded; 
try restarting transaction [pid 31607 on line 144 of 
"/srv/www/htdocs/horde/framework/SessionHandler/SessionHandler/mysql.php"]

Jun 26 15:15:09 HORDE [notice] [imp] 201.7.142.10 Ihre Webmail-Session 
ist abgelaufen. Bitte melden Sie sich erneut an. [pid 31622 on line 67 
of "/srv/www/htdocs/horde/imp/login.php"]

Jun 26 15:15:10 HORDE [notice] [imp] Session timeout for client 
[201.7.142.10] [pid 31622 on line 102 of 
"/srv/www/htdocs/horde/imp/login.php"]


06/26/2009 01:14:57 PM Jan Schneider Comment #1
State ⇒ Feedback
Patch ⇒ No
Milestone ⇒
Assigned to Michael Slusarz
Assigned to Jan Schneider
Queue ⇒ DIMP
Summary ⇒ High CPU utilization watching HTML messages in a popup
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
This is to track a problem I noticed that I can't track down any 
further at the moment. When viewing some HTML messages in a popup that 
otherwise render fine in plain IMP, causes a high CPU load on the 
server and eventually log me out of the session.

Saved Queries