ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gareth Carter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OFBIZ-9208) reinstate url cache in UtilURL.fromResource
Date Wed, 08 Feb 2017 13:17:41 GMT
Gareth Carter created OFBIZ-9208:

             Summary: reinstate url cache in UtilURL.fromResource
                 Key: OFBIZ-9208
                 URL: https://issues.apache.org/jira/browse/OFBIZ-9208
             Project: OFBiz
          Issue Type: Bug
          Components: base
    Affects Versions: Trunk
            Reporter: Gareth Carter
            Priority: Trivial

Adrian created the following commit to cache URL objects 

Revision: 1649979
Author: adrianc
Date: 07 January 2015 00:24:28
Some optimizations for URL lookups.
Modified : /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java
Modified : /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilURL.java

and was later reverted in this commit

Revision: 1650347
Author: adrianc
Date: 08 January 2015 17:53:59
Some small fixups for some of my previous commits.
Modified : /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityClassLoader.java
Modified : /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilURL.java

We have found in one of our production servers that 

url = loader.getResource(resourceName);

has caused locking and looking at the stack trace (from jstack) there are numerous threads
waiting on locks from within this method

I propose the cache gets added back (we have done this as a patch on our systems with no ill

FYI - The commits are in reference to the EntityClassLoader which is not used and does not
work see OFBIZ-6210

This message was sent by Atlassian JIRA

View raw message