[ 자바 ] Runtime.exec: Too many open files | Process 객체 destroy() 용-ILE/LANG-JAVA(JSP)2008. 5. 15. 19:51
2006 12 20 fs
자바로 스크립트나 바이너리를 실행 시킬때
Process 객체를 사용하는데 이때 실행하다 보면
=====================================================
java.io.IOException: Too many open files
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:84)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
~~ ~~~
=========================================================
이와 같은 에러 메시지가 나온다.
뭐이런 해결책을 인터넷에 시스템적으로 한프로세스당 파일디스크립터값을 수정한는 것도 있는것같은데
실제로 해보진 않았다.
더 인터넷을 찾아보니 그냥 Process.destroy() 해줘 그냥 초기화 하면 그냥 잘 된다. -.-^
아래는 참고한 구굴링 문서임
http://groups.google.co.kr/group/comp.lang.java.programmer/browse_thread/thread/b18433b07c5c831f/e2757eb8073c7b74?lnk=st&q=Too+many+open+files+Runtime&rnum=1&hl=ko#e2757eb8073c7b74
Runtime.exec: Too many open files | ||
항목에서 단 1개의 메시지 - 트리로 보기 |
Hello,
I have a remote object (Admin) bound to a CORBA Naming Service that offers java.io.IOException: Too many open files Apparently the cause is not within my TestImpl code because I was able to Here is how I start the process: Here is how I stop the process: process.destroy(); THANKS a lot in advance for any and all suggestions of what might be wrong. -- |
'용-ILE > LANG-JAVA(JSP)' 카테고리의 다른 글
[BLOB] 오라클 oracle blob 데이터 읽어서 파일로 저장 (0) | 2008.05.15 |
---|---|
[ java ] jsp에서 mysql jdbc 심플하게 사용하는 class DBClass (0) | 2008.05.15 |
자바 1.4 이하 에서 sprintf | java sprinf (0) | 2008.05.15 |
[자바] 큰파일 읽어서 String 에 저장 (0) | 2008.05.15 |
[JAVA] HTML TAG 테그 제거 (0) | 2008.05.15 |