def checking_whois(self): optinmal = self.max_prcess * self.concurrent_page/5 if optinmal < 10: worker_number = 10 else: worker_number = int(optinmal) mem_limit = self.memory_limit_per_process/2 if mem_limit < 200: mem_limit = 200 self.whois_process = MemoryControlPs(whois_process, func_kwargs=WhoisChecker.get_input_parameters(self._whoisQueue, self.outputQueue, self.stop_event, worker_number), mem_limit=mem_limit, external_stop_event=self.stop_event) self.whois_process.start()
def checking_whois(self): optinmal = self.max_prcess * self.concurrent_page / 5 if optinmal < 10: worker_number = 10 else: worker_number = int(optinmal) mem_limit = self.memory_limit_per_process / 2 if mem_limit < 200: mem_limit = 200 self.whois_process = MemoryControlPs( whois_process, func_kwargs=WhoisChecker.get_input_parameters( self._whoisQueue, self.outputQueue, self.stop_event, worker_number), mem_limit=mem_limit, external_stop_event=self.stop_event) self.whois_process.start()
def whois_process(*args, **kwargs): checker = WhoisChecker(*args, **kwargs) checker.run_farm()
def whois_process(*args, **kwargs): checker = WhoisChecker(*args, **kwargs) checker.run_farm()