Following is the setup details
CB Couchbase Server 4.0.0-4051 (CE) - 1 Node
SyncGW 1.2 CE - 1 Node
CBS Disk usage is 1.67GB. Traffic tool is pumping 8ops. syncGW config file has webhook configured. On running the traffic tool it is seen that syngw process private memory is constantly increasing. On running traffic tool for 6 hours it is seen syngw process private memory is going above 1.3 GB and the CPU taken by syncgw also is increasing to 10%.
Following is the syncgw log snippet of processing one document.
2016-04-07T17:08:31.846+05:30 HTTP: #089: PUT /ptxdata/s918553899955_ptx1460029083919490744_A1460029083_Attachment.doc (as 918553899955)
2016-04-07T17:08:31.847+05:30 CRUD+: Invoking sync on doc “s918553899955_ptx1460029083919490744_A1460029083_Attachment.doc” rev 1-e72fb706a2b23a3d359671bb5a22bbdc
2016-04-07T17:08:31.870+05:30 Cache: SAVING #1368598
2016-04-07T17:08:31.870+05:30 CRUD: Stored doc “s918553899955_ptx1460029083919490744_A1460029083_Attachment.doc” / "1-e72fb706a2b23a3d359671bb5a22bbdc"
2016-04-07T17:08:31.870+05:30 HTTP+: #089: --> 201 (424.9 ms)
2016-04-07T17:08:31.870+05:30 Events+: Event queue worker sending event Document change event for doc id: s918553899955_ptx1460029083919490744_A1460029083_Attachment.doc to: Webhook handler [http://XXXXX]
2016-04-07T17:08:31.871+05:30 Events+: Webhook handler ran for event. Payload posted to URL http://XXXXXXX, got status 200 OK
2016-04-07T17:08:31.878+05:30 HTTP: #098: PUT /ptxdata/s918553899955_ptx1460029083919490744_A1460029083_Attachment.doc (ADMIN)
2016-04-07T17:08:31.878+05:30 CRUD+: Invoking sync on doc “s918553899955_ptx1460029083919490744_A1460029083_Attachment.doc” rev 2-11e59717832379d3a6ad4e4582858c2d
2016-04-07T17:08:31.879+05:30 CRUD+: Saving old revision “s918553899955_ptx1460029083919490744_A1460029083_Attachment.doc” / “1-e72fb706a2b23a3d359671bb5a22bbdc” (110 bytes)
2016-04-07T17:08:31.879+05:30 CRUD+: Backed up obsolete rev “s918553899955_ptx1460029083919490744_A1460029083_Attachment.doc”/"1-e72fb706a2b23a3d359671bb5a22bbdc"
2016-04-07T17:08:31.879+05:30 CRUD: Doc “s918553899955_ptx1460029083919490744_A1460029083_Attachment.doc” in channels "{s918553899955_ptx1460029083919490744-content-CH}"
2016-04-07T17:08:31.879+05:30 Cache: SAVING #1368599
2016-04-07T17:08:31.879+05:30 CRUD: Stored doc “s918553899955_ptx1460029083919490744_A1460029083_Attachment.doc” / "2-11e59717832379d3a6ad4e4582858c2d"
2016-04-07T17:08:31.879+05:30 HTTP+: #098: --> 201 (1.3 ms)
2016-04-07T17:08:31.879+05:30 Events+: Event queue worker sending event Document change event for doc id: s918553899955_ptx1460029083919490744_A1460029083_Attachment.doc to: Webhook handler [http://XXXX]
–Gracelin