Products | Versions |
---|---|
TIBCO Streaming | - |
Repeatedly running the TERR model in the TIBCO Streaming TERR operator results in extra TERR processes. Why do these appear and accumulate? They do not appear to be doing anything.
makeModelsInParallel <- function() { suppressWarnings(suppressPackageStartupMessages(library(parallel))) nw <- max(1,detectCores()-1) if(identical(parallel:::getClusterOption("type"), "TERR")) { cl <- makeCluster(nw, JAVA_OPTIONS=rep("-Xmx1024m",nw)) } else { cl <- makeCluster(nw) } on.exit(stopCluster(cl)) clusterExport(cl, c("features","in.df")) clusterEvalQ(cl, {library(glmnet);library("randomForest");library(data.table)}) # For Lap reply data, LAxPChannelFiles outListRF <- parLapply(cl, model.all,fun = multiRF) outListGLM <- parLapply(cl, model.all,fun = multiGLM) list(outListRF,outListGLM) } models <- makeModelsInParallel()