I have a running java process, I want to find out with which parameters it was started, specifically, I want to know what debug port was specified (it was). Is there a way to do that in linux?

Update: Application was started through ant, so I can get ant command options, so now I know the task that was started, also I know ant process id.