You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (Jira)" <ji...@apache.org> on 2021/02/03 22:56:00 UTC

[jira] [Resolved] (GROOVY-9922) Add DGM `getPid`

     [ https://issues.apache.org/jira/browse/GROOVY-9922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Sun resolved GROOVY-9922.
--------------------------------
    Resolution: Fixed

> Add DGM `getPid`
> ----------------
>
>                 Key: GROOVY-9922
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9922
>             Project: Groovy
>          Issue Type: New Feature
>            Reporter: Daniel Sun
>            Assignee: Daniel Sun
>            Priority: Major
>             Fix For: 4.0.0-alpha-3
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)