camtool sync -src local -dest google -verbose
leads to memory leaks in camlistored and, eventually, it is OOM-killed.
while :; do r=$(cat /proc/`ps ax | grep camlistore[d] | awk '{print $1;}'`/status | grep VmSize); echo `date` $r; sleep 30; done
Wed Jun 8 21:08:21 PDT 2016 VmSize: 433584 kB
Wed Jun 8 21:08:51 PDT 2016 VmSize: 497304 kB
Wed Jun 8 21:09:21 PDT 2016 VmSize: 506272 kB
Wed Jun 8 21:09:51 PDT 2016 VmSize: 506272 kB
Wed Jun 8 21:10:21 PDT 2016 VmSize: 506272 kB
Wed Jun 8 21:10:51 PDT 2016 VmSize: 506272 kB
Wed Jun 8 21:11:21 PDT 2016 VmSize: 506272 kB
Wed Jun 8 21:11:51 PDT 2016 VmSize: 527412 kB
Wed Jun 8 21:12:21 PDT 2016 VmSize: 553836 kB
Wed Jun 8 21:12:51 PDT 2016 VmSize: 569692 kB
Wed Jun 8 21:13:21 PDT 2016 VmSize: 569692 kB
Wed Jun 8 21:13:51 PDT 2016 VmSize: 579204 kB
Wed Jun 8 21:14:21 PDT 2016 VmSize: 614084 kB
Wed Jun 8 21:14:51 PDT 2016 VmSize: 633368 kB
Wed Jun 8 21:15:21 PDT 2016 VmSize: 633368 kB
Wed Jun 8 21:15:51 PDT 2016 VmSize: 633368 kB
Wed Jun 8 21:16:21 PDT 2016 VmSize: 648164 kB
Wed Jun 8 21:16:51 PDT 2016 VmSize: 658736 kB
Wed Jun 8 21:17:21 PDT 2016 VmSize: 666132 kB
Wed Jun 8 21:17:52 PDT 2016 VmSize: 674588 kB
Wed Jun 8 21:18:22 PDT 2016 VmSize: 686216 kB
Wed Jun 8 21:18:52 PDT 2016 VmSize: 766292 kB
Wed Jun 8 21:19:22 PDT 2016 VmSize: 770520 kB
after I stop the sync, memory stops growing:
Wed Jun 8 21:19:52 PDT 2016 VmSize: 775804 kB
Wed Jun 8 21:20:22 PDT 2016 VmSize: 775804 kB
Wed Jun 8 21:20:52 PDT 2016 VmSize: 775804 kB
Wed Jun 8 21:21:22 PDT 2016 VmSize: 775804 kB
server-config.json:
"/sto-googlecloudstorage/": {
"handler": "storage-googlecloudstorage",
"handlerArgs": {
"auth": {
"client_id": "suchmuch-very-secret.apps.googleusercontent.com",
"client_secret": "secret-secret",
"refresh_token": "1/token-secret"
},
"bucket": "camlistorage"
}
},
"/sync-to-googlecloudstorage/": {
"handler": "sync",
"handlerArgs": {
"from": "/bs/",
"queue": {
"file": "/srv/camlistore/var/camlistore/blobs/sync-to-googlecloud-queue.kv",
"type": "kv"
},
"to": "/sto-googlecloudstorage/"
}
},
client-config.json:
{
"servers": {
"local": {
"server": "http://127.0.0.1:3179",
"auth": "userpass:username:secret",
"default": true
},
"google": {
"server": "http://127.0.0.1:3179/sto-googlecloudstorage/",
"auth": "userpass:username:secret",
"default": false
}
},
"identity": "very-secret-identity",
"ignoredFiles": [
".DS_Store"
]
}
leads to memory leaks in camlistored and, eventually, it is OOM-killed.
after I stop the
sync, memory stops growing:server-config.json:client-config.json: