[EdLUG] How can I troubleshoot misbehaving java application

Tai Kedzierski dch.tai at gmail.com
Tue Dec 8 19:21:36 UTC 2020


@Swithun Java has a parameterisation thing that specifies passing the
"-D<argument>" thing with no spaces...

// Sent from a mobile device. Typos and brevity may transpire.

On Tue, 8 Dec 2020, 19:17 Swithun Crowe, <swithun at swithun.com> wrote:

> Hello
>
> TH> It’s a line like this in the systemd service file:ExecStart=/bin/java
> TH> -Xmx1200m -Dhttp.nonProxyHosts=*.service.nexte-Dhttps.proxyHost=
> internal-outbounds-nat-1.eu-west-2.elb.amazoneaws.com
> TH> -Dhttps.proxyPort=3128 -Dlogging.config=/opt/my-api/config/logback.xml
> TH> -jar /opt/my-api/my-api-6.1.jar
>
> Has the line got mangled in an email, or should there be spaces between
> the -D... flags?
>
> Looking at my systemd .service files, the ExecStart lines have arguments
> that get passed to the commands.
>
> TH> Also, how can I log into different server boxes and run these two
> TH> commands in a shell but with some kind of nohup option (or similar) so
> TH> the process won’t crash if I get timed out (kicked out) from the
> TH> shells:
>
> Can you install GNU screen or tmux on these servers? If you start a
> session, and run the commands in there, you can disconnect (or get
> disconnected) and the processes will keep running.
>
> Good luck.
>
> Swithun.--
> EdLUG mailing list
> EdLUG at mailman.lug.org.uk
> https://lists.edlug.org.uk/mailman/listinfo/edlug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.edlug.org.uk/pipermail/edlug/attachments/20201208/43aae47f/attachment-0001.html>


More information about the EdLUG mailing list