How to get the list of java processes along with their PID(process id) that are running on UAT server under a specfic account?

Problem:

A jar file was failed to deploy on a UAT server.

  • The parameterized query expects the parameter which was not supplied
  • How to view transaction logs in SQL Server 2008
  • Using SSIS to query ADO .NET source query passing in parameters from SQL Server
  • Passing in Week Day name to get nearest date in SQL
  • SQL string manipulation
  • SSIS - use stored variable in final OLE DB Destination step
  • Reason:

    Because when we are trying to rename it,it is showing
    “cannot rename the file it is been used by another user”.

    step choosen in order to solve the problem

    log on UAT server(xxx).

    we need the list of java processes along with the PID on our UAT server
    which is running under the account XXXAPPFUNC.

    Please tell me how can I do this?

    Thanks in Advance.

  • How to use OUTPUT to capture new and old ID?
  • How to Sum value of Pivoted Columns and add it into another Pivoted Column
  • Running large queries in the backgroud MS SQL
  • SUBSTRING vs LEFT in SQL SERVER
  • add column dynamically with select query
  • Removing duplicates using partition by SQL Server
  • 2 Solutions collect form web for “How to get the list of java processes along with their PID(process id) that are running on UAT server under a specfic account?”

    Did you try the jps tool?

    DESCRIPTION

    The jps tool lists the instrumented
    HotSpot Java Virtual Machines (JVMs)
    on the target system. The tool is
    limited to reporting information on
    JVMs for which it has the access
    permissions.

    The list of JVMs produced by the jps
    command may be limited by the
    permissions granted to the principal
    running the command. The command will
    only list the JVMs for which the
    principle has access rights as
    determined by operating system
    specific access control mechanisms.

    OUTPUT FORMAT

    The output of the jps command follows the following pattern:

     lvmid [ [ classname | JARfilename | "Unknown"] [ arg* ] [jvmarg* ] ] 

    For example, to list the instrumented JVMs on the local host:

    $ jps
    18027 Java2Demo.JAR
    18032 jps
    18005 jstat
    

    Run it under the desired account.

    Have you tried Process Explorer
    “Ever wondered which program has a particular file or directory open? Now you can find out. Process Explorer shows you information about which handles and DLLs processes have opened or loaded.”
    Doesn’t just work for java processes.

    MS SQL Server is a Microsoft SQL Database product, include sql server standard, sql server management studio, sql server express and so on.