2013-11-22 11 views
0

Java 프로세스가 있고 classpath에 많은 jar가 포함되어 있으므로 시작 명령이 매우 길다.`/ proc/{processId}/cmdline` 파일의 길이 제한은 얼마입니까?

프로세스 ID가 110101이라고 가정하고 명령을 cat /proc/110101/cmdline 명령으로 확인하면 명령이 불완전하다는 것을 알게되고 약 4000 문자 만 포함됩니다.

원래 시작 명령을 표시하는 다른 방법이 있습니까?

답변

0
man proc 

/proc/[pid]/cmdline 
       This holds the complete command line for the process, unless 
       the process is a zombie. In the latter case, there is nothing 
       in this file: that is, a read on this file will return 0 
       characters. The command-line arguments appear in this file as 
       a set of strings separated by null bytes ('\0'), with a 
       further null byte after the last string. 

고양이가 파일에 대한 모든 인수를 제공하지 않을 수도 있습니다.

관련 문제