[
https://jira.jboss.org/browse/GTNPORTAL-1357?page=com.atlassian.jira.plug...
]
Trong Tran updated GTNPORTAL-1357:
----------------------------------
Labels: sprint 36 (was: sprint_36)
Description:
Since GateIn 3.1, We changed a bit on template caching mechanism that the template
resource key are combination of ResourceResolver#hashCode() + templateURL
Unfortunately if a third party is using a custom ResourceResolver which is created newly
for each request, that is the resource key will be always different in each request and it
raises up a memory leak and a performance issues
was:
Since GateIn 3.1, We changed a bit on template caching mechanism that the template
resource key are combination of ResourceResolver#hashCode() + templateURL
This now raises up problems if a third party is using a custom ResourceResolver which is
created newly for each request, that is a memory leak and a performance issue
In fact, the most of problem is that there is no clear API of ResourceResolver. Ideally
GateIn does not expect the method that the resource resolver is newly created in each
request and if a third party that defines a custom ResourceResolver, it has to take care
by itself to ensure the resource key is consistent for a particular URL
So now what we need to do is to update the API to clear the contract between what GateIn
provides and a third party has to follow.
A template caching issue with a custom resource resolver
--------------------------------------------------------
Key: GTNPORTAL-1357
URL:
https://jira.jboss.org/browse/GTNPORTAL-1357
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.1.0-GA
Reporter: Trong Tran
Assignee: Vu Viet Phuong
Fix For: 3.2.0-GA
Original Estimate: 4 hours
Remaining Estimate: 4 hours
Since GateIn 3.1, We changed a bit on template caching mechanism that the template
resource key are combination of ResourceResolver#hashCode() + templateURL
Unfortunately if a third party is using a custom ResourceResolver which is created newly
for each request, that is the resource key will be always different in each request and it
raises up a memory leak and a performance issues
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira