[EdLUG] How can I troubleshoot misbehaving java application

Swithun Crowe swithun at swithun.com
Tue Dec 8 19:17:06 UTC 2020


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.


More information about the EdLUG mailing list