64GB RAM이 장착 된 Windows 서버에서 분류/기능 추출 작업을 실행하고 있습니다. 파이썬에서 필자는 메모리가 부족하다고 생각합니다.파이썬 프로세스가 사용하는 RAM의 양을 늘릴 수 있습니까
[email protected] /cygdrive/c/NaiveBayes
$ python run_classify_comments.py > tenfoldcrossvalidation.txt
Traceback (most recent call last):
File "run_classify_comments.py", line 70, in <module>
run_classify_comments()
File "run_classify_comments.py", line 51, in run_classify_comments
NWORDS = get_all_words("./data/HUGETEXTFILE.txt")
File "run_classify_comments.py", line 16, in get_all_words
def get_all_words(path): return words(file(path).read())
File "run_classify_comments.py", line 15, in words
def words(text): return re.findall('[a-z]+', text.lower())
File "C:\Program Files (x86)\Python26\lib\re.py", line 175, in findall
return _compile(pattern, flags).findall(string)
MemoryError
다시 모듈이 64GB RAM으로 충돌하는 중 ... 나는 그렇게 생각하지 않는다 ... 왜 이런 일이 일어나고, 내 컴퓨터에서 사용 가능한 모든 RAM을 사용하도록 python을 구성 할 수 있습니까?
Windows 버전이 64 비트입니까? 파이썬 버전이 64 비트입니까? 프로세스가 실제로 사용하고있는 메모리 용량을 확인 했습니까? –
프로그램 파일 (x86)은 윈도우가 64 비트이지만 파이썬은 – unbeli
이 아님을 암시합니다. – josephmisiti