1
Vote

Memory issues

description

Hi Roni
 
I have discovered the same issue as Matt described. Is their any new information on this ?
 

 
regards,
 
lars

file attachments

comments

larskols wrote Jul 1, 2009 at 8:30 PM

Here are some more information:
I have a program (Windows Service) which add data to the cache. It adds about 33000 objects and the total size is about 320 Mb. The problem occurs after running the service several times (adding more or less the same data). The first couple of times it works ok, but 3 or 4 time adding takes very, very long time and memory consumption increases (see attached file).
I have tried with different interval between each run of the service, but the result is the same. After 3 or 4 runs it slows down. Here are the serversettings we are using
<serverSetting
        ServiceCacheIpAddress="127.0.0.1" 
        ServiceCacheIpPort="48888" 
        SharedCacheVersionNumber="3.0.5.1" 
        LoggingEnable="1" 
        ServiceFamilyMode="0" 
        CacheAmountOfObjects="800" 
        CacheAmountFillFactorInPercentage="90" 
        ServiceCacheCleanup="LRU" 
        ServiceCacheCleanupThreadJob="3600000"
        TcpServerMaxThreadToSet="-1" 
        TcpServerMinThreadToSet="-1"
        SocketPoolMinAvailableSize="5"
        SocketPoolValidationInterval="00:02:00"
        SocketPoolTimeout="00:02:00"
        />
lars

wrote Jul 1, 2009 at 8:30 PM

ronischuetz wrote Jul 2, 2009 at 9:15 AM

hi lars, hopefully i'm able to make some tests during the weekend otherwise only next week. The tests I gone to do I will make with the latest sources and if I find something you will have to upgrade your version. Are you somehow available for making also tests? regards, roni

haakonp wrote Jul 3, 2009 at 7:39 AM

Hi.

Great Roni. I'm working with Lars and can do some testing.

Haakon

ronischuetz wrote Jul 3, 2009 at 8:48 AM

hi Haakon, can you send me a private message with your contact details? regards, roni

fabiomargarito wrote Aug 21, 2009 at 6:04 PM

Hi, i have been soffering the also problem. The cache windows service , after high usage and days, reachs 1,5 GB and my cache has only about 5M of objects.

The firts thing i identified were problems with string concatenation in log process from CacheCleanUp class. The usage were so fast, that the GC didn't have enough time do free those objects. I changed to use String.format and this first problem were solved.

Here you can find de dump analysys.. It is portugueses, but i think you able to understand the prints.
http://www.mgrtconsultoria.com/blog/post/O-perigo-de-concatenacao-de-strings.aspx

After 1 month in production time, the problems happend again, but with a less memory amount. I am still analysing another dump, but the problem points to CacheCleanup again..

here some information extracted from a dump with 500 MB of memory usage

Here de number of objetcs and amount of memory in bytes. All objects are in Large Object Heap

790fd8c4 32347 48045272 System.String
7912d8f8 470 537215632 System.Object[]
Total 167194 objects

Looking for System.Object[] relies ,

0:000> !do 21811000
Name: System.Object[]
MethodTable: 7912d8f8
EEClass: 7912de6c
Size: 536870928(0x20000010) bytes
Array: Rank 1, Number of elements 134217728, Type CLASS
Element Type: System.String
Fields:
None

lookin for 1 item form this array and it's root we can see it relies to Cleanup class.

ESP:33eeea4:Root:010b3980(System.Collections.Generic.List`1[[bba.fwk.cache.winservicecommon.Cleanup, bba.fwk.cache.winservicecommon]])

Do you have some ideia?

[]'s

ingig wrote Nov 27, 2009 at 1:45 PM

Just wanted to add that I'm having the same issue when Logging is enabled, if I disable Logging the service runs without memory issues. I'm running on win2k8 R2 64bit

wrote Nov 27, 2009 at 1:45 PM

Eldelcable2003 wrote May 11, 2010 at 11:50 AM

How is getting on this issue? Has someone discovered something new about it? I have the same problem with the memory limit. My config is as following:

<serverSetting
        ServiceCacheIpAddress="127.0.0.1" 
        ServiceCacheIpPort="48888" 
        SharedCacheVersionNumber="3.0.5.2" 
        LoggingEnable="0" 
        ServiceFamilyMode="0" 
        CacheAmountOfObjects="200" 
        CacheAmountFillFactorInPercentage="90" 
        ServiceCacheCleanup="LRU" 
        ServiceCacheCleanupThreadJob="3600000"
        TcpServerMaxThreadToSet="-1" 
        TcpServerMinThreadToSet="-1"
        SocketPoolMinAvailableSize="5"
        SocketPoolValidationInterval="00:02:00"
        SocketPoolTimeout="00:02:00"
        />
Is there any problem with it? Perhaps ServiceCacheCleanupThreadJob is very high?

Thanks in advance.

mattwoberts wrote Jul 13, 2010 at 9:46 AM

Hi.

Same issue to report here. SharedCache is taking about ~700Meg, even though I only have 27 Meg of cached data.
I've got logging disabled on our configuration, and the issue is still there.

diarmo wrote Sep 22, 2010 at 7:56 AM

Hi guys,

Any update on this one? I'm experiencing the same issues myself at the moment.

wrote Feb 14, 2013 at 6:56 PM