Here are some stats.  This server has been up for about 1 day 6 hours and 
has had about 500,000 session on it (HAProxy stat).
>From a top command you can see that sync_gateway has 40% of the memory 
currently.  The used memory will increase slowly with traffic until it is 
all used up and then it crashes and restarts.

I have tried to compile and run the master build, but it starts to have a 
lot of log errors about sockets disconnecting after awhile, so I went back 
to using 1.0.4.

  538 root      20   0 3765652 2.349g   5960 S   1.3 40.0  35:11.40 
sync_gateway                                                               
                                   

    1 root      20   0   33480   2808   1492 S   0.0  0.0   0:01.28 init   
                                                                            
                           

    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 
kthreadd                                                                   
                                   

    3 root      20   0       0      0      0 S   0.0  0.0   0:03.77 
ksoftirqd/0                                                                
                                   

    4 root      20   0       0      0      0 S   0.0  0.0   0:00.00 
kworker/0:0                                                                
                                   

    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 
kworker/0:0H                                                               
                                   

    6 root      20   0       0      0      0 S   0.0  0.0   0:00.53 
kworker/u8:0    

root@sync01:~# date

Wed Apr  1 18:30:53 CDT 2015

root@sync01:~# free

             total       used       free     shared    buffers     cached

Mem:       6153524    2664664    3488860        216     128776     179636

-/+ buffers/cache:    2356252    3797272

Swap:      2096444          0    2096444

root@sync01:~# date

Wed Apr  1 19:00:14 CDT 2015

root@sync01:~# free

             total       used       free     shared    buffers     cached

Mem:       6153524    2735788    3417736        216     129692     181180

-/+ buffers/cache:    2424916    3728608

Swap:      2096444          0    2096444

root@sync01:~# date 

Wed Apr  1 19:53:01 CDT 2015

root@sync01:~# free

             total       used       free     shared    buffers     cached

Mem:       6153524    2884424    3269100        216     131268     184148

-/+ buffers/cache:    2569008    3584516

Swap:      2096444          0    2096444

On Wednesday, April 1, 2015 at 11:12:16 AM UTC-7, Adam Fraser wrote:
>
> Hi Brett,
>
> I'd be interested in more details about your Sync Gateway usage during the 
> period of your testing, to understand whether this is actually a potential 
> memory "leak", versus increased memory usage in response to activity in the 
> environment.  
>
> I saw your earlier post (about several thousand active users eventually 
> using up 6GB of RAM).   Some more specifics about usage over the 12 hours 
> might help understand whether the memory usage is expected or an issue.  
>
> Thanks,
> Adam
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/69643682-7afe-40f9-8655-dfa77ef4bc78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to