Htmlunit process is controlled from this servlet filter class
cc.kune.core.server.searcheable.SearchEngineServletFilter
Init method sets thread configuration:
public void init(final FilterConfig filterConfig) throws ServletException {
this.filterConfig = filterConfig;
cache = new Cache();
executor = Executors.newFixedThreadPool(THREADS);
}
We have to define following issues to address a solution:
Generation of static html pages for crawler using htmlunit is provoking a lack of performance sometimes. We want to avoid this controlling how and when htmlunit processes are executed.