[jboss-jira] [JBoss JIRA] Resolved: (JGRP-525) CPU spinning at 100%

Bela Ban (JIRA) jira-events at lists.jboss.org
Mon Jun 11 04:09:11 EDT 2007


     [ http://jira.jboss.com/jira/browse/JGRP-525?page=all ]

Bela Ban resolved JGRP-525.
---------------------------

    Resolution: Done

Switched from HashSet to ConcurrentHashMap which is reentrant

> CPU spinning at 100%
> --------------------
>
>                 Key: JGRP-525
>                 URL: http://jira.jboss.com/jira/browse/JGRP-525
>             Project: JGroups
>          Issue Type: Bug
>            Reporter: Bela Ban
>         Assigned To: Bela Ban
>             Fix For: 2.5
>
>
> This happened at the end of a perf.Test run, and I think the reason is unsynchronized access to the HashSet (stack trace below), where an entry in the hashmap links to itself (caused by concurrent access). IIRC, the solution was to synchronize access to HashSet/hashMap.
> "Incoming Thread,perf,192.168.0.5:7800" prio=10 tid=0x00002aaacb578c00 nid=0x1cef runnable [0x0000000040b75000..0x0000000040b75c10]
>    java.lang.Thread.State: RUNNABLE
>         at java.util.HashMap.put(HashMap.java:374)
>         at java.util.HashSet.add(HashSet.java:200)
>         at org.jgroups.protocols.BARRIER.up(BARRIER.java:101)
>         at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:154)
>         at org.jgroups.protocols.FD.up(FD.java:328)
>         at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:298)
>         at org.jgroups.protocols.MERGE2.up(MERGE2.java:145)
>         at org.jgroups.protocols.Discovery.up(Discovery.java:220)
>         at org.jgroups.protocols.MPING.up(MPING.java:151)
>         at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1542)
>         at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1491)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list