Project and Portfolio Management Practitioners Forum
cancel

passing command line arguments to java on startup

Highlighted
Erik Cole
Acclaimed Contributor.

passing command line arguments to java on startup

Does anyone know how to pass command line arguments to the java process in the context of the Windows service for PPM (9.1)?

 

We're using some external tools to help monitor performance, and we can add the args directly to the command inside kStart.sh and start the server using that directly inside a cygwin shell, but we want to be able to do the same and start via the service. Apparently, the service doesn't end up calling kStart.

2 REPLIES
d4y4n4
Honored Contributor.

Re: passing command line arguments to java on startup

Hi,

 

I have not tried it before, but I think you can  store the service's startup parameters in the registry,  and  when the registry starts, it should read its startup parameters from the registry.

 

Regards,

Dayana Campos

Kerim KILIC
Honored Contributor.

Re: passing command line arguments to java on startup

i think it can be done via java options parameters in control panel, there is run time parameters in java console may be it helps