Как получить полную командную строку, используемую для запуска процесса

Ecliped запустил процесс для меня, и я хотел бы видеть полную используемую командную строку.

Я попробовал «ps auxwww», но, похоже, усекает путь до 4096 символов, есть ли любой способ заставить PS остановить усечение пути или использовать другой инструмент для поиска полного пути?

14
задан 2 March 2012 в 01:07

1 ответ

Пример о процессе java, вот инструмент, который может показать некоторые дополнительные детали процесса: jps. Просто попробуйте, возможно, у вас есть это - это часть JDK

. Она похожа на базовую команду ps, но недооценивает некоторые java-speciffics. Основное использование - идентифицировать запущенные 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.

[...]
2
ответ дан 4 August 2018 в 17:26

Другие вопросы по тегам:

Похожие вопросы: