{"action":"created","issue":{"url":"https://api.github.com/repos/pedronasser/caddy-search/issues/7","labels_url":"https://api.github.com/repos/pedronasser/caddy-search/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/pedronasser/caddy-search/issues/7/comments","events_url":"https://api.github.com/repos/pedronasser/caddy-search/issues/7/events","html_url":"https://github.com/pedronasser/caddy-search/issues/7","id":120056440,"number":7,"title":"RAM usage","user":{"login":"jungle-boogie","id":1111743,"avatar_url":"https://avatars.githubusercontent.com/u/1111743?v=3","gravatar_id":"","url":"https://api.github.com/users/jungle-boogie","html_url":"https://github.com/jungle-boogie","followers_url":"https://api.github.com/users/jungle-boogie/followers","following_url":"https://api.github.com/users/jungle-boogie/following{/other_user}","gists_url":"https://api.github.com/users/jungle-boogie/gists{/gist_id}","starred_url":"https://api.github.com/users/jungle-boogie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jungle-boogie/subscriptions","organizations_url":"https://api.github.com/users/jungle-boogie/orgs","repos_url":"https://api.github.com/users/jungle-boogie/repos","events_url":"https://api.github.com/users/jungle-boogie/events{/privacy}","received_events_url":"https://api.github.com/users/jungle-boogie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T23:07:05Z","updated_at":"2016-01-21T08:51:29Z","closed_at":null,"body":"Hello,\r\n\r\n@mholt and I discussed that this plug-in seems to use up a very large amount of \r\nRAM when caddy search is enabled in the `Caddyfile` and/or when caddy is \r\ncompiled with caddy-search.\r\n\r\nHere's an example of just starting caddy in the forground and crashing a short\r\namount of time.\r\n\r\n    % sudo ./caddy\r\n    Activating privacy features... done.\r\n    example.com:2020\r\n    example.com:2015\r\n    example.com:http\r\n    zsh: killed     sudo ./caddy\r\n    2:14.50 real, 13.971 user, 11.862 sys;  page: 50739 hard/728910 soft, swap: 0, I/O: 7690/1419\r\n    Mem: 743832KB (5441KB shared + 642KB data/stack = 6083KB), VCSW: 61653 IVCSW: 18582\r\n\r\nHere's another example:\r\n\r\n     zsh: killed     sudo ./caddy\r\n    3:23.89 real, 18.940 user, 16.209 sys;  page: 90625 hard/1087429 soft, swap: 0, I/O: 4590/1911\r\n    Mem: 749608KB (5434KB shared + 641KB data/stack = 6075KB), VCSW: 113115 IVCSW: 25478\r\n\r\nThe Caddyfile is very bare and only contained `search`, no regexs were used. The directory caddy is serving is 53MB but there are 4 mp3s that should be excluded from caddy-search. There's also 25MB of images that caddy-search should not be indexing.\r\n\r\nUsing caddy-search from master on freebsd -release 10.2 with Caddy 0.8 beta 4."},"comment":{"url":"https://api.github.com/repos/pedronasser/caddy-search/issues/comments/173502822","html_url":"https://github.com/pedronasser/caddy-search/issues/7#issuecomment-173502822","issue_url":"https://api.github.com/repos/pedronasser/caddy-search/issues/7","id":173502822,"user":{"login":"joeblew99","id":11999859,"avatar_url":"https://avatars.githubusercontent.com/u/11999859?v=3","gravatar_id":"","url":"https://api.github.com/users/joeblew99","html_url":"https://github.com/joeblew99","followers_url":"https://api.github.com/users/joeblew99/followers","following_url":"https://api.github.com/users/joeblew99/following{/other_user}","gists_url":"https://api.github.com/users/joeblew99/gists{/gist_id}","starred_url":"https://api.github.com/users/joeblew99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeblew99/subscriptions","organizations_url":"https://api.github.com/users/joeblew99/orgs","repos_url":"https://api.github.com/users/joeblew99/repos","events_url":"https://api.github.com/users/joeblew99/events{/privacy}","received_events_url":"https://api.github.com/users/joeblew99/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T08:51:28Z","updated_at":"2016-01-21T08:51:28Z","body":"+1. I am also needing to use Caddy with Bleve. The Ram issue looks like a killer for production deployments.\r\n"}}