1
selenium server 3.0.1
firefox 46+, tried on different versions
Windows 10
Jython 2.5.4
코드 :
self.profileDir = File(self.dict['profileDir'])
System.setProperty("webdriver.gecko.driver", Config.DISTR_DIR + '\\geckodriver.exe')
self.profile = FirefoxProfile(self.profileDir)
self.driver = FirefoxDriver(self.profile)
오류가 발생하면
1479121081847 geckodriver INFO Listening on 127.0.0.1:13582
self.driver = FirefoxDriver(self.profile)
java.lang.OutOfMemoryError: Java heap space
프로파일의 다운로드를 제거하고 지정하는 경우 :
self.driver = FirefoxDriver()
모두가 지금까지 좋아 보인다,하지만 난로드 할 프로필이 필요합니다.
나는 자바 (지금 - Xms64M - Xmx512M)의 메모리를 높이기 위해 노력 (자바 불평하는 이유 위) Xmx1200M, 때로는 브라우저가 시작 투, 그러나 이것은 매우 희귀하고 불안정합니다.
솔루션은 무엇이며 왜로드 프로필로 인해 이러한 현상이 발생합니까?