From: François-Xavier B. <fra...@ce...> - 2012-03-21 14:24:13
|
OK, so we should wrap the TreeSet and HashMap used in Output class using Collections.synchronizedSortedSet(...) and Collections.synchronizedMap(...) Nicolas, can you check that it fixes the problem ? Le 21/03/2012 15:10, Alexis Thaveau a écrit : > http://java.dzone.com/articles/concurrency-and-hashmap > > Le 21/03/2012 15:08, Alexis Thaveau a écrit : >> The main bug is that headers.put is called by several threads at same >> time. As you said, thread are still runnable, i think map is broken, >> and result is a kind of infinite loop. >> >> >> >> >> >> Le 21/03/2012 14:53, François-Xavier Bonnet a écrit : >>> This is a real problem but do you think it can explain the 100% CPU ? >>> Shouldn't we have some ConcurrentModificationException ? >>> Cordialement, >>> >>> François-Xavier Bonnet >>> Responsable de production >>> Smile - Open Source Solutions >>> www.smile.fr >>> Tél : +33 1 41 40 59 28 >>> Fax : +33 1 47 30 25 61 >>> GSM : +33 6 17 45 19 08 >>> >>> Le 21/03/2012 11:52, Alexis Thaveau a écrit : >>>> Hi, >>>> >>>> Implementation of TreeSet is not synchronized => not thread safe. >>>> http://docs.oracle.com/javase/6/docs/api/java/util/TreeSet.html >>>> TreeSet must be wrapped with Collections.synchronizedSortedSet || >>>> <http://docs.oracle.com/javase/6/docs/api/java/util/Collections.html#synchronizedSortedSet%28java.util.SortedSet%29> >>>> >>>> >>>> Le 21/03/2012 11:44, Nicolas Richeton a écrit : >>>>> Hi all >>>>> >>>>> We have an issue with with ESIGate 2.19 under load, resulting to 100% cpu usage and lock. >>>>> >>>>> Please have a look to : >>>>> http://sourceforge.net/apps/mantisbt/webassembletool/view.php?id=84 >>>>> >>>>> We have the setup show the issue, but not easy to test. Problem arises after several hours. >>>>> >>>>> This seems to be linked to the new cache system because older versions of ESIGate did not show any locking under heavy load. >>>>> >>>>> Andreii : any idea/comments on this issue ? >>>>> >>>>> Nicolas >>>>> ------------------------------------------------------------------------------ >>>>> This SF email is sponsosred by: >>>>> Try Windows Azure free for 90 days Click Here >>>>> http://p.sf.net/sfu/sfd2d-msazure >>>>> _______________________________________________ >>>>> Webassembletool-devel mailing list >>>>> Web...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/webassembletool-devel >>>> >>>> >>>> -- >>>> Alexis Thaveau >>>> Agence Nantes >>>> Smile - Open Source Solutions >>>> http://www.smile.fr >>>> Tél : 02 40 08 68 10 >>>> Mailto :ale...@sm... >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF email is sponsosred by: >>>> Try Windows Azure free for 90 days Click Here >>>> http://p.sf.net/sfu/sfd2d-msazure >>>> >>>> >>>> _______________________________________________ >>>> Webassembletool-devel mailing list >>>> Web...@li... >>>> https://lists.sourceforge.net/lists/listinfo/webassembletool-devel >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF email is sponsosred by: >>> Try Windows Azure free for 90 days Click Here >>> http://p.sf.net/sfu/sfd2d-msazure >>> >>> >>> _______________________________________________ >>> Webassembletool-devel mailing list >>> Web...@li... >>> https://lists.sourceforge.net/lists/listinfo/webassembletool-devel >> >> >> -- >> Alexis Thaveau >> Agence Nantes >> Smile - Open Source Solutions >> http://www.smile.fr >> Tél : 02 40 08 68 10 >> Mailto :ale...@sm... >> >> >> ------------------------------------------------------------------------------ >> This SF email is sponsosred by: >> Try Windows Azure free for 90 days Click Here >> http://p.sf.net/sfu/sfd2d-msazure >> >> >> _______________________________________________ >> Webassembletool-devel mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/webassembletool-devel > > > -- > Alexis Thaveau > Agence Nantes > Smile - Open Source Solutions > http://www.smile.fr > Tél : 02 40 08 68 10 > Mailto :ale...@sm... > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > > _______________________________________________ > Webassembletool-devel mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webassembletool-devel |