Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9922

Add DGM `getPid`

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-3
    • None
    • None

    Description

      Sometime we need to know what process id of our running java program, e.g.
      ① shutdown java program via a shell script, e.g. kill -15 <pid>
      ② attach the current JVM to transform loaded classes on the fly, e.g. VirtualMachine.attach("<pid>");

      Runtime.getRuntime().getPid() can help us to achieve the goal.

      Attachments

        Activity

          People

            daniel_sun Daniel Sun
            daniel_sun Daniel Sun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m