{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/149","repository_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl","labels_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/149/comments","events_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/149/events","html_url":"https://github.com/clojure-emacs/refactor-nrepl/issues/149","id":137174425,"number":149,"title":"CPU 100% on cider-jack-in","user":{"login":"sunng87","id":221942,"avatar_url":"https://avatars.githubusercontent.com/u/221942?v=3","gravatar_id":"","url":"https://api.github.com/users/sunng87","html_url":"https://github.com/sunng87","followers_url":"https://api.github.com/users/sunng87/followers","following_url":"https://api.github.com/users/sunng87/following{/other_user}","gists_url":"https://api.github.com/users/sunng87/gists{/gist_id}","starred_url":"https://api.github.com/users/sunng87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunng87/subscriptions","organizations_url":"https://api.github.com/users/sunng87/orgs","repos_url":"https://api.github.com/users/sunng87/repos","events_url":"https://api.github.com/users/sunng87/events{/privacy}","received_events_url":"https://api.github.com/users/sunng87/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-29T07:34:14Z","updated_at":"2016-03-01T03:02:44Z","closed_at":"2016-03-01T03:02:43Z","body":"I'm getting a core 100% when running cider-jack-in in one of my project. After checking the thread id, I found it's a refactor_nrepl thread. And here are two thread dump I caught:\r\n\r\n```\r\n\"clojure-agent-send-off-pool-3\" #28 prio=5 os_prio=0 tid=0x00007fcaa0003000 nid=0x631d runnable [0x00007fca9a8fb000]\r\n   java.lang.Thread.State: RUNNABLE\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.node.protocols$eval40195$fn__40250$G__40205__40252.invoke(protocols.clj:9)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.node.protocols$eval40195$fn__40250$G__40204__40255.invoke(protocols.clj:9)\r\n        at clojure.core$map$fn__4553.invoke(core.clj:2624)\r\n        at clojure.lang.LazySeq.sval(LazySeq.java:40)\r\n        - eliminated <0x00000000fd731a90> (a clojure.lang.LazySeq)\r\n        at clojure.lang.LazySeq.seq(LazySeq.java:49)\r\n        - locked <0x00000000fd731a90> (a clojure.lang.LazySeq)\r\n        at clojure.lang.RT.seq(RT.java:507)\r\n        at clojure.core$seq__4128.invoke(core.clj:137)\r\n        at clojure.core.protocols$seq_reduce.invoke(protocols.clj:26)\r\n        at clojure.core.protocols$fn__6506.invoke(protocols.clj:100)\r\n        at clojure.core.protocols$fn__6452$G__6447__6465.invoke(protocols.clj:13)\r\n        at clojure.core$reduce.invoke(core.clj:6515)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.node.protocols$concat_strings.invoke(protocols.clj:47)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.node.seq.SeqNode.string(seq.clj:20)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.base$string.invoke(base.clj:75)\r\n        at refactor_nrepl.s_expressions$get_next_sexp$fn__42237.invoke(s_expressions.clj:17)\r\n        at clojure.core$some.invoke(core.clj:2570)\r\n        at refactor_nrepl.s_expressions$get_next_sexp.invoke(s_expressions.clj:16)\r\n        at refactor_nrepl.core$extract_ns_meta.invoke(core.clj:222)\r\n        at refactor_nrepl.core$read_ns_form.invoke(core.clj:242)\r\n        at refactor_nrepl.find.find_macros$collect_occurrences.invoke(find_macros.clj:179)\r\n        at clojure.core$partial$fn__4531.invoke(core.clj:2507)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.walk$postwalk_subtree.invoke(walk.clj:34)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.walk$postwalk_subtree.invoke(walk.clj:32)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.walk$postwalk_subtree.invoke(walk.clj:32)\r\n\r\n```\r\n\r\nAfter a while : \r\n```\r\n\"clojure-agent-send-off-pool-3\" #28 prio=5 os_prio=0 tid=0x00007fcaa0003000 nid=0x631e runnable [0x00007fca9a8fb000]\r\n   java.lang.Thread.State: RUNNABLE\r\n        at clojure.lang.Util.hasheq(Util.java:173)\r\n        at clojure.lang.PersistentHashMap.hash(PersistentHashMap.java:120)\r\n        at clojure.lang.PersistentHashMap.containsKey(PersistentHashMap.java:126)\r\n        at clojure.lang.APersistentSet.contains(APersistentSet.java:34)\r\n        at clojure.lang.RT.contains(RT.java:787)\r\n        at clojure.core$contains_QMARK_.invoke(core.clj:1421)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.reader$linebreak_QMARK_.invoke(reader.clj:39)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.reader$read_while.doInvoke(reader.clj:62)\r\n        at clojure.lang.RestFn.invoke(RestFn.java:425)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.parser.whitespace$parse_whitespace.invoke(whitespace.clj:12)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.parser.core$eval41523$fn__41524.invoke(core.clj:84)\r\n        at clojure.lang.MultiFn.invoke(MultiFn.java:229)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.reader$read_with_meta.invoke(reader.clj:122)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.parser.core$parse_next.invoke(core.clj:34)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.parser$parse.invoke(parser.clj:13)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.parser$parse_all$fn__41581.invoke(parser.clj:18)\r\n        at clojure.core$repeatedly$fn__5111.invoke(core.clj:4921)\r\n        at clojure.lang.LazySeq.sval(LazySeq.java:40)\r\n        - eliminated <0x00000000fb035da8> (a clojure.lang.LazySeq)\r\n        at clojure.lang.LazySeq.seq(LazySeq.java:49)\r\n        - locked <0x00000000fb035da8> (a clojure.lang.LazySeq)\r\n        at clojure.lang.RT.seq(RT.java:507)\r\n        at clojure.core$seq__4128.invoke(core.clj:137)\r\n        at clojure.core$take_while$fn__4604.invoke(core.clj:2774)\r\n        at clojure.lang.LazySeq.sval(LazySeq.java:40)\r\n        - eliminated <0x00000000fb035e00> (a clojure.lang.LazySeq)\r\n        at clojure.lang.LazySeq.seq(LazySeq.java:49)\r\n        - locked <0x00000000fb035e00> (a clojure.lang.LazySeq)\r\n        at clojure.lang.Cons.next(Cons.java:39)\r\n        at clojure.lang.RT.next(RT.java:674)\r\n        at clojure.core$next__4112.invoke(core.clj:64)\r\n        at clojure.core$dorun.invoke(core.clj:3010)\r\n        at clojure.core$doall.invoke(core.clj:3025)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.parser$parse_all.invoke(parser.clj:20)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.parser$parse_string_all.invoke(parser.clj:35)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.base$of_string.invoke(base.clj:63)\r\n        at refactor_nrepl.s_expressions$get_next_sexp.invoke(s_expressions.clj:15)\r\n        at refactor_nrepl.core$extract_ns_meta.invoke(core.clj:222)\r\n        at refactor_nrepl.core$read_ns_form.invoke(core.clj:242)\r\n        at refactor_nrepl.find.find_macros$collect_occurrences.invoke(find_macros.clj:179)\r\n        at clojure.core$partial$fn__4531.invoke(core.clj:2507)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.walk$postwalk_subtree.invoke(walk.clj:34)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.walk$postwalk_subtree.invoke(walk.clj:32)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.walk$postwalk_subtree.invoke(walk.clj:32)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.walk$postwalk_subtree.invoke(walk.clj:32)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.walk$postwalk_subtree.invoke(walk.clj:32)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.walk$postwalk_subtree.invoke(walk.clj:32)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.walk$postwalk_subtree.invoke(walk.clj:32)\r\n        at mranderson047.rewrite_clj.v0v4v13_20150917v134033_1.rewrite_clj.zip.walk$postwalk_subtree.invoke(walk.clj:32)\r\n```\r\n\r\nI hope this is useful to you. Please let me know if you need further information. Thanks!\r\n"},"comment":{"url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/comments/190513186","html_url":"https://github.com/clojure-emacs/refactor-nrepl/issues/149#issuecomment-190513186","issue_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/149","id":190513186,"user":{"login":"sunng87","id":221942,"avatar_url":"https://avatars.githubusercontent.com/u/221942?v=3","gravatar_id":"","url":"https://api.github.com/users/sunng87","html_url":"https://github.com/sunng87","followers_url":"https://api.github.com/users/sunng87/followers","following_url":"https://api.github.com/users/sunng87/following{/other_user}","gists_url":"https://api.github.com/users/sunng87/gists{/gist_id}","starred_url":"https://api.github.com/users/sunng87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunng87/subscriptions","organizations_url":"https://api.github.com/users/sunng87/orgs","repos_url":"https://api.github.com/users/sunng87/repos","events_url":"https://api.github.com/users/sunng87/events{/privacy}","received_events_url":"https://api.github.com/users/sunng87/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T03:02:43Z","updated_at":"2016-03-01T03:02:43Z","body":"Thanks for your kind reply! I just disabled those three cache option then it's normal now.\r\n\r\nI'm not sure if this is an issue but it takes too long to cache (at least 10 minutes) in my largest project. I will keep you notified if I get something valuable."}}