commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akshay Gehi (JIRA)" <>
Subject [jira] [Commented] (BEANUTILS-509) WeakHashmap enters into infinite loop in
Date Fri, 12 Oct 2018 10:12:00 GMT


Akshay Gehi commented on BEANUTILS-509:

Yes, in my view that would be a good to have this as an enhancement. The need of the hour
is to fix WrapDynaClass because its broken. I am using my own external cache for WrapDynaClass
to avoid this problem (using a ConcurrentHashMap) and createDynaClass is always called in
a thread-safe manner. 

> WeakHashmap enters into infinite loop in
> -----------------------------------------------------------
>                 Key: BEANUTILS-509
>                 URL:
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: DynaBean
>    Affects Versions: 1.8.2
>            Reporter: sunil
>            Priority: Major
>         Attachments: WrapDynaCache.patch, WrapDynaCache_after_svn_commit.patch, console.log.backup
> We noticed that our application was using too much of CPU , all the 6 cores were used. 
> On capturing the thread dump we saw that large number of threads were in the running
state and in :
> at java.util.WeakHashMap.get(
>  at org.apache.commons.beanutils.WrapDynaClass.createDynaClass(
> So we are suspecting that the thread has entered into indefinite while loop and hogging
all the CPU resources.
> I have attached the thread dump for reference.  
> what is the solution for this issue?

This message was sent by Atlassian JIRA

View raw message