r - On open, Rstudio starts many processes (started with parallel package in previous session) -- how to kill them? -


i have read through question , answers (r parallel computing , zombie processes) doesn't seem quite address situation.

i have 4-core macbook pro running mac os x 10.10.3, r 3.2.0, , rstudio 0.99.441.

yesterday, trying out packages "foreach" , "doparallel" (i want use them in package working on). did this:

cl <- makecluster(14) registerdoparallel(cl)  <- 0 ls <- foreach(icount(100)) %dopar% {     b <- + 1 } 

it clear me doesn't make sense have 14 processes on 4-core machine, software run on 16-core machine. @ point computer ground halt. opened activity monitor , found 16 (or more, maybe?) r processes. tried force quit them activity monitor -- no luck. closed rstudio , killed r processes. reopened rstudio , restarted r processes. restarted computer , restarted rstudio , restarted r processes.

how can start rstudio without restarting processes?

edit: forgot mention rebuilt package working on @ time (all processes may have been running during build)

edit2: also, can't stopcluster(cl) because cl not in environment anymore...i closed r session.

edit3: when open r.app (the r gui provided r) or open r in terminal, no such problem occurs. think must rstudio-related.

edit4: there appears random delay between opening rstudio , starting of these undesired processes. between 15s , 2 mins.

edit5: seems processes start after open project started.

edit6: have been picking through .rproj.user files looking things delete. deleted files (but not directories) in ctx, pcs, , sdb. problem persists.

edit7: when run "killall r" @ command line kills these processes, when restart rstudio , reopen project, processes start again.

edit8: used "killall -s r | wc -l" find number of r processes grows , grows while project open. got 358 , ran "killall r" because computer making scary sounds.

edit9: rstudio unusable currently. every time "killall r", restarts processes within 15 seconds.

edit10: when initiate build starts tons of r processes -- 109 @ last check. these processes started when build says "preparing package lazy loading". @ point computer grinds near-halt.

edit11: deleted .rproj file (actually moved backup) , .rproj.user directory. used "create project directory" in rstudio. when open new project, still same behavior. rstudio doing when open project isn't contained anywhere in .rproj file or .rproj.user directory!? i've spent whole day on 1 problem....:(

best guess -- newest version of rstudio tries work behind scenes develop autocompletion database, based on library() , require() calls detects within open files in project. this, launches new r processes, loads packages (with library()), , returns set of objects made available package.

by chance loading packages have complex .onload() actions? it's possible engine in rstudio running in r processes behind scenes, getting stuck reason , leaving these (maybe stale or busy) r processes.

for reference, there similar issue reported here.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -