# Memory Leak When Searching For Multilingual Keyword(s)

**URL:** <https://www.ruby-forum.com/t/memory-leak-when-searching-for-multilingual-keyword-s/104830>\
**Category:** Ferret\
**Created:** [May 23, 2007, 2:00am UTC](https://www.ruby-forum.com/t/memory-leak-when-searching-for-multilingual-keyword-s/104830 "2007-05-23T02:00:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arthur\_Chui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6a8cbe/32.png) [@Arthur\_Chui](https://www.ruby-forum.com/u/Arthur_Chui)\
**Post date:** [May 23, 2007, 2:00am UTC](https://www.ruby-forum.com/t/memory-leak-when-searching-for-multilingual-keyword-s/104830/1 "2007-05-23T02:00:57Z")

</div>

On Windows XP, I played the AAF demo  
(svn://projects.jkraemer.net/acts\_as\_ferret/trunk/demo) that works  
nicely with English content. However, if the keyword is non-English (no  
matter whether there is any content in db), the server immediately  
causes memory leak over 1GB and stops responding. The languages I tried  
include:

French (utf-8)  
German (utf-8)  
Spanish (utf-8)  
Chinese (utf-8)  
Japanese (utf-8)

Seems no existing online article / trick would solve the issue. I had  
already tried all the tricks:

1. MultiLingualFerretTools plugin
2. set in environment.rb:  
$KCODE = ‘u’  
require ‘jcode’  
ENV[‘LANG’] = ‘de\_DE.UTF-8@euro’  
ENV[‘LC\_TIME’] = ‘C’

---

<div class="post-metadata">

**Author:** ![Arthur\_Chui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6a8cbe/32.png) [@Arthur\_Chui](https://www.ruby-forum.com/u/Arthur_Chui)\
**Post date:** [May 23, 2007, 9:58am UTC](https://www.ruby-forum.com/t/memory-leak-when-searching-for-multilingual-keyword-s/104830/2 "2007-05-23T09:58:23Z")

</div>

On Wed, May 23, 2007 at 02:00:57AM +0200, Arthur Chui wrote:

> On Windows XP, I played the AAF demo  
> (svn://projects.jkraemer.net/acts\_as\_ferret/trunk/demo) that works  
> nicely with English content. However, if the keyword is non-English (no  
> matter whether there is any content in db), the server immediately  
> causes memory leak over 1GB and stops responding. The languages I tried  
> include:

Afair this is a win32 related problem, I never saw this behaviour on  
Linux.

Jens

–  
Jens Krämer  
webit! Gesellschaft für neue Medien mbH  
Schnorrstraße 76 | 01069 Dresden  
Telefon +49 351 46766-0 | Telefax +49 351 46766-66  
removed\_email\_address@domain.invalid | [www.webit.de](http://www.webit.de)

Amtsgericht Dresden | HRB 15422  
GF Sven Haubold, Hagen Malessa
