x-stream / xstream

Serialize Java objects to XML and back again.
http://x-stream.github.io
Other
749 stars 226 forks source link

Sometimes the high concurrency can lead to CPU 100% #32

Closed springdawn2003 closed 8 years ago

springdawn2003 commented 8 years ago

Sometimes the high concurrency can lead to CPU 100%.Proposed 'com.thoughtworks.xstream.core.util.PrioritizedList:private final Set set = new TreeSet();' to 'private final Set set = new ConcurrentSkipListSet();'.

joehni commented 8 years ago

Can you give more information, how the situation occurs?

springdawn2003 commented 8 years ago

testing servers(jetty 9.2.13):

image

test case : xstream.fromXML(xml); up to 50 user on loadrunner,cpu will up to 100% and can't down again.....

xstream_problems_00

use jmc trace the source:

xstream_problems_01

joehni commented 8 years ago

Thanks for the detailed information. AFAICS it is a duplicate of #2. Therefore I close this issue and you may track the other one.