Fixed
Details
Assignee
Florian SchmausFlorian SchmausReporter
wrootwrootComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Florian Schmaus
Florian SchmausReporter
wroot
wrootComponents
Fix versions
Affects versions
Priority
Created September 16, 2011 at 10:10 AM
Updated October 28, 2020 at 1:26 PM
Resolved March 4, 2013 at 9:55 AM
We found that after running for several hours, the openfire server always has a 100% CPU usage.
By using the jvirtualVM to monitor the CPU usage sample graph, we found this
is caused by the read() method (see the code below) of the FlashCrossDomainHandler
class. it can run into a infinite loop under some circumstances.
http://fisheye.igniterealtime.org/browse/~br=trunk/openfire/trunk/src/java/org/jivesoftware/openfire/FlashCrossDomainHandler.java?r=11608#to156
Then we commented the read() method, the validation of the incoming stream and
returned the cross domain policy text straightway in while loop of the startServer()
method , as the result the CPU usage became normal.