Eclipsed запустил процесс для меня, и я хотел бы увидеть полную командную строку.
Я пробовал «ps auxwww», но, похоже, он усекает путь до 4096 символов, есть ли способ заставить PS прекратить урезать путь или использовать другой инструмент для поиска полного пути?
cat /proc/{PID}/cmdline
Где {PID} - это идентификатор процесса рассматриваемого процесса.
Пример касается процесса java
, вот инструмент, который может показать некоторые дополнительные детали процесса: jps
. Просто попробуйте, у вас, вероятно, есть это - это часть JDK
Это похоже на базовую ps
команду - но не учитывает некоторые особенности java. Основное использование - идентифицировать запущенные процессы Java, которые затем проверяются с помощью других инструментов анализа Java, таких как jstack
.
$ jps -ml
31302 com.intellij.rt.execution.application.AppMain com.example.Foo some.properties
26590 com.intellij.idea.Main nosplash
31597 sun.tools.jps.Jps -ml
Выдержка из справочной страницы о возможностях:
jps - Java Virtual Machine Process Status Tool
jps [ options ] [ hostid ]
[...]
-q Suppress the output of the class name, JAR file name, and argu‐
ments passed to the main method, producing only a list of local
VM identifiers.
-m Output the arguments passed to the main method. The output may be
null for embedded JVMs.
-l Output the full package name for the application's main class or
the full path name to the application's JAR file.
-v Output the arguments passed to the JVM.
-V Output the arguments passed to the JVM through the flags file
(the .hotspotrc file or the file specified by the
-XX:Flags=<filename> argument).
-Joption
Pass option to the java launcher called by jps. For example,
-J-Xms48m sets the startup memory to 48 megabytes. It is a common
convention for -J to pass options to the underlying VM executing
applications written in Java.
[...]
добавьте «меньше», у вас не должно возникнуть проблем с прокруткой влево и вправо:)