[ 
https://issues.apache.org/jira/browse/UIMA-1722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798728#action_12798728
 ] 

Marshall Schor commented on UIMA-1722:
--------------------------------------

I've prototyped a fix for this, and will attend to it after the 2.3.0 release 
is done.  There are 2 parts to the fix.

# change the CDE so that when it creates Resource Managers and sets their class 
loaders, that it reuses the exact same class loader as before (unless, of 
course, there was some change in the user's build path for the project).  This 
will prevent multiple "loading" of classes (existing ones will be re-used) due 
to switching classloaders.  \\ \\
Use-case reminder: Custom Resource Specifiers, which are specifying the 
inclusion of uima-as because they're being used for uima-as remote services. \\ 
\\
The class loader should be cached using a Java soft reference, so it can 
eventually be cleaned up as space is needed (if it is not being used). \\ \\
# change the CasCreationUtils utility method which gets the metadata for a 
descriptor or collection of these (getMetaDataList) to cache its results and 
re-use that if:
** the arguments are such that the same result would be returned (except for a 
remote AE becoming available or not)
** if the previous try at getting metadata partially failed due to some remote 
not responding, use the cache only for a short time (say 30 seconds); after 
that, try again to see if the remote has become available

> CDE is very slow to open an aggregate containing a remote UIMA-AS component
> ---------------------------------------------------------------------------
>
>                 Key: UIMA-1722
>                 URL: https://issues.apache.org/jira/browse/UIMA-1722
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Async Scaleout, Eclipse plugins
>    Affects Versions: 2.3
>            Reporter: Adam Lally
>
> I have an aggregate containing 3 remote UIMA-AS components.  It takes about a 
> minute (maybe more) to open this in the CDE, which makes it very cumbersome 
> to use.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to