loadingsn.blogg.se

Command to check java version in linux
Command to check java version in linux











command to check java version in linux

( should be replaced with the id of the user that the Java process is running as)

  • In Linux and UNIX, you need to run the command as the user that owns the java process:.
  • It's not possible to use the jstack tool from JDK 1.6 to take threaddumps from a process running on JDK 1.5.
  • jstack works even if the -Xrs jvm parameter is enabled.
  • The jstack tool is available since JDK 1.5 (for JVM on Windows, it's available in some versions of JDK 1.5 and JDK 1.6 only).
  • You can output consecutive thread dumps to a file by using the console output redirect/append directive: To obtain a thread dump using jstack, run the following command:

    command to check java version in linux

    It prints thread dumps to the command line console. If installed/available, we recommend using the jstack tool.













    Command to check java version in linux