You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Jimmy Monin <jm...@wanadoo.fr> on 2007/01/03 17:11:24 UTC

Asynchron indexing memory overflow

Hi all,

We use Tomcat and Slide in one of our major applications, and we came 
across a known problem with asynchron indexing : files to index are all 
stored in memory! So we implemented a little patch to circumvent this. 
Basically, we don't pass any file content in argument any more (no more 
InputStream field in the IndexJob class) ; we rather user the 
corresponding Uri, from which the content is  retrieved when indexing. 
This way, there's always only one file to index in memory.
As we had made some other changes to the same classes to customize Slide 
to our needs, I had to do some merges (gasp). I know it compiles 
successfully, but I have hardly any time to test it.
Anyway, I hope it'll come in handy to someone.

Cheers,

-- 
Jimmy Monin
EADS DSS SAS


Possible leek of memory in ExtendedKeystore

Posted by Bruno Dorel <bd...@wanadoo.fr>.
Hi all,
The method removeObjectFromCache(Object key) remove  nothing from caches 
due to the fact that the key.toString() method  used several times in 
this méthod refer to the java.lang.Object.toString()  method  . Change 
 removeObjectFromCache(Object key)  to removeObjectFromCache(Uri  key) 
it compiles well and will remove objects  from your caches  and your GC 
will tanks you
You should have a look to the Uri.equals(Object obj)  method and change 
return  as :  return  uri.equals((Uri)obj).uri)  Obj.toString is ambigus


Hope this can Help


B DOREL



Possible leek of memory in ExtendedKeystore

Posted by Bruno Dorel <bd...@wanadoo.fr>.
Hi all,
The method removeObjectFromCache(Object key) remove  nothing from caches 
due to the fact that the key.toString() method  used several times in 
this méthod refer to the java.lang.Object.toString()  method  . Change 
 removeObjectFromCache(Object key)  to removeObjectFromCache(Uri  key) 
it compiles well and will remove objects  from your caches  and your GC 
will tanks you
You should have a look to the Uri.equals(Object obj)  method and change 
return  as :  return  uri.equals((Uri)obj).uri)  Obj.toString is ambigus


Hope this can Help


B DOREL